Saturday, May 9, 2026

How to Show Notification in Model Driven App using C#

 Introduction:


In this blog, we will see how to show Notification in Model Driven App Using C#


Implementation steps:

For your function apps or console application once after the Organization service gets configured, call the below code to achieve the same


private static void SendInAppNotification(string subject, string description)
{
    Entity entity = new Entity("appnotification");
    entity.Attributes.Add("title", subject);
    entity.Attributes.Add("ownerid", new EntityReference("systemuser", USERGUID));
    entity.Attributes.Add("body", description);
    Service.Create(entity);
}

Conclusion:

Based on the above code we can easily achieve Notifications in Model Driven App

No comments:

Post a Comment

How to Show Notification in Model Driven App using C#

  Introduction: In this blog, we will see how to show Notification in Model Driven App Using C# Implementation steps: For your function apps...