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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Starting a flow of Power Automate when entering in an Opportunity

(0) ShareShare
ReportReport
Posted on by 448

Hi all,

It's possible to start a flow of Power Automate every time that user is entering in an Opportunity?
If yes, can somebody indicate me some example?

Thanks in advance

I have the same question (0)
  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    Entering means user open the opportunity manually, if yes then you need to create one field Two Options then with javascript you can update the values by toggling them with form onload event.

    and on update of this field you can run power automate.

    Other way, is on create of opportunity you can write power automate.

    Thank You,

    Pradeep Rai.

  • DiePic Profile Picture
    448 on at

    Thanks for reply Pradeep Rai

    can you indicate me some link with examples please or some where I can find a detailed lesson about?

  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    1. For creating custom fields: https://www.gestisoft.com/blog/how-to-add-fields-in-microsoft-dynamics-365

    2. add below function onload

    function onLoad(executionContext)
    {
    var formContext=executionContext.getFormContext();

    var fieldValue=formContext.getAttribute("<add logical name of newly created field>").getValue();

    formContext.getAttribute("<add logical name of newly created field>").setValue(!fieldValue);

    formContext.data.entity.save();

    }

    3. Power Automate: add field below highlighted part:

    pastedimage1673546549596v1.png

    Thank You,
    Pradeep Rai.

    Please mark the answer VERIFIED, if it helps.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans