Reputation: 559
I have 2 companies and the requirement is to create a sales order in B company whenever a purchase order created in A company.
I have a working code to create a sales order using Acumatica framework and I am not sure to create a sales order in B company while logged into A company.
I prefer to do it using the framework instead of web services. is it possible?
Upvotes: 0
Views: 78
Reputation: 5613
You don't need to do this via web services if you use PXLoginScope. There is a similar question here that should help...
Save data to different company
Sample:
using (var ls = new PXLoginScope("admin@OtherCompany"))
{
//Sales order creation here for other company
}
Upvotes: 2