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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Create Product by code using Data Entities D365

(0) ShareShare
ReportReport
Posted on by 15

Dear AX developers,

I tried using "EcoResReleasedProductCreationV2Entity"  data entity in my code to create and release products. It worked fine but I noticed there was a difference in one of it's data sources compared to an older version which caused the build fail on that server. 

My question is that,  is it a good idea and is this entity reliable to use in code to create products or there is a risk that later on it may fail due to upgrades.

Thanks

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    HI Sepideh Azad,

    You mentioned "which caused the build fail on that server.", can you share the error message?

    Regarding EcoResReleasedProductCreationV2Entity, it is feasible to use it to create Item or released product.

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/381552/x-code-to-create-item-or-released-product-in-d365-fo

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Sepideh,

    The data entities can indeed change. Sometimes there can be an enhancement or bugfix. In some cases, there will be a complete new entity version. There might be a chance that in future a V3 version will be released and the V2 will then be deprecated. Note that also the data model itself could be changed in future.

    For sure, you have to review the impact on all updates. For that reason you first install a service update on a non-production and DEV environment to see if everything is still working or need some attention.

    Can you provide the details what was changed by Microsoft and what made it fail on your coding?

  • Sepideh Azad Profile Picture
    15 on at

    Hi Blue Wang,

    Thanks for your reply. On that server, the second data source of  the EcoResReleasedProductCreationV2Entity  was EcoResProductEntity, whereas on my vm it is EcoResProductV2Entity, so it didn't support our custom fields added to the EcoResProductV2Entity extension.

  • Sepideh Azad Profile Picture
    15 on at

    Hi André,

    Thank you for your explanation.

    Yes, as I just mentioned one of the data sources of the EcoResReleasedProductCreationV2Entity has changed from EcoResProductEntity to EcoResProductV2Entity. So it didn't include the EcoResProductV2Entity extended fields. What if I duplicate these entities and use my own?

  • Verified answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi Sepideh,

    Yes, you can duplicate the OOB entities add your custom fields as well if any, and use it to create a Product.

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    You should update your other server to the  same version you have  where you have done modification to avoid your issue.

    You can duplicate entity and use your own  but every time you apply new update make sure to test your duplicate entity and make sure everything works. I have see some times entities change  a lot and some of the things you might have done as a customization comes as a part of standard entity with more improvement which you might miss. Not saying its a wrong path but something you  have to keep in mind when you apply new updates.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Sepideh,

    In addition, what if the data model changes? In that case, you have to change the entity anyway. Microsoft will ad just their data entities in that case. You have to adjust it when you have an own custom entity.

    Note that there are not that much changes expected.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans