Updating 2 Entities in one Action

Updating 2 Entities in one Action

I have the table Companies
I need create record in USER_MASTER entity when new record created in Companies entity.
How can I achieve it? In other words userName from USER_MASTER the same as email from Companies entity.
Thanks in advance
Hi Daniel,

welcome to our network.

You can do that in and advanced query (AQ) giving both instructions in the same AQ, but i wouldn't for that way. The best option is to have an User Action "Create User" that receives as parameter the data needed for creating/updating a company and invokes both Entity Action to create/update both records.

Doing it in a User Action you can developed there the business needed without replicating the logic in every screens/webservice/wherever its possible to create a company.

In attached there an example.