From d16c6c065a6c92f805c201d708bb4f9296ddec66 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 4 Jan 2021 19:16:18 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index f3677c8..1a2d3ca 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -430,7 +430,7 @@ namespace AyaNova.PlugIn.V8 //Step 2: export the objects UserPickList pl = UserPickList.GetList(false); - progress.Append("Exporting " + pl.Count.ToString() + " Users"); + progress.Append("Exporting " + pl.Count.ToString() + " Users (step 1/2)"); #region Export administrator wiki and attached files if present { @@ -627,7 +627,7 @@ namespace AyaNova.PlugIn.V8 //Step 2: export the objects UserPickList pl = UserPickList.GetList(false); - progress.Append("Exporting " + pl.Count.ToString() + " Users"); + progress.Append("Exporting " + pl.Count.ToString() + " Users (step 2/2)"); @@ -993,6 +993,9 @@ namespace AyaNova.PlugIn.V8 // d.translationId = 1; await util.PutAsync("user-option/" + RavenContactId.ToString(), d.ToString()); + //Event log fixup (using customer data since the contact is created from the customer) + await util.EventLog(util.AyaType.User, RavenContactId, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified); + //########### @@ -1201,6 +1204,10 @@ namespace AyaNova.PlugIn.V8 await util.PutAsync("user-option/" + RavenContactId.ToString(), d.ToString()); + //Event log fixup (using customer data since the contact is created from the customer) + await util.EventLog(util.AyaType.User, RavenContactId, SafeGetUserMap(c.Creator), SafeGetUserMap(c.Modifier), c.Created, c.Modified); + + } } } @@ -2200,7 +2207,8 @@ namespace AyaNova.PlugIn.V8 dwi.notes = "Summary:\n" + wi.Summary + "TechNotes: \n" + wi.TechNotes; - await util.PostAsync("workorder/items", dwi.ToString()); + var ravenwoitemid = util.IdFromResponse(await util.PostAsync("workorder/items", dwi.ToString())); + await util.EventLog(util.AyaType.WorkOrderItem, ravenwoitemid, SafeGetUserMap(wi.Creator), SafeGetUserMap(wi.Modifier), wi.Created, wi.Modified); //and rest of tree below here...