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

Update sales order type to Sales order from Journal on approval

(0) ShareShare
ReportReport
Posted on by 15

Hi,

We have a custom workflow on Sales order form. The requirement is that when a sales order status is set to approved, the sales order type should be changed to Sales order from Journal.

If we use the doupdate method of sales line to change the type, it is getting changed but since the others methods are not getting called, the inventrans is not getting created for those lines, if we use the update method, inventtrans is getting created but the unit price in sales line is getting changed to zero.

Also, one thing I've noticed is that sales line history is also not there in the saleslinehistory table for the approved sales order.

May I know if I'm missing anything in this case.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,173 Super User 2026 Season 1 on at

    Hi Dynamics Noob,

    I do assume this approval and automating the sales order type is a customization? Have you checked what happens with the price when you change the type manually? I would recommend checking what exact logic is being called when you change the type. Then you can call that logic before the doupdate.

  • dynamics noob Profile Picture
    15 on at

    Hi Andre,

    Thanks for the reply.

    Yes, approving and automating is a part of customization.

    On further analysis, we've observed that the unit price is getting removed due to the change in sales line field 'ManualEntryChangePolicy'. If the field contains value '5637144576' , then it works fine, otherwise the unit price gets removed to zero while converting from journal to sales order.

    While we're trying to figure out the actual cause of getting this value removed, could you please share some information on use of this field and can we restore its value to '5637144576' ?

    This field has a relation with the PriceDiscChangePolicy table, could you please suggest what should we do in this case and how will it impact the system if we restore the same value (before removal) in this field.

    Thanks

  • André Arnaud de Calavon Profile Picture
    305,173 Super User 2026 Season 1 on at

    Hi Dynamics noob,

    This is a long time ago for me that I looked into this field. I thought the field value has a reference to the table PriceDiscChangePolicy. You can check what table and then what would be the best value to use to prevent having the price or discount overwritten.

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 April 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 797

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 534

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans