This sample script demonstrates how to retrieve a list of users from EPC.

  • language – call language

Syntax

List<‍EPCUser‍> GetUsers(string language = "en")

Applicability

This functionality is available anywhere users can write C# code.

Code Sample

var sb = new StringBuilder();
var errors = new List<‍string‍>();
if (bpmAppService.BPMSServices.EPCService.Login(out errors))
{
	var users = bpmAppService.BPMSServices.EPCService.GetUsers();
	if (users != null)
		foreach (var u in users)
			sb.AppendLine(string.Format("user id 0 - 1", u.principalId, u.name));
}
else
	foreach (var e in errors)
		sb.AppendLine(e);
formObject.Log = sb.ToString();