{"id":68,"date":"2007-07-27T00:32:57","date_gmt":"2007-07-27T00:32:57","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=68"},"modified":"2023-01-16T08:39:05","modified_gmt":"2023-01-16T08:39:05","slug":"miisapp-importing-selected-objects","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/miisapp-importing-selected-objects","title":{"rendered":"MiisApp &#8211; Importing selected objects"},"content":{"rendered":"<p><a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=55\">MiisApp<\/a> was designed to be a toolset for non-administrative users who needed to interact with MIIS in certain, well-specified ways. Some of these tasks do not directly involve MIIS itself, but are for setting up the data appropriately &#8211; such as the forms for <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=57\">viewing source data<\/a>.<\/p>\n<p>An issue that came up from time to time was the need to re-sync an individual user (or small group of users). I won&#8217;t go into all the various reasons why this would happen, they were different each time and frankly I can&#8217;t remember, but they typically involved a particular user without all their correct group memberships in the target directory. It would all be sorted out at the next Full Import\/Sync &#8211; but that took about four hours and could not be scheduled during the working day. For those cases where it couldn&#8217;t wait I provided a method to force a full sync of an individual object.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"width: 121px; height: 45px;\" src=\"https:\/\/www.wapshere.com\/images\/miisapp-forceimport.GIF\" width=\"121\" height=\"45\" \/><\/p>\n<p>The method itself was really quite simple &#8211; just add the object into all relevant <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=12\">Delta Tables<\/a>, and it will be included in the next Delta Import\/Sync.<\/p>\n<p>The only thing I had to avoid was attempting this while the <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=20\">DTS Package<\/a> was running. Unfortunately I couldn&#8217;t find any programmatic way to tell if a DTS was currently in operation, so the solution is a bit of a fudge &#8211; if the last log line produced by my <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=26\">scheduling script<\/a> indicates the DTS has been started then I don&#8217;t attempt the Delta Table insertions.<\/p>\n<p>The code I wrote opens Notepad to allow the object identifiers to be pasted in by the user, and then inserts the objects in the relevant Delta Tables. You can see the code <a href=\"https:\/\/www.wapshere.com\/missmiis\/?page_id=69\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MiisApp was designed to be a toolset for non-administrative users who needed to interact with MIIS in certain, well-specified ways. Some of these tasks do not directly involve MIIS itself, but are for setting up the data appropriately &#8211; such as the forms for viewing source data. An issue that came up from time to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[12],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-miisapp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-16","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":4,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":3362,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/68\/revisions\/3362"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}