Skip to main content

Notifications

Business Central forum
Suggested answer

Sales Order Line ID / GUID Is Changing

Posted on by
Our app is creating sales order lines via the Rest API and we want to track which ones the app created vs ones that were created directly in business central.  We're storing the sales order line id (guid) in our database.  Problem is it doesn't always match when we make later REST api calls to get the lines for the sales order.  We can make 3 calls to the api to get the sales order lines and each time the set of lines will contain different line ids.  I cannot find any documentation to explain this behaviour.  What is the correct way to store references to sales order lines in our database?
 
Note... we saw similar behaviour with Acumatica.  Line ids changing unexpectedly.  So it must be some kind of ERP concept that I don't understand.
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,095 Super User 2024 Season 2 on at
    Sales Order Line ID / GUID Is Changing
    This is a bit strange. I checked the standard code and the SystemID will be updated when the Type and "No." are validated. If there are no modifications, there should be no changes.
     
    You can try recording the primary key of Sales Line to see if this problem still occurs.
     
    Thanks
    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans