Power Automate Exchange

Please login or click SIGN UP FOR FREE to create your FlowUG account to join this user group.
 View Only
  • 1.  Setting a Trigger Condition based on a GUID value?

    Bronze Contributor
    Posted Oct 29, 2019 12:03 PM
    I recently attended a presentation by @Martin Burman where I realized about the feature where I could set trigger conditions rather than firing every time and then stopping at the first step if the test wasn't true. A game changer for me!

    So, I am retooling my Flows to cut down on the noise, and for the most part, most flows are converting fine. However, I am trying to retool a flow with a CDS trigger "When a record is updated" and the subjectid needs to be equal to a certain GUID value to fire. This works fine in the condition action currently, but when I move it up to the trigger condition, I get ​an error "Cannot read property 'properties' of undefined" This is the condition:

    @equals(triggerBody()?['subjectid'],'myguidvaluehere')

    I have also tried it without the single quotes and I have tried it trying to insert the guid logic expression, which makes for clearer errors, but still incorrect. I have received this error before and it tends to be that the field name was incorrect or misspelled, but I am sure that is not the case here. Any advice on where I should look to next?


    ------------------------------
    Audrey Forrest
    Senior Accountant and Business Analyst
    CRMUG Co-Chapter Leader Seattle/PacNW
    Seattle WA
    ------------------------------


  • 2.  RE: Setting a Trigger Condition based on a GUID value?

    Posted Oct 29, 2019 12:14 PM

    Hi Audrey!

    I'm happy to hear you got working with that tip straight away!

    Working with lookup-fields in Flow expressions is a bit tricky. Try replacing subjectid with _subjectid_value. 



    ------------------------------
    Martin Burman
    CRM-konsulterna
    Stockholm
    7354265454
    ------------------------------



  • 3.  RE: Setting a Trigger Condition based on a GUID value?

    Bronze Contributor
    Posted Oct 29, 2019 01:01 PM
    @Martin Burman that did the trick! Thank you for your help!  ​​

    ------------------------------
    Audrey Forrest
    Senior Accountant and Business Analyst
    CRMUG Co-Chapter Leader Seattle/PacNW
    Seattle WA
    ------------------------------



  • 4.  RE: Setting a Trigger Condition based on a GUID value?

    Posted May 27, 2022 07:35 PM
    Edited by Silvia.carr6@gmail.com Silvia.carr6@gmail.com May 27, 2022 07:35 PM
    I am trying to accomplish the same thing. However, I am not quite as successful. Wondering if you have implemented this in the new dataverse and guide me in the right direction. below is my current trigger.



    ------------------------------
    Silvia.carr6@gmail.com Silvia.carr6@gmail.com
    CRM Specialist
    ------------------------------