How to pass multiple values into Process model without CDT?

Scenario:

Pass multiple rule inputs into Process model without a CDT and pass them individually. Please see the screenshot of user management scenario. As in the screenshot, we are trying to pass userToAdd and groupToADd if selected option is Add user. Since, CDTs can't take User type field and also as we do not want to use CDT as not storing any data in DB, we prefer not to use CDT.

Instead pass values individually. Please advise.

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Lead Developer

    The unique identifier of user datatype is the username, which is type text.  If you pull the "username" property from the users in question, you can store them in a list of text.  On the other side, you would use the toUser() function on each text (a!forEach if you can or MNI) in the list of usernames should get you the user back.  You can store the users as text usernames in the CDT if you so choose.  CDTs are powerful and useful and worth considering whether you're using the database or not.  I have a side project with 5 to 10 unique CDTs even though the whole project is never going to touch a database ever.

Reply
  • +1
    Certified Lead Developer

    The unique identifier of user datatype is the username, which is type text.  If you pull the "username" property from the users in question, you can store them in a list of text.  On the other side, you would use the toUser() function on each text (a!forEach if you can or MNI) in the list of usernames should get you the user back.  You can store the users as text usernames in the CDT if you so choose.  CDTs are powerful and useful and worth considering whether you're using the database or not.  I have a side project with 5 to 10 unique CDTs even though the whole project is never going to touch a database ever.

Children