Using single Condition action for Mail notification

Vijay Antony M 20 Reputation points
2023-09-25T08:05:37.39+00:00

Hi Team,

Using parallel branch refreshing the power bi datasets in Azure Logic App.

Designed the separate condition actions to send the mail notification for each power bi datasets ,

Please advise, can we use single condition for sending mail notifications?

Note: Even if one more datasets failed need to send the mails for all failure datasets,

User's image

Thanks in advance

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.
3,086 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,141 Reputation points
    2023-09-26T15:07:08.3833333+00:00

    @Vijay Antony M You can build the dynamic content in the string variable and check for individual action. For reference I have used the Compose action and you need to update it as per your action names and value.

    concat(
      if(
        contains(outputs('Compose')?['error']?['message'],'already'),
        'PowerBI 1 not refresh',
        ''
      ),
      if(contains(outputs('Compose_2')?['error']?['message'],'already'),
        'PowerBI 2 not refresh',
        ''
      )
    )
    

    To learn more about different function expressions you can refer to this document.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.