Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

OData: Create mutliple new ECO products

Posted on by
Hello Dynamics 365 Community,
I am working with D365 FO for the last few months and although there is hardly resources on the topic I was able to get to know the system and how I can do stuff. Overall I was told to learn more about how to use OData requests to create, update and read entities. With the metadata that worked quite well after some time. 
 
My Problem:
I need to create multiple products in an ECO header using OData. These products should appear with ChangeType "New" and Impact "New product". Using the UI that is possible without any problem. You can just click on "New" and select "Create new product". After that a window appears (that looks like the one for creating an engineering product), you fill in the data and the entry will be created for you.
With OData requests I am creating products "differently". I am not able to create two products with ChangeType "New" and impact "New product". The error says something like: New product already exists in ... 

Am I missing something, how did you solve that? Is there a hint you can give me?


I would love to hear from you! Thank you very much in advance!
Sincerely
Christian

PS: I have written a super long message explaining everything in details but I was not able to create the post in this way. Hardly any documentation on OData and no working forum ... Love it ... 
Categories:
  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    OData: Create mutliple new ECO products
    What is the full error message? Aren't you violating any unique index?
     
    What do you mean by ECO header? ChangeType field doesn't exist in EcoResProduct table; you must mean something else (or it's a customization).

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans