Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

How to extend a standard table for adding the custom fields?

(0) ShareShare
ReportReport
Posted on by 45

Hi folks, I have a requirement in D365 Commerce of adding a custom field to the salestable. For that I have created an Extension table as suggested by Microsoft https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/commerce-runtime-extensibility#scenario https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/channel-db-extensions .

I have implemented post trigger correspond to the CreateOrderFromCartResponse but I am getting SalesId as null but transaction id is there. I tried to look up the RetailTransaction table for SalesId using transaction id but the SalesOrderId is null in that table as well. 

I am using Commerce SDK (Commerce Scale Unit) https://github.com/microsoft/Dynamics365Commerce.ScaleUnit for development and deployed the Package with SQL script for table creation and CRT for post trigger using the same.

Here I have following concerns:-

  • Whether the way which I am using is correct or I have missed something?
  • How can view the Extension table in F&O?
  • For which DataRequest or Response I can get the SalesOrderId that I can use in my extension table?

Thanks,

Aman Soni

  • Aman Soni Profile Picture
    Aman Soni 45 on at
    RE: How to extend a standard table for adding the custom fields?

    Hi Judy,

    Thanks for the suggestion.

  • Verified answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: How to extend a standard table for adding the custom fields?

    Hi Aman,

    Please check the link to see if it helps:

    dev.to/.../dynamics-365-e-commerce-development-proof-of-concept-1d05

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

Featured topics

Product updates

Dynamics 365 release plans