Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / workflow to update onl...
Sales forum
Suggested answer

workflow to update only the most recent opportunity

Posted on by 433

Hi,

I am investigating creating a workflow to automatically update a field on the most recent opportunity based on a field value in the Contact.

The problem I have is that a lot of our Contacts would have multiple open opportunities. How can I create a workflow that will only update the most recent opportunity?

Thanks

Ted

Categories:
  • Suggested answer
    a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: workflow to update only the most recent opportunity

    Hello,

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

  • Ram Prakash Profile Picture
    Ram Prakash 2,285 on at
    RE: workflow to update only the most recent opportunity

    Hi,

    Create a Custom Action and call that custom Action from Microsoft flow or

    Create a Console Application that calls CRM System --> use Fetchxml or Queryexpression to take only last modified record(modified on desecending) for each contact's Opportunity and perform your operation

    Please mark as Answer if it is helpful and provide Kudos

    Subscribe : www.youtube.com/.../UCnGNN3hdlKBOr6PXotskNLA

    Blog : microsoftcrmtechie.blogspot.com

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: workflow to update only the most recent opportunity

    Hi,

    Use list rows action in power automate to fetch recent updated opportunity.

    docs.microsoft.com/.../list-rows

    You can order by modified on and pick first record.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: workflow to update only the most recent opportunity

    Hello Ted,

    The issue with workflow - you can't do it easilly.

    You will have to either create a custom logic - either plugin or custom workflow activity or use Power Automate - that could be performed in a no-code manner.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans