1 2 3 4 5 6 7 | '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) next |