This commit is contained in:
@@ -2651,7 +2651,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.customerId = Getv7v8IdMap(c.ClientID, "Client for CSR");
|
d.customerId = Getv7v8IdMap(c.ClientID, "Client for CSR");
|
||||||
d.unitId = Getv7v8IdMapNullOk(c.UnitID);
|
d.unitId = Getv7v8IdMapNullOk(c.UnitID);
|
||||||
d.workorderItemId = Getv7v8IdMapNullOk(c.WorkorderItemID);
|
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.customerReferenceNumber = c.ClientRef;
|
||||||
d.priority = (int)c.Priority;//same int value
|
d.priority = (int)c.Priority;//same int value
|
||||||
if (c.Status == ClientServiceRequestStatus.Closed)
|
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);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user