HI Support,
I could resolve the issue at my level.
I was assuming that when we switch the Tenant using, "CurrentTenant.Change" and insert new record in tenant DB, the Guid of the record would be same as that of the host record before switch. (these master records and not host & tenant specific). This is more relevant when we have linked table using foreign key referential integrity. But, that assumption was wrong. Now, I am querying the Guid of linked table record (foreign table) from respective tenant DB and updating master record with appropriate Guid of child record and then calling "CreateAsync"
If possible, could you please refund the credit points.
Regards, Pravin Raijade.
But none of the following API accept TenantID/ Tenant Name
GET /api/identity/users/{id}
PUT /api/identity/users/{id}
POST /api/identity/users/{id}
I want to authenticate the mobile User using "User Name & Password" and based on the Role of the logged in User, decide on the mobile application workflow.
how can I change the Tenant using Mobile App? is there any API available out-of-the-box?
hi
Usually, you can use ICurrentTenant to get current tenant info, if your API needs to control it, you can pass
tenantId
to your API.https://docs.abp.io/en/abp/latest/Multi-Tenancy#icurrenttenant https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant
Hi Support,
But none of the following API accept TenantID/ Tenant Name
GET /api/identity/users/{id}
PUT /api/identity/users/{id}
POST /api/identity/users/{id}
I want to authenticate the mobile User using "User Name & Password" and based on the Role of the logged in User, decide on the mobile application workflow.
how can I change the Tenant using Mobile App? is there any API available out-of-the-box?