notify_contacts

Document created by Gutis Champion on Dec 9, 2015Last modified by Gutis Champion on Oct 18, 2016
Version 2Show Document
  • View in full screen mode

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]);
}
    
2 people found this helpful

Attachments

    Outcomes