web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Add conditional approval to Opportunity Step

(0) ShareShare
ReportReport
Posted on by 3,317
Hi 
I want to add conditional approval where email goes out to a bunch of people if a opportunity product lines total sum exceed a certain amount, and this is should pervent from creating quote or saving quote if cannot hid ethe + button to create quote. What is teh best way to add a conditional approval step where it only triigers the approval for osme opportunities? and idealy email goes out where approver can either approve from teh email or access line to opportunity and approve step , and originator shoudl see who approved. Quote part can be handled separtely from plugin. please suggest pro code if thats better or low code best as i know how to craete plugins
Categories:
I have the same question (0)
  • Assisted by AI
    Saif Ali Sabri Profile Picture
    2,636 Moderator on at
    To implement conditional approval on the Opportunity entity with restrictions on Quote creation, you can approach this in two ways depending on whether you prefer low-code (Power Automate + Approvals) or pro-code (custom plugin/workflow):

    Low-code approach (Power Automate + Approvals)

    1. Create a Power Automate flow triggered on update of Opportunity or on Quote creation attempt.
    2. Condition check: Sum the Opportunity Product Line totals.
      • If the total exceeds your threshold, trigger the Approval process.
    3. Approval action:
      • Use the Approvals connector to send an email to approvers.
      • Approvers can approve directly from the email or via the Approvals app.
      • Store the approval response back in the Opportunity record.
    4. Restrict Quote creation:
      • Add a Business Rule or JavaScript on the Opportunity form to disable/hide the “+ Quote” button until approval status = Approved.
      • Alternatively, use Dataverse security role logic to block saving until approval is complete.
    5. Visibility:
      • Add a field on Opportunity to show “Approved By” and populate it from the approval response.

    Pro-code approach (Plugin + Custom Table)

    1. Plugin on Quote Create/Save event:
      • Calculate the Opportunity Product Line total.
      • If it exceeds the threshold and approval is not yet granted, throw an exception to block Quote creation.
    2. Approval tracking:
      • Create a custom table (e.g., OpportunityApproval) linked to Opportunity.
      • Store approver, status, and timestamp.
    3. Email notification:
      • Use a custom workflow activity or plugin to send emails with approval links.
      • Approvers can click the link to update the approval record.
    4. Originator visibility:
      • Show the approval status and approver details on the Opportunity form.
    5. Quote handling:
      • Once approval is granted, the plugin allows Quote creation.

    Recommendation

    • If you are comfortable with plugins, the pro-code approach gives you more control over blocking Quote creation.
    • If you prefer low-code, Power Automate with Approvals is faster to set up and integrates well with email-based approvals.
    • Since you mentioned you already know how to create plugins, you can combine both: use plugin for Quote restriction and Power Automate for email approvals.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans