How to assign User Roles on a Person entity

0
We have the following Domain Model, but for some reason if we try to create a Person_NewEdit dialog, we can’t add a Input Reference Set Selector for User Roles the same way we could do if we did Account_NewEdit.   The error on the right says: “Entity ‘App.Person’ has no association ‘System.UserRoles’.
asked
3 answers
1

I would retrieve the account object over association in a dataview, there you can use the reference selector.

 

The reason this doesn't work is that the association that you are using is part of the user entity, and you are trying to access it directly from the person entity.

answered
0

You might want to let Person inherit from Account, then it’ll work.

answered
0

Thank you. We are now using a nested Data View where the Data Source is a microflow that returns a retrieved Account, if found or else a new Account object.

 

 

And in case someone needs this, this is the SavePerson workflow we use in Person_NewEdit:

answered