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

Community site session details

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

Create trigger on lead qualify

(4) ShareShare
ReportReport
Posted on by 21
Hi,
 
I'm trying to copy some custom fields from a qualified Lead to a (new) opportunity.  I have a power automate flow with a trigger on "add" new row to dataverse table "Opportunity" - it doesn't fire on qualify however...if I manually create a new opportunity, it does.  Anyone have any ideas?
 
thanks,
Steve.
I have the same question (0)
  • Verified answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    Create trigger on lead qualify
    In Dynamics 365, when a lead is qualified, the opportunity is created via the internal system process rather than as a manual "create" operation. This means that your Power Automate flow, which is triggered on the creation of an opportunity, may not fire because system processes (like lead qualification) bypass certain triggers.
     
    Here are a few ways to address this:
     
    1. Use the “When a row is added, modified, or deleted” Trigger
     
    The "When a row is added, modified, or deleted" trigger in Dataverse may capture changes even if the system creates the record. Try using this broader trigger and specifying the Opportunity entity.
     
    Make sure to add a filter condition to the trigger to ensure it only fires when a new opportunity is created.
     
    2. Use a Trigger on Lead Qualification Instead
     
    Alternatively, you could add the trigger to fire when the Lead is qualified. In this case, you would use the "When a row is updated" trigger on the Lead entity, filtering on the field that indicates the lead is qualified (e.g., status or lead state).
     
    Once the lead is qualified, you can query for the newly created opportunity and copy the custom fields from the lead to the opportunity.
     
    Thank you,
    Amit Katariya
  • Suggested answer
    Muhammad.Affan Profile Picture
    4,620 Super User 2025 Season 2 on at
    Create trigger on lead qualify
    Hi Steve,
     
    Change the trigger to 'when a row is modified' rather than when a row is added.
     
    Thanks
    Affan
    If my suggestion helps please mark it as verified.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 145

#2
DAnny3211 Profile Picture

DAnny3211 134

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans