Logic App trigger expression

Nilesh Kodulkar 1 Reputation point
2022-04-21T11:53:06.187+00:00

Hello, I need help in creating logic app trigger expression.

I want to trigger logic app only if column value matches with a specific value. This is what I have tried so far:
@equals(triggerBody()?['columnname'],'value')

I can see an instance in "Trigger history" but nothing in "Runs history". Can someone help me to troubleshoot this?

Regards,
Nilesh

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,855 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,641 Reputation points
    2022-04-25T05:53:55.497+00:00

    @Nilesh Kodulkar Thanks for the confirmation. Your trigger condition looks good, but it looks like the columnname may be incorrect as there is DisplayName and Name different at dataverse end and the logic app returns the Column Name and name in the Display Name table and what you receive in the trigger body.

    @equals(triggerBody()?['columnname'],'value')  
    

    My column display name was name in dataverse table but the columnname was craf9_columnname which is return as same in the response body in my case

    @equals(triggerBody()?['craf9_name'],'mayank')  
    

    If your condition is matched, then the Trigger History Fired column will has the Fired value else it will be empty as below.

    195975-image.png

    To verify if you are using the right output property, please navigate to the Trigger History and select any of the non-Fired run and review the Output link to find the actual output return by the connector and then use the same property in your trigger condition.

    195927-image.png

    Feel free to get back to me if you need any assistance.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.