Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Quote Products: Discount in % and mapping to Manual Discount Field

(0) ShareShare
ReportReport
Posted on by 17

Hi everyone, 

I am facing the following situation: when adding a product to a quote, I need a field for discount in percent. So I created a custom field with a calculation (claculated discount = discount in % * amount). This all works fine and I am happy with it. My issue now is, how to get the calculated discount field into the system calculation. My idea was to simply create a workflow to fill the field manual discount with the value of calculated discount. But for some reason I can't chose the entity Quote Products when trying to add the step. Is there any other (simple) way to achieve this? 

I hope I explained it cleary. Can anyone help me with this issue? 

Thanks a lot in advance. 

  • yvka123 Profile Picture
    17 on at
    RE: Quote Products: Discount in % and mapping to Manual Discount Field

    Thank you so much! Works perfectly the way I need it!

  • Verified answer
    LuHao Profile Picture
    40,884 on at
    RE: Quote Products: Discount in % and mapping to Manual Discount Field

    Hi partner,

    I would recommend you create a simple filed to represent percentage, and use business rule to calculate the manual discount field.

    The disadvantage of using calculated field is that calculated field can only be updated when the record is saved. So when the Quote Line record is saved for the first time, the calculated field is updated, and the manual discount field is also updated. At this time, we need to save the record a second time to get the correct Extended Amount.

    1. Create a floating point number field for Quote Line entity. Minimum Value is 0 and Maximum Value is 1.

    pastedimage1594795027994v1.png

    2. Add this field to Quote Line form, then create a business rule as follow. Select the Scope to Entity.

    pastedimage1594796492249v3.png

    IF

    percentage discount contains data

    THEN
    Set Manual Discount to Amount * percentage discount

     

    In this way, whenever user enter a percentage decimal, the Manual Discount will be the percentage decimal * Amount.

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: Quote Products: Discount in % and mapping to Manual Discount Field

    Hi,

    I am afraid you cannot do this using Update step of workflow.

    Fill Manual Discount field either with Business Rule/JS before saving record.

    Or you have to create a custom workflow step (custom code activity) to achieve this.

    However, keep in mind that Quote Line entity is being updated by System Processes and you might face dead-lock issues.

    Hope this helps.

    Wahaj

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,217 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,978 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans