Send In-app Notifications to Model Driven App from Power Automate

    In-app notifications in Model Driven Apps is a great option for notifying the user for any process, approval, and task related information. We can even create In-app notification in Power Automate. Let's see this process step by step. For this, you need to enable the In-app notifications from the app settings.

Send In-app Notifications to Model Driven App from Power Automate

Create an Instant flow in Power Automate by navigating to +New inside solution → Automation → Instant Flow. Add a new step to create a new record in Account table. Fill all the necessary fields. 

    Add another step to create notification. The table name should be Notifications, add title and body. In the Data field, add an object with fields like title, url, and navigationTarget. Add the entity and record ID to the url and select dialog for navigationTarget. I have used the below object in my flow.

{
"actions":[
{
"title":"View Account",
"data":{
"url":"?pagetype=entityrecord&etn=account&id=@{outputs('Create_New_Account')?['body/accountid']}",
"navigationTarget":"dialog"
}
}
]
}

Send In-app Notifications to Model Driven App from Power Automate

I have added expiry to 60 (seconds) and iconType as Success. Save the Flow and Run. Once the flow ran successfully, navigate to the Model Driven App, and you'll get to see the notification popped out. 

Send In-app Notifications to Model Driven App from Power Automate

If we click on the View Account URL in the notification, the dialog will be prompted with the created account. As the expiry time is 60 seconds, it will be vanished after the expiry time.

Tamilarasu Arunachalam

Post a Comment

Previous Post Next Post