Hello, I am building an application whereby users will be associated to a company, instead of linking directly from Company to Account entity in the admin module, I have created a 'Agent' entity with a 1-1 relationship with the Account entity. My question is, when adding a new user, should I make a microflow that is called to then create an 'Agent' object or the other way around? I am trying to avoid issues if I am ever updating the module and maintain company based relationships between a user and a company to maintain visibility controls. Thank you in advance!
asked
Alexander Eitland
1 answers
0
Hi Alex,
You should create the 'Agent' object first and then create the associated 'Account' entity. This ensures data consistency and allows you to manage company-based visibility and access through the 'Agent' entity without tightly coupling it to the 'Account'.