BREVEMENTE DISPONÍVEL
Manuais
PHC GO Funções SDK - SendAlertify
 

SendAlertify

This class provides function related with PHC Notify.

SendAlertify

 

Description

This function allows you to send notifications via PHC Notify. PHC Notify must initially be configured and using two-factor authentication.

Return Function

PHCResult

Parameters

Name Description Type
userNo User No Int 32
header Alertify title String
message Alertify body String
subheader 1 Alertify subtitle String
imageBase64 1 Alertify image in base 64 String
url 1 Alertify URL String

1Opcional


Example

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