Did you set attribute active to true in account entity of your create action and associated a user role? If yes than please can you share the error message that you are getting in your console?
You can commit and refresh in create action itself instead of using commit action separately.
Update: See this forum post on how to retrieve user role
If you want to retrieve multiple user roles in one retrieve action then use ‘and’ in XPath constraint as shown in example below;
[id = '[%UserRole_Administrator%]' and id = '[%UserRole_User%]']
Once you get the user role(s), associate it to the account. If its one user role then use Type=Set and for multiple user roles use Type=Add
Hope this helps!
You are probably getting this message because you have not set a UserRole for the user. If you are using the same role for every user of this entity type, I would suggest adding an After Create event that retrieves the desired role from the database and sets it to the User entity.
Hi Mohammed Siddiqui,
Thanks. Yes I have missed to set the UserRole to the Account object. Can you guide me on how to exactly set a List of System.UserRole objects in the Create Object activity. I am getting the values from the page and creating the Account object.
Thanks in advance.
Thanks a lot Jonathan. it worked and i was able to complete