locked
CRM 2011: Dialog with 'in' condition RRS feed

  • Question

  • Hi all,

    I need to create a dialog with a prompt and response that consists of option set, then will create a bulk of tasks to different uses based on the selected option set value in a smilar format:

    if value in [1,2,3]

      create task 1

      create task 2

      create task 3

    else if value in [4,5]

    create task 4

      create task 5

     

    I can't find out the correct format to add values to the if condition, I have tried the "," and ";" but both of them are not working

     

    Please advise...




    Monday, January 2, 2012 10:24 AM

Answers

  • Hi Mate,

    It looks good to me. I tested it and it is working for me.

    Only thing I suggest is open the otherwise condition, change the operator back to "IN" set the value and publish it again.

    As I said It is working for me.

     


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    Tuesday, January 3, 2012 11:17 PM

All replies

  • There is no in/or conditions in dialogs. Your only option is to use conditional brach

    first start a check condition like if value is 1 then create task one

    then use conditional branch for second condition and then conditional brach for third one and so on?

    it will look something like

    if(condition) {

    }

    otherwise if (condition){

    I hope this helps.

     


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    Monday, January 2, 2012 12:03 PM
  • Sorry for confusion caused I mean I need to check if the selected value is in a set of entered value, like the following screenshot:

    Where Sales Stage is a prompt and response step name

    Best regards..



    Monday, January 2, 2012 12:12 PM
  • Any suggestions ??
    Monday, January 2, 2012 8:27 PM
  • You need to be more clear.

     

    In my dialog the user select an option from an optionset as follow:

    Item1 value 1

    Item2 value 2

    Item3 value 3

    Item4 value 4

    Item5 value 5

     

    And I need to create a set of task for different users based on the selected option as follow:

    If selected option response value in (1,2,3)

    create task 1

    create task 2

    create task 3

    If selected option response value in (4,5)

    create task 4

    create task 5

    create task 6

     

    Can I do this ??

     

    Thanks and best regards...


    Monday, January 2, 2012 11:03 PM
  • Hi Mostafa,

     thanks for posting the screen shot. I did not understand your question properly.

    Now Yes it is possible, I just tested it. Just add the value into the "Enter Value" field seperated by semicolon ;

    1;2;3

    I hope this helps.


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    • Proposed as answer by Amreek Singh Tuesday, January 3, 2012 1:00 AM
    • Edited by Amreek Singh Tuesday, January 3, 2012 10:10 PM
    Tuesday, January 3, 2012 1:00 AM
  • Thanks alot for your help

     

    But for some reason it works only for the first condition the second condition is never met

     

    Please advise..

    Tuesday, January 3, 2012 9:29 AM
  • Hi Mostafa,

    That's strange.  The only reason I can think of is that your second condition is nested inside the first if condition.

    The second if condition should start with otherwise. As I mentioned in my first post for the second condition use condition branch.

    I hope this helps.

     


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    Tuesday, January 3, 2012 10:25 PM
  • As shown, I have done what you say exactly:

    Best regards...

    Tuesday, January 3, 2012 10:38 PM
  • Hi Mate,

    It looks good to me. I tested it and it is working for me.

    Only thing I suggest is open the otherwise condition, change the operator back to "IN" set the value and publish it again.

    As I said It is working for me.

     


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com
    Tuesday, January 3, 2012 11:17 PM