Action Body content in If Condition

Vijay Antony M 20 Reputation points
2023-09-15T10:29:54.1233333+00:00

Team,

Good day,

Can someone provide a light on below issue.

How to use Action Body content in If Condition using "contains " operator, Based on the Contains operator wanted to trigger mail notification .

User's image

Note: When above condition satisfies we don't want send mails, otherwise can trigger a mail.

Thanks and Regards

M. Vijay Antony

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

Accepted answer
  1. MayankBargali-MSFT 68,066 Reputation points
    2023-09-18T06:04:03.4233333+00:00

    @Vijay Antony M Thanks for sharing more details.

    You can leverage body('Refresh_Outbound_TV_Test')?['error']?['message'] and validate it with the message content.

    For example, I have used Compose action and leveraged is equals to and matches the exact content "Invalid dataset refresh request. Another refresh request is already executing". You can change it as per your need and used contains with already executing. For any other JSON object, the condition would be false your send email (V2) action will be executed.

    User's image

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

    Please click on "Yes" if the answer is helpful so that it can help others in the community.


0 additional answers

Sort by: Most helpful