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 :
Supply chain | Supply Chain Management, Commerce
Answered

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

(0) ShareShare
ReportReport
Posted on by 47

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

I have the same question (0)
  • Verified answer
    huijij Profile Picture
    19,811 on at

    Hi Aman,

    Please check the link to see if it helps:

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

  • Aman Soni Profile Picture
    47 on at

    Hi Judy,

    Thanks for the suggestion.

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 299 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans