Forum Discussion
christopher_gillis
8 years agoCommunity Manager
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 (
Christopher Gillis Aras Labs Software Engineer
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