Skip to main content

Notifications

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 115

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.  

  • 00030000036294D5 Profile Picture
    115 on at
    RE: Show Sales Order Charge Codes on my Custom Form

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,060 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,858 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans