From 3988e97fa6d96923560542c54211ae5fd6f9490a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 19 Aug 2021 18:26:31 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 32d0f2e..7e553fd 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -502,10 +502,13 @@ namespace AyaNova.PlugIn.V8 try { dynamic d = new JObject(); - d.fromId = 1; - d.toId = 1; - d.name = "V8 Migrate - post migrate log and instructions"; - d.notes = "Hello, this is an automated memo from the v8 migrate utility.\n\nHelpful information:\n\nChanges in AyaNova 8 for users:\n" + dynamic dmemo = new JObject(); + dynamic duserid = new JArray(); + + dmemo.fromId = 1; + dmemo.toId = 1; + dmemo.name = "V8 Migrate - post migrate log and instructions"; + dmemo.notes = "Hello, this is an automated memo from the v8 migrate utility.\n\nHelpful information:\n\nChanges in AyaNova 8 for users:\n" + util.ApiBaseUrl + "docs/ay-start-changes-from-v7/\n\nTechnical changes in AyaNova 8 for system administrators:\n" + util.ApiBaseUrl @@ -514,10 +517,13 @@ namespace AyaNova.PlugIn.V8 + "docs/ay-biz-admin-import-v7/\n\n\nLog:\n######## V8 Migrate log ########\n" + progress.AllText + "\n################################\n"; - d.replied = false; - d.sent = util.DateToV8(DateTime.UtcNow.ToString("o", System.Globalization.CultureInfo.InvariantCulture)); - d.viewed = false; - d.wiki = null; + dmemo.replied = false; + dmemo.sent = util.DateToV8(DateTime.UtcNow.ToString("o", System.Globalization.CultureInfo.InvariantCulture)); + dmemo.viewed = false; + + duserid.Add(-7);//special code to server to treat as an import single + d.users = duserid; + d.memo = dmemo; await util.PostAsync("memo", d.ToString()); }