D365 – In-App Notifications

This article discusses how to use “Notifications” within the Dynamics CRM App through a scenario. I will create notifications for users using three push methods:

  1. Cloud Flow
  2. Client API
  3. Csharp (C#)

Preparation: Enable In-App Notifications

Go to Power Apps –> Click on the “App” menu –> Find your app –> Click on the “three dots” –> Click “Edit”

Power Apps Interface

Click the Settings button at the top of the app editing page.

Power Apps App Setting

Click the Features tab –> Enable In-App Notification –> Save

Enable Notifications

If everything goes smoothly, you should see the Notification table in the Table section.

Notification Table

Method 1: Using Cloud Flow

Step 1: Create a Flow

Open the solution –> Click New –> Automation –> Cloud Flow –> Automated

Create Cloud Flow 1

Enter a meaningful Flow name –> Search using keywords (input: Dataverse) –> Select the When a row is added, modified or deleted trigger –> Create

Create Cloud Flow 2

Step 2: Configure the Flow

(1) Configure the When a row is added, modified or deleted trigger, then click “+ New Step”

Configure Trigger

(2) Search using keywords (input: Dataverse), select Add a new row action.

Select Action

(3) Configure the Add a new row action, then click the Save button.

Configure Action

Note: Variables need to be selected via “Add dynamic content.”

JSON
{
    "actions": [
        {
            "title": "Open Account record",
            "data": 
            {
                "url": "?pagetype=entityrecord&etn=account&id=变量:Account",
                "navigationTarget": "newWindow"
            }
        }
    ]
}
Click to expand and view more

Step 3: Test the Flow

Open a customer record and assign it to yourself. If everything goes well, you will see a pop-up notification in the upper right corner.

Pop-up Notification in Upper Right Corner

At the same time, users will also see the notification in the Power Apps mobile application:

Notification in Mobile Application

Copyright Notice

Author: Donghai

Link: https://gdhblog.com/posts/d365/in-app-notification/

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

Comments

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut