Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Cannot update record using AIF document service

(0) ShareShare
ReportReport
Posted on by 15

Hi All,

I have created new document service by creating new AOT query and run AIF wizard to create service. I have READ, CREATE, UPDATE operation in my service and all the operations working fine for one entity. 

When i try to the records in other entities, its not allowing me to create or update records in other entities except one entity. I get below error when i send update request from POSTMAN tool?

''Update operations are not allowed across companies. Please use the changecompany keyword to change the current company before updating the record''

Why it is not allowing to update the record in other entities. Its works properly for only one legal entity. I am using AX 2009. Please suggest way to fix this issue.

 

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Cannot update record using AIF document service

    Hi Udhay257,

    Did you try to perform a tableBuffer.clear() in the subsequent changeCompany code block.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans