Sending notification from server events

オフライン
We need to send notification on modification of an item type. We wrote server side event to get the modification details but are in need of C# API to send notification. Thanks..
Parents
  • Hi Arthy, The issue you're running into is that the property target on the Message ItemType expects an ID of an Identity item, but only a name is being passed in. To resolve this issue, you can either hard-code in the ID of the Administrators Identity (notifyItem.setProperty("target", "2618D6F5A90949BAA7E920D1B04C7EE1");) or perform a short query to look up the ID of the Identity as in the example below.
    Item identity = inn.getItemByKeyedName("Identity", "Administrators");
    notifyItem.setProperty("target", identity.getID());
    Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hi Arthy, The issue you're running into is that the property target on the Message ItemType expects an ID of an Identity item, but only a name is being passed in. To resolve this issue, you can either hard-code in the ID of the Administrators Identity (notifyItem.setProperty("target", "2618D6F5A90949BAA7E920D1B04C7EE1");) or perform a short query to look up the ID of the Identity as in the example below.
    Item identity = inn.getItemByKeyedName("Identity", "Administrators");
    notifyItem.setProperty("target", identity.getID());
    Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data