cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rw_ga
Advocate II
Advocate II

Dataverse trigger flows when a row changes - column filter bug

Trigger flows when a row is added, modified, or deleted - Power Automate | Microsoft Docs states "Use the Column filter box to define a set of comma-separated, unique names for the table, as shown in the following image. The flow runs only when these columns change on the specific rows." 

  1. I find this statement a little confusing, does this phase "unique names for the table" try to tell us to use the "unique name of each column"?
  2. This doesn't work for all column/field types.  So filtering columns isn't accurate.  It should either filter by ANY column/field type or be changed to say "A distinct set of columns/field types that can be filtered but you will have to guess which ones... hehehe" so that its more accurate!
  3. If it does allow adding lookup columns to the column filter area, what name do I need to use?  BECAUSE THE UNIQUE NAME FOR THE LOOKUP DOESN'T TRIGGER THE FLOW!

Trying to be a citizen developer is so frustrating when MS doesn't support their own column/field types and returned data in triggers and actions!

 

  1. Please ADD your hidden fields you/MS use on forms and other areas to the Dynamic Data.  You use this information why can't we?
  2. Allow Triggers to use any data from a row.  Null and empty are values for optional columns/fields!
  3. Allow Saving flows with errors, we may need to run out and have to get back to the flow later and to lose everything because one issue cropped up while building the flow throws an error shouldn't require us to fix it before we save it!
  • Example a lookup field appears to use 4 fields/values (and the column name/schema name doesn't appear to even be used):
    • Microsoft.Dynamics.CRM.lookuplogicalname
    • Microsoft.Dynamics.CRM.associatednavigationproperty
    • Microsoft.Dynamics.CRM.lookuplogicalname
    • _columnname_value
37 REPLIES 37
rw_ga
Advocate II
Advocate II

Well I'm back, This "Select columns" option in the flow trigger is bugging out again!  Now I have flows triggering even though the data changed is in a column NOT LISTED!!!!  What the heck...  For me this is a major issue, I have 3 different "modified" flow triggers using the select column option to fine tune WHEN to actually trigger.  They each do different things when the different columns get changed.  All of the sudden I now have all 3 flows triggering EVERY time ANY data is changed on the row! 2 of the flows call the same child flow which in turn creates a row in anther table which is now creating multiple rows!

 

Waiting on MS support to respond.  I'll try to provide feedback here if/when its resolved.

 

rw_ga
Advocate II
Advocate II

Update:  Spoke with a support rep.  I think we have narrowed down what is happening, but not sure how to address it.  My ticket is being transferred to another team.

 

Notes: 

  • I enabled auditing on the entity/table to see which fields/columns are "Showing" as being modified. 
    • There is only one listed in the audit with a change.
  • I can manually edit the record/row to change the same value listed in the audit and it doesn't trigger all the flows.  Manual edited using browser and model-driven app.  INTERESTING!!!
  • I go back to the child record/row that has a flow monitoring changes and updates this parent record.  In that update action for this parent record, it has multiple fields LISTED to be updated.  Seeing that they don't "always" change, then there shouldn't be an change if the value is the same. 
    • AND HERE IS where I think the issue lies.  Even though Dynamics doesn't see or record the change in the audit, the FLOW triggers because a value has been passed in the update action.

So, how do I configure it so that it only triggers when the values CHANGE in the table and not just by passing the same ones already there?

 

rw_ga
Advocate II
Advocate II

Does anyone know how to use the "if" expression to only pass a value when one is present, otherwise don't pass anything?  I tried: 

if(equals(outputs('Get_a_row_by_ID')?['body/number'],variables('Number')),'',variables('Number'))

My hope was that if the values were equal, then pass nothing = '', but if false, pass the value to update.

But that isn't working.  '' evaluates as a string and I'm afraid if I use the Null expression, it will just clear the field on the parent record. 

Just posting an update in case anyone else runs across this:

 

So I tried using multiple variations of the if expression to 'not do anything' and it doesn't appear that its an option.  Not that it will now, but using '' might clear a string value so that's not a good idea and we can't just leave the if true or false value blank.  Expression isn't valid anymore....

 

If it hasn't already been requested, then I'm going to locate the feature request site and post my request there.  I've run into a couple scenarios now that "doing nothing" would have saved me a lot of conditional branches in my flows.  Think polymorphic lookups NOW, we are presented with multiple columns instead of just one column like in the old days when you didn't have to specify the /tableinfo(guid) formatting.

 

 

Created a new flow today and experiencing the issue AGAIN!  "Lookup column not triggering cloud flow."  Note:  I also noticed lookup column change isn't being recorded in audit. 

 

I opened a case with MS.  Got routed to Power Automate support since I thought it was a flow issue but they said I needed to be routed to another team, Dynamics.  Microsoft recommends using Microsoft Power Automate for automating workflows, BUT you can't get to the correct support team when an issue with Dynamics and Power Automate crops up!  You have to TRY one or the other and then they determine if they can help...  Very frustrating...  

There must be something weird (delay) with using lookup columns in the column filter.  Not sure why, but this new flow is now triggering correctly.  This seems to be what happened last time. 

 

I created the flow, tested it and it didn't work.  I researched the issue, posted about it here, then tested it again after a few minutes it appears to start working.  Today I created the flow, tested it and it didn't work.   I created a MS support ticket, MS Support called me and we tested it while on the phone and it didn't work.  MS Support thought it was an issue with Dynamics and is supposed to be rerouting the ticket.  I just went back to test it again and now it appears to be working. 

 

????

 

SK7
Frequent Visitor

Once it begins to work, does it continue to work?

NirSeagas
New Member

hey all,

 

i was facing the same issue where i cant trigger the flow using dataverse 'when a row is added or modified' by lookup at the filter rows(at the select columns its work but of course we want to be more accurate so using filter rows for specificed condition needed). 

the solution i found is that you need to go -> component setting and add trigger condition like this : 

*works also for name

add trigger condition for lookup field value2.PNG

Hi SK7,

 

I want to say yes, but don't know of a good way to really monitor flows. If they aren't, WELL, I guess we have some data issue in our system then because something didn't get updated like the flow was designed to do....

 

This low code approach has become difficult to work with at times!  It is great that they are improving it, but there are times when it appears changes may not always benefit us low coders!  

Jennyw50
New Member

@Mira_Ghaly  I was wondering if you may have some insight into my scenerio.  In addition to my flow being triggered if specific fields in dataverse are updated,  I am looking to create an entry for each of the field changes.  

For example, Contact A's  Job Title, Department, and Last Name were updated, so in my related table 3 rows are created for each of the fields that were updated, each would also need to indicate the field that was updated.  

 

Are multiple flows needed- one for each field change?

Ideally, this would be handled in a single flow, but trying to figure out how to achieve this.  Any help would be so appreciated.

 

@Jennyw50 

Why would you do this if you can use the Out of the Box Auditing feature which does the same for you..

Please have a look at it here:

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/auditing-overview

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/configure-entities-attributes-aud...

 

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
shavora
Post Prodigy
Post Prodigy

Not sure it's helpful to anyone else but lookup columns in dataverse for custom entities I have to write the name in the Odata filter in a special way. If logical name is crf_lookupname it would be _crf_lookupname_value. I test this by looking at the raw output in either the trigger or List row action to find the correct naming for lookup fields.

@shavora,

 

Here are a few tools/tricks I find useful when working with cloud flows and MS Dataverse.

 

  • The "Level up for Dynamics 365/Power Apps" chrome extension.  I'm not affiliated with them in any way.  I just use the extension.  Anyway, you navigate to the model-driven app form on the frontend (with the fields you want to work with) > Click on the plugin icon in the browser > Click "All Fields" in the list.  A new tab opens showing all the fields, even the hidden ones end users don't normally see.  It has other great options like Show Optionset Values, that way I don't have to launch XrmToolBox to get to FetchXML Builder.  CORRECTION - Sorry, I like the "Show Optionset Values" option, I DON'T USE FetchXML to get Optionset values.
  • Speaking of XrmToolBox, if you don't have that one, grab it too.  FetchXML Builder made life so much easier when needing to return somewhat complex data in the "List Rows" actions.  If it gets too complex, it may not show up in the "Dynamics Data" view.  For those you can try to add a "Parse JSON" to get the data to be accessible via the Dynamic Data.  Polymorphic Lookup Manager and Ribbon Workbench are also on my Start page under Recently Used Tools in XrmToolBox.
  • Just need to get to the 'text' value of a field so that you can use it in an expression, add it by selecting the entry in the dynamic data first, click the added field once to highlight, then press CTRL + C to copy it.  Remove it, click on the expressions tab, hit CTRL + V to paste, and finally remove the surrounding @{}​ which I think is used to display it visually, see example below
    • Screenshot 2022-04-22 111330.jpg
    • @{variables('hostName')} = variables('hostName')

 

Happy automating!

carterbarry88
Advocate II
Advocate II

I just had the same issue where both lookups and option sets were not being accepted in the trigger.

 

What resolved the issue for me was removing the space between the columns. I had multiple columns.

 

What didn't work:

 column1, column2lookup (with the space between)

 

What did work

column1,column2lookup (with no space)

 

Hope that helps someone

ct_klein
Helper I
Helper I

Are folks still having this issue?

ct_klein_0-1656015680532.png

I have a optionset in CRM on the Plans entity.  I wanted to continue the flow if, and only if, the ct_servicetype was changed.  It works fine as far as evaluating the value of ct_servicetype, however if I make any changes to any other field on the Plan and save it the flow is triggered.

 

Has anyone found a permanent solution to this?

 

 

@ct_klein 

 

Its been a hit or miss for me when working with columns other than the basic text columns.  Check the column name spelling, make sure no spaces are before or after the column name, and also give it some time after saving to see if it works properly.  It appears to me that sometimes there is a delay on the backend that doesn't immediately recognize column filtering settings.  Maybe not, but I don't have any other explanation of why sometimes it just starts working after leaving it alone and looking across the internet to see if there are other possible solutions to the issue.

Youcef
Regular Visitor

Hi All,

I have the same issue but on a Yes/No field. As a matter of fact I would like my flow to trigger whenever this Yes/No field changes.

I tried putting the logical name of my field in the columns of the trigger definition but the flow does not trigger.

 

Very best regards.

Youcef

Stevieed
Helper I
Helper I

not gonna lie after 2 years this issue is still on going, these MS tech people are just bunch of idiots

 

Helpful resources

Announcements

Power Platform Connections Ep 15 | L. Baybutt | Thursday, 1 June 2023

Episode Fifteen of Power Platform Connections sees David Warner and Hugo Bernier talk to Microsoft MVP Lewis Baybutt aka Low Code Lewis, alongside the latest news and community blogs.   Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.        Action requested: Feel free to provide feedback on how we can make our community more inclusive and diverse.  This episode premiers live on our YouTube at 12pm PST on Thursday 1st June 2023.  Video series available at Power Platform Community YouTube channel.    Upcoming events:  European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas  Join our Communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community  If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.  Action requested: Feel free to provide feedback on how we can make our community more inclusive and diverse.  This episode premiers live on our YouTube at 12pm PST on Thursday 1st June 2023.  Video series available at Power Platform Community YouTube channel.    Upcoming events:  European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas  Join our Communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community  If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions. 

May 2023 Community Newsletter and Upcoming Events

Welcome to our May 2023 Community Newsletter, where we'll be highlighting the latest news, releases, upcoming events, and the great work of our members inside the Biz Apps communities. If you're new to this LinkedIn group, be sure to subscribe here in the News & Announcements to stay up to date with the latest news from our ever-growing membership network who "changed the way they thought about code".         LATEST NEWS "Mondays at Microsoft" LIVE on LinkedIn - 8am PST - Monday 15th May  - Grab your Monday morning coffee and come join Principal Program Managers Heather Cook and Karuana Gatimu for the premiere episode of "Mondays at Microsoft"! This show will kick off the launch of the new Microsoft Community LinkedIn channel and cover a whole host of hot topics from across the #PowerPlatform, #ModernWork, #Dynamics365, #AI, and everything in-between. Just click the image below to register and come join the team LIVE on Monday 15th May 2023 at 8am PST. Hope to see you there!     Executive Keynote | Microsoft Customer Success Day CVP for Business Applications & Platform, Charles Lamanna, shares the latest #BusinessApplications product enhancements and updates to help customers achieve their business outcomes.         S01E13 Power Platform Connections - 12pm PST - Thursday 11th May Episode Thirteen of Power Platform Connections sees Hugo Bernier take a deep dive into the mind of co-host David Warner II, alongside the reviewing the great work of Dennis Goedegebuure, Keith Atherton, Michael Megel, Cat Schneider, and more. Click below to subscribe and get notified, with David and Hugo LIVE in the YouTube chat from 12pm PST. And use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.         UPCOMING EVENTS   European Power Platform Conference - early bird ticket sale ends! The European Power Platform Conference early bird ticket sale ends on Friday 12th May 2023! #EPPC23 brings together the Microsoft Power Platform Communities for three days of unrivaled days in-person learning, connections and inspiration, featuring three inspirational keynotes, six expert full-day tutorials, and over eighty-five specialist sessions, with guest speakers including April Dunnam, Dona Sarkar, Ilya Fainberg, Janet Robb, Daniel Laskewitz, Rui Santos, Jens Christian Schrøder, Marco Rocca, and many more. Deep dive into the latest product advancements as you hear from some of the brightest minds in the #PowerApps space. Click here to book your ticket today and save!      DynamicMinds Conference - Slovenia - 22-24th May 2023 It's not long now until the DynamicsMinds Conference, which takes place in Slovenia on 22nd - 24th May, 2023 - where brilliant minds meet, mingle & share! This great Power Platform and Dynamics 365 Conference features a whole host of amazing speakers, including the likes of Georg Glantschnig, Dona Sarkar, Tommy Skaue, Monique Hayward, Aleksandar Totovic, Rachel Profitt, Aurélien CLERE, Ana Inés Urrutia de Souza, Luca Pellegrini, Bostjan Golob, Shannon Mullins, Elena Baeva, Ivan Ficko, Guro Faller, Vivian Voss, Andrew Bibby, Tricia Sinclair, Roger Gilchrist, Sara Lagerquist, Steve Mordue, and many more. Click here: DynamicsMinds Conference for more info on what is sure an amazing community conference covering all aspects of Power Platform and beyond.    Days of Knowledge Conference in Denmark - 1-2nd June 2023 Check out 'Days of Knowledge', a Directions 4 Partners conference on 1st-2nd June in Odense, Denmark, which focuses on educating employees, sharing knowledge and upgrading Business Central professionals. This fantastic two-day conference offers a combination of training sessions and workshops - all with Business Central and related products as the main topic. There's a great list of industry experts sharing their knowledge, including Iona V., Bert Verbeek, Liza Juhlin, Douglas Romão, Carolina Edvinsson, Kim Dalsgaard Christensen, Inga Sartauskaite, Peik Bech-Andersen, Shannon Mullins, James Crowter, Mona Borksted Nielsen, Renato Fajdiga, Vivian Voss, Sven Noomen, Paulien Buskens, Andri Már Helgason, Kayleen Hannigan, Freddy Kristiansen, Signe Agerbo, Luc van Vugt, and many more. If you want to meet industry experts, gain an advantage in the SMB-market, and acquire new knowledge about Microsoft Dynamics Business Central, click here Days of Knowledge Conference in Denmark to buy your ticket today!   COMMUNITY HIGHLIGHTS Check out our top Super and Community Users reaching new levels! These hardworking members are posting, answering questions, kudos, and providing top solutions in their communities.   Power Apps:  Super Users: @WarrenBelz, @LaurensM  @BCBuizer  Community Users:  @Amik@ @mmollet, @Cr1t    Power Automate:  Super Users: @Expiscornovus , @grantjenkins, @abm  Community Users: @Nived_Nambiar, @ManishSolanki    Power Virtual Agents:  Super Users: @Pstork1, @Expiscornovus  Community Users: @JoseA, @fernandosilva, @angerfire1213    Power Pages: Super Users: @ragavanrajan  Community Users: @Fubar, @Madhankumar_L,@gospa  LATEST COMMUNITY BLOG ARTICLES  Power Apps Community Blog  Power Automate Community Blog  Power Virtual Agents Community Blog  Power Pages Community Blog  Check out 'Using the Community' for more helpful tips and information:  Power Apps , Power Automate, Power Virtual Agents, Power Pages 

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.  Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik  Heartholme     AaronKnox  okeks      Matren  David_MA     Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma   drrickryp   GuidoPreite   metsshan    If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Users online (4,797)