CA Service Management

notify_contacts 

Dec 09, 2015 05:03 PM

SPEL API methods

notify_contacts

 

This method allows to perform manual notification from spel code. Method will send an email and create activity log entry

 

Definition:

notify_contacts( uuid, string, string, string, int, int,... ) ;

uuid - user id

string - persistent_id of the object

string - subject

string - body

int - notification urgency

int - visibility of the log (0 - public, 1 - internal)

... - coma separated list of contact persids

 

working example:

uuid who;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
send_wait(0, top_object(), "call_attr", "api", "notify_contacts", who, "cr:401096", "test subject", "test body", 1, 0, "cnt:20AB02D29AA8414FB3BE2F3CEB2E9FEC");
if (msg_error()) {
  printf("Error %s",msg[0]);
}
    

Statistics
0 Favorited
14 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.