29.01.2021, 19:13 | #1 |
Участник
|
crmtipoftheday: Tip #1397: Reduce extra Power Automate runs and overcome trigger limitations
Источник: https://crmtipoftheday.com/1397/redu...er-limitations
============== You know I’m a sucker for some open source goodness. This time the goodness is from Aiden “President” Kaskela. (Got something to share? Send your wares to jar@crmtipoftheday.com). The Common Data Service (Current Environment) trigger in Power Apps allows you to run your cloud flow when certain fields are updated, but there are two shortcomings:
I build Power Automate Assistant to address these challenges, which not only tell you what fields changed but also cut down on the number of flow runs due to ghost updates. This tool is open source and available through the MIT license. The Dataverse considers a field as having changed even if the value doesn’t actually change. We can’t control that. What we can do though, is create a new field and control when and how that is changed. By ensuring only true changes are tracked, we can bypass unnecessary flow triggers. Here’s how it works: In this example, we have a flow that runs when a Contact is created or updated, if the First Name or Email changes.
With this setup, if you update the contact’s email address and save the record, your new text field will say “emailaddress1”. If the first name changed, it’ll say “firstname”. If both changed, it’ll say “emailaddress1,firstname”. By setting your flow to run on that text field, we can ensure it only triggers if we have a real change, and on top of that, you can treat that new text field as an array and see what fields triggered the update and take actions accordingly. Enjoy! Where do I get it? Managed and unmanaged solutions and source code is available at https://github.com/akaskela/PowerAutomateAssistant Step-by-step instructions in the wiki on Github https://github.com/akaskela/PowerAut...rueFieldChange Cover photo by Photoholgic on Unsplash Источник: https://crmtipoftheday.com/1397/redu...er-limitations
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|