229
Views
4
Comments
How to check for multi-tenancy

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.

Tenancy.oap
2024-09-12 02-43-38
Deepsagar Dubey

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,

Thanks
Deep

UserImage.jpg
Chetna Upadhyay

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? 

UserImage.jpg
Kinari Kuwazuru

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. 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.