This commit is contained in:
2021-01-08 23:34:16 +00:00
parent 0da0bf4a11
commit 43c5c3c5c5

View File

@@ -2651,7 +2651,7 @@ namespace AyaNova.PlugIn.V8
d.customerId = Getv7v8IdMap(c.ClientID, "Client for CSR");
d.unitId = Getv7v8IdMapNullOk(c.UnitID);
d.workorderItemId = Getv7v8IdMapNullOk(c.WorkorderItemID);
d.requestedByUserId = 0;//this is a weird one because in v8 it will be a real user account and it's required in the schema so trying 0
d.requestedByUserId = SafeGetUserMap(c.Creator);//creator should always be a 'outside' user account
d.customerReferenceNumber = c.ClientRef;
d.priority = (int)c.Priority;//same int value
if (c.Status == ClientServiceRequestStatus.Closed)
@@ -2673,7 +2673,7 @@ namespace AyaNova.PlugIn.V8
var rMainObject = await util.PostAsync("ClientServiceRequest", d.ToString());
var rMainObject = await util.PostAsync("csr", d.ToString());
long RavenId = util.IdFromResponse(rMainObject);
Addv7v8IdMap(c.ID, RavenId);