get_properties
This method gets properties of the request, change or issue. Returns number of properties found and property list as the object. Most often it should be used in conjunction with get_list_values or dob_by_index method.
Definition:
get_properties( string) ;
string - persistent_id of an object that contains properties
working example:
object prp_list, prp;
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_properties", "cr:402125");
if (msg_error()) {
logf(ERROR, "get_failed %s",msg[0]);
}
else
{
int count,i;
count = msg[1];
prp_list = msg[0];
for(i=0;i<count;i++) {
send_wait(0, prp_list, "dob_by_index", "DEFAULT", i, i);
prp = msg[0];
logf(SIGNIFICANT,"Property %s value is %s",i,prp.value);
printf("Property %s value is %s",i,prp.value);
}
}