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 :
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 296

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 234 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 139 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans