How to set value to reference to list?

0
I'm trying to create a user automatically when the admin adds a new student, i manages to use a microflow to create a user using the information from the student, the only thing i'm missing is setting the role. I'm not sure how to do this.  
asked
2 answers
3

Hi Jessica, you will have to use a database retrieve to get the userrole you want to grant to the user.

 

Mendix automatically creates tokens for the userrole so its very easy to do so.

As you can see in the following screenshot, if you select System.UserRole in your retrieve, and start your xpath with "[id =", the bottom of your autocomplete menu shows all userroles you have in the application. 

 

image.png

answered
2

Thank you! it worked

answered