How can I run a codeunit for another company without using job queue
I want to approve a Purchase Invoice in another company.
so we have 5 companies
approvers will have to go into every company and approve it, which is quite annoying for few approvers.
I can display all approvals from all company into one list but when he approves it errors, even I use changecompany function.
Any advise?
Thanks
Thank you ZHU
Hi, maybe SessionSettings Data Type will helps.
More details: https://yzhums.com/13662/
Hope this helps.
Thanks.
ZHU
I think StartSession will do the job
Validate works on the same company, cannot trigger in another company
also there are other validations , reading other tables, those should also be have change company etc.
Just a thought: Can you create a field in ApprovalEntry (ex: boolean) and make it to true and in OnValidate trigger of the field run the ApprovalsMgmt.ApproveApprovalRequests(ApprovalEntry);?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156