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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Show Sales Order Charge Codes on my Custom Form

(0) ShareShare
ReportReport
Posted on by 117

Hi all,

         I have a custom form named MassMaintenanceSalesOrder. This form is bound to a datasource called MassMaintenanceTable. MassMaintenanceSalesOrder form has a grid with a lot of fields in it from Sales Table and Sales Line like SalesId, ItemId, ConfigId and so on. 

We already know that in MarkupTrans table, we have a field called MarkupCode which includes all the code charges. I have added some new fields in my custom form datasource table which will hold the value of new markupcodes recently added through Charges Codes form screen.

For example, I have added a new charge code say ChargeValue. I have selected this new charge code for my customer in Auto Charges screen. Now, I make a new sales order. This newly selected charge code should be shown on ChargeCodes screen on sales order header under Sell tab. Sell -> ChargeCodes. 

My task is, I want to assign and show the value of this sales order charge code on my custom table grid. I have added a new field with the same name ChargeValue on my custom form datasource table. I want to get the value of sales order charge codes for this particular charge code only and show it on my custom form in right field. Please help, how can I do that?

I want to know the place on my custom form where I can write code for that. 

and a possible code snippet which will do this job. Any help please.  

I have the same question (0)
  • 00030000036294D5 Profile Picture
    117 on at

    Somebody please help I need to get sales order charge codes and assign their values to my custom form datasource table and I need to know at which location on my form should I write that select statement. Should I write it on form Init or datasource write() or where.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans