GetDistributionChannelsForUser(user_name, doc_type, directory, channels_var);
user_name
The name of the user for which you want to retrieve the distribution channels.doc_type
The document type for which the user want to use the distribution channels. The document type must be defined in the Project and the StreamServer application started.directory
0 = internal directory, 1 = external directorychannels_var
The variable that will contain the returned values. If you specify $<channels_variable>[0], all channels are returned (if your counter starts on 0, see example below). If you specify $<channels_variable>, only the first channel is returned.An array with the distribution channels for a user. If the argument channels_var is a string, only the first distribution channel is returned.$channels[0] = "";$cnt = getDistributionChannelsForUser("dcool","order",0,$channels[0]);$a = 0;while ( num($a) < num($cnt) ){Log( 0, "Channel : " + $channels[num($a)] );$a++;}
OpenText StreamServe 5.6 | Updated: 2013-03-01 |