Is there any license condition(which I need to have) to use ChangeCompany function? I have an error message seeing, that my TestUser doesn't have permissions to insert data into Marge Company.
The TestUser on which I was testing my code has a SUPER Role for all companies. Still I see this error message.
THX
PS: NAV 4.0 SP2
0
Answers
so try this:
1 go to the properties of the object (report, tab, codeunit etc.), from which you will change data in other comp.,
2 fill the property 'permissions' with object, which you will data change in.
3 and try it.
sorry if this not help you (and my english
I know that this is not the issue of the bought license, because my code is copying some data to the Marge Company ( like T5200, or all other my own tables.)
By the way, I thought that this is important when the user doesn't have enough permissions to (for example) read a table. My TestUser has the role of SUPER user, so I thought that he will be able to make any input/modify operations on the base.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Yes I was trying to put records to protected table, and Yes changing the object permissions helped.
Funny thing is that, when I was making tests on my developer licenses it didn't crashed. However when I was making beta tests on customer licenses it started to crash.
Thats why first I thought about licenses.