get_attr_list_for_object
This method will get all attributes for the object by object name
Definition:
get_attr_list_for_object( uuid, string ) ;
uuid - contact handle
string - object name (cr,nr,wf and etc.)
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", "get_attr_list_for_object", who, "cr");
if (msg_error()) {
logf(ERROR, "checkin failed %s",msg[0]);
}else
{
int i;
for (i=0;i<msg_length();i++) {
logf(SIGNIFICANT, "msg[%d]: '%s'", i, msg[i]);
}
}