John Ackery wrote:
Not sure how to call the logged in users 'Tenant ID' .... should we use the built in function GetEntryEspaceName()?
Use the built-in Site.TenantId site property to get the current Tenant Identifier.
It should always be non-zero; if it's zero in your Reactive Web module, use the one from the Public Action from your consumed, working module.
On the record creation side, how do we pass this value to the 'Tenant_ID' in the created record .... from within the Detail form? Not sure.
If by Detail Form you mean the Form Widget in your WebScreen, then that's not quite right.
In your Reactive Web "consumer" Module, make sure the consumed Entity has it's Tenant ID exposed, by going to Data > [Dependencies] > [Your Entity] > Right-click > Advanced, and selecting the "Expose Tenant Identifier" from my first picture.
When you do this, the dependency will turn from Blue to Red, and the hidden Tenant_Id column will be exposed.
At this point, you can assign a value to this Tenant_Id column and ensure it gets written to the database upon Create, using the Site.TenantId value mentioned above, with a regular Assign.