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, ...
Suggested Answer

How new field value ( from salesline) is populating in CustConfirm Trans table during SO confirmation

(0) ShareShare
ReportReport
Posted on by 56

Hi All,

I have added one new field "Reason code" in Sales line. The purpose of this field is when user going to change "Sales price" then they have to select the reason code before changing the sales price in an item. and then confirm the SO.  My question is

1. How i will populate the reason code in jOURNAL-- Sales order confirmation form ? 

2. i wants to do allow edit = TRUE the reason code, when the sales price is going to change or modify else false. means when i creating a new line in SO, then the reason code should be allow edit =  FALSE. 

Please give me more shed on this.

Thanks!

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    1. Enhance Tables\CustConfirmTrans\initFromSalesLine with Chain of Command and add handling of your field there

    2. I'm not sure if I understand your condition for the allow edit. You said that AllowEdit should be false for new Sales Line. And you say that user must give reason code before changing the sales price. But they can't change the reason code becasue AllowEdit is false. Perhaps you can try to describe the requirement as a user story / process description, and tell how the user would proceed in the system and what should be possible or required in different process steps.

  • Sergei Minozhenko Profile Picture
    23,095 on at

    Hi @rp@n,

    How does system should behave if you change price several times before confirmation? Maybe it's better to modify confirmation dialog and process and check if price was changed since last confirmation ask to provide reason for that.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    You can utilize class salesConfirmJournalCreate. This class is responsible for creating conformation journal. Look at the methods createJournalLine and header to add your customized code using COC.

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 688

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 301

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans