Hi,
I have a situation with test extension which I am building.
Let say I have a two companies in Business Central. I want to perform test a procedure which will include both companies. On first company I will generate some Sales Orders and I will generate Purch. Orders and I will send them to another company to process until the end.
I know that CHANGECOMPANY method exists for records but this does not help.
How can I in AL code declare or call some method to change company and then on some step i call a method which will change company to another, again.
Anyone did something similar? I heard about sessioninfo variable but honestly I didn't find anything useful for my case. Please help if someone have any idea.
Thanks in advance guys!