Hello,
I have a Nav multi-tenant setup. I want to modify a table data on every tenant-company at once, without open an edit every single company registers.
The tenants change often, so i wonder if there is any shared table where i can find either one of the tenants, in order to automate the process, and write a script on SQL that modifies one specific table for all tenants at once.
Thank you very much for your help.
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thank you, i'm going to try with Power Shell.
$Tenants = Get-NAVTenant -ServerInstance DynamicsNAV71
foreach ($Tenant in $Tenants)
{
$comps = Get-NAVCompany -ServerInstance DynamicsNAV71 -Tenant $tenant.id
foreach ($comp in $comps)
{
Invoke-NAVCodeunit -CodeunitId 7172402 -ServerInstance DynamicsNAV71 -CompanyName $Comp.CompanyName -MethodName fResetProjectQueStatus -Tenant $Tenant.Id
}
}