web
You’re offline. This is a read only version of the page.
close
You can send Windows Toast Notification to notifiy user about an achievement in your tool processing. To understand how to create a Toast Notification, please review the  Microsoft documentation

The only rules to follow is to put your Plugin name in the Header, and the PluginControlId in the corresponding argument. You can then use all capabilities of Toast Notification.

new ToastContentBuilder()
.AddArgument("PluginControlId", PluginControlId.ToString())
.AddHeader(ToolName, txtHeader.Text, "")
.AddText("A sample message you want to display to your user")
.Show();
Toast1

If you ever need to get the information of action of the user in the Toast Notification, override the method HandleToastActivation

public override void HandleToastActivation(ToastNotificationActivatedEventArgsCompat args) {
MessageBox.Show(this, "Toast activated!\n\n" + args.Argument, "Toast Activated", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

​​This feature is available from version 1.2025.10.74 of XrmToolBox. Do not forget to put this version dependency in your Nuget package

To avoid any issue, surround your Toast notification code with a try/catch block.