Quantcast
Channel: Bizagi Community | Bizagi Suite
Viewing all articles
Browse latest Browse all 1543

Chelper new case - error

$
0
0
Hi Bizagi, I wanted to use the CHelper.NewCase function for a user job in my project. For this I have created the folowing expression: //Check contract expire dates var now = DateTime.Now; var Filter = now.AddDays(14); var col = CEntityManager.GetEntity("PartyContract").GetEntityList("","ExpiryDate" <= Filter, "", ""); if(col.Length > 0) { //Create new case in inbox UAdmin ///45 = id of process 'sub check contract expiration' var UAdmin = CHelper.getUsersForRole(10000); //CHelper.ThrowValidationError("count users " + UAdmin.Count); for(var i = 0; i < UAdmin.Count; i++) { var id = UAdmin[i]; CHelper.NewCase(id,45); //CHelper.ThrowValidationError("user is " + UAdmin[i]); } } But I keep receiving this error on the row of the CHelper.NewCase function: "More than one method or property matches this argument list" Do you know what I am doing wrong? FYI: There are 4 users with the role 10000 and it is okay if the new case will be shown in the inbox of all 4 users Thank you in advance for having a look at my problem Bo

Viewing all articles
Browse latest Browse all 1543

Trending Articles