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

Updating field on update of another field using MS Flow

(0) ShareShare
ReportReport
Posted on by 22

Hi,

I have a simple text field 'Productitemtextrollup' on OpptyProduct which is populated using Power Automate whenever an Opportunity Product record is created and a lookup field "Product" is populated (this field looks up the Product table). This flow Gets the txt label and puts it in the simple txt field.

I would now like to create another flow which updates this text field if there are any changes to the Product Lookup field after the initial create, for example if a sales person changes the product. 

I believe that you cannot do this via a D365 trigger (creates an infinite loop), but can achieve this via using the Common Data Service.

My question is how I can structure the flow in Power Automate?

So far, I have set a trigger based on Common Data Service ("When a record is updated") then used GET Record and UPDATE a record to write the text label of the product into the simple text field 'Productitemtextrollup', but it does not appear to be working. The CDS solution appears to require a 'status' field on an entity to be used as a filter, so the update doesnt create an infinite loop.

If it helps, the 'Productitemtxtrollup is being used as afilter in a rollup field (a workaround as Lookups cannot be used). 

Thanks

pastedimage1578281549876v2.png

pastedimage1578281641880v4.png

I have the same question (0)
  • Verified answer
    ba365guy Profile Picture
    2,950 on at

    I tried below, it is working.

    pastedimage1578284912645v1.png

    pastedimage1578284922717v2.png

    pastedimage1578284932617v3.png

    pastedimage1578284938449v4.png

  • Suggested answer
    Inogic Profile Picture
    682 on at

    Hi Andrew,

    You should not be using the D365 connector any more. Common Data Service is the connector to use for all flow operations for D365 apps. Common Data Service itself has 2 variants Common Data Service and Common Data Service (Current) as can be shown in the picture below

    pastedimage1578284775959v1.png

    The Common Data Service (Current) connector will show up only when you try to create a flow from within a solution from https://web.powerapps.com. choose your solution and then New --> Flow

    pastedimage1578284983430v4.png

    The CDS (Current) connector has the highlighted trigger When a record is created/updated/deleted. Use that to make sure the flow that you design can be triggered both on Create and Update. Set the filter attributes to ensure that the flow is triggered only when the Opp Product is modified.

    pastedimage1578284918633v3.png

    HTH

    ~roohi

  • Andrew Stone Profile Picture
    22 on at

    Thanks very much for your help ba365guy, much appreciated. I've rebuilt the original flow using Common Data Service below (per Roohi's post) and that is working too now.

  • ba365guy Profile Picture
    2,950 on at

    Yeah... Going forward use CDS (only)

  • Inogic Profile Picture
    682 on at

    Hi Andrew,

    Glad it helped. But a critical point to note is that wherever possible you should use CDS (Current) as it avoids the complexity of having to set the environment in the flow when you move the flow from Dev - TEST - Prod.

    The CDS (Current) connector by default connects to the current environment from which the connector is being accessed/triggered. The CDS (Current) is the connector where all new advancements would show up too.

    pastedimage1578291709314v1.png

    Thanks!

    ~roohi

  • Andrew Stone Profile Picture
    22 on at

    Thanks - so ive built everything on our Sandbox environment so far - is 'current' in your post referring to 'current' in the drop down when I create a new flow? 

    In otherwords, if I log in to the PROD envionment, I shoud select 'CURRENT' not the name of my PROD environment?

    Thanks,

    Andrew

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 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans