1 2 3 4 5 6 7 8 9 10 | 'This example allows a notification to be sent via PHC Notify to all system administrators whenever a new purchase is created. Dim queryAdmins As QueryVO= New QueryVO() queryAdmins.FilterItems.Add(New FilterItem("esa", 1))
For each item as UserVO in SDK.Query.getEntityData(of UserVO)(queryAdmins) sdk.PHCNotify.SendAlertify(item.userno, "A new purchase has been created", "A new purchase (" & itemvo.adoc & ") was made with value " & itemvo.etotal.ToString() & "€.", "Purchase","","[INSTALLATION_URL]/mainform/fo/" & itemvo.doccode.ToString() & "/view;stamp=" & itemvo.fostamp)
'It is possible to create notifications with line breaks. To do this, you need to use the code "Environment.NewLine". Example: 'sdk.PHCNotify.SendAlertify(item.userno, "A new purchase has been created", "A new purchase was made with: " + Environment.NewLine + "Document: " & itemvo.adoc + Environment.NewLine + "Value: " & itemvo.etotal.ToString() & "€", "Purchase","","[INSTALLATION_URL]/mainform/fo/" & itemvo.doccode.ToString() & "/view;stamp=" & itemvo.fostamp) next |