I was enabled multi-tenancy in application module and in database table. I created a Customer table which I already make it multi-tenant and show the tenant id as well. So, whenever I create the new customer with the same user as well as with the different user the customer created every time should have same tenant id as 0. I tried making another tenant in Outsystems support module as well but still there is no change. What to do?
I am attaching the whole application below, please do check and tell me if any changes required. If you have any demo module do share with me.
I want that for different users there is different customer information which was added by that particular user but in my case the changes done inside one user account should reflect all other user's customer table i.e., same customer table for all users. Please give some example or demo if someone has any.
Hi Chetna,
I didn't understand the complete scenario you mentioned but you can reference the below post which can be a help:
https://www.outsystems.com/forums/discussion/54354/reactive-web-and-multi-tenant/#Post204637
https://www.outsystems.com/forums/discussion/56605/what-is-the-use-of-tenant-id-and-tenant-name-in-site-property/#Post213572
https://www.outsystems.com/forums/discussion/46284/multitenancy/#Post169006
Kind regards,
Benjith Sam
Hi @Chetna Upadhyay
As i understood, Make sure when anyone created new customer he has logged in, because without login platform can't identify the tenant,
ThanksDeep
Yes, I did login with different user account but for every login when I add new customer, the customer details every time take the tenant id as 0. Why can anyone tell me?
Hi,
If Show Tenant Identifier of Entity is ON, you need to set the Tenant Id by yourself.
If Show Tenant Identifier of the Entity is OFF, the TenantId of the logged in user is automatically set and the record is created.
Please use TenantId in Site Properties to set the TenantId of the logged-in user.I hope you will find it useful.