web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

odata support for Deep insert creation

(0) ShareShare
ReportReport
Posted on by 40

Dear All,

Does Odata in Dynamics 365 finance and operation support deep insert?

we need t to create a Purchase order header and line lines in one POST operation, is that possible?

Thanks,

Mina.

  • MinaSafwat Profile Picture
    40 on at

    https://......./data/PurchaseOrderHeadersV2

    This is my body request

    {

      "dataAreaId":"tmt",

      "DefaultReceivingWarehouseId":"02-GALAA2",

      "DefaultReceivingSiteId":"Circle k",  

      "InvoiceType": "Invoice",  

      "OrderVendorAccountNumber": "002",

      "PurchaseOrderLinesV2":[

          {

              "dataAreaId":"tmt",

              "OrderedPurchaseQuantity": 10,

              "ItemNumber": "0000000343381"

           } ]

    }

    and this the error I get "Cannot apply PATCH to navigation property 'PurchaseOrderLinesV2' on entity type 'Microsoft.Dynamics.DataEntities.PurchaseOrderHeaderV2"

  • André Arnaud de Calavon Profile Picture
    307,097 Super User 2026 Season 2 on at

    Hi Mina,

    What I understood is that you need to do a POST operation per data entity separately. The documentation is mentioning an option to run multiple requests in one transaction. Probably this might be your alternate solution: docs.microsoft.com/.../odata

  • Santosh Ramamurthy Profile Picture
    300 on at

    With batch request, each subrequest executes independently.

    Therefore how can we achieve rollback for processing journals? Any help would be helpful

  • SvenB Profile Picture
    66 on at

    I am also interested in either doing multiple requests in one transaction (how?) or being able to use a deep insert. Any help on this?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans