<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML \0417\043D\0430\043A";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML
        {mso-style-name:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML \0417\043D\0430\043A";
        mso-style-priority:99;
        mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="RU">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hi all, I am a little stuck with a simple case of org-to-org association synchronization.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have an object template (below) that produces an assignment of perentOrgRef. Org parent is being found by ‘extension/parentId’ field.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">All works as expected, but if some org moves to other branch, then new assignment will be created during sychonization, but old one will remain as well.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">As a result the org has two parent references, one of which is wrong.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there method to eliminate the remaining association?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="background:white"><span style="color:black;background:#EFEFEF"><</span><b><span style="color:navy;background:#EFEFEF">objectTemplate </span></b><b><span lang="EN-US" style="color:navy;background:#EFEFEF">…></span></b><span style="color:black"><br>   <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">name</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">Security Org Template<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">name</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>   <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">mapping</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">name</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">Org-org mapping<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">name</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">authoritative</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">true<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">authoritative</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">strength</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">strong<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">strength</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">source</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"><</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">extension/parentId<span style="background:#EFEFEF"></</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">source</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">expression</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">assignmentTargetSearch</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>            <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">targetType</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">c:OrgType<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">targetType</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>            <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">filter</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>               <span style="background:#EFEFEF"><</span></span><b><span style="color:#660E7A;background:#EFEFEF">q</span><span style="color:navy;background:#EFEFEF">:equal</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>                  <span style="background:#EFEFEF"><</span></span><b><span style="color:#660E7A;background:#EFEFEF">q</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">c:name<span style="background:#EFEFEF"></</span></span><b><span style="color:#660E7A;background:#EFEFEF">q</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>                  <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">expression</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>                     <span style="background:#EFEFEF"><</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">$parentId<span style="background:#EFEFEF"></</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>                  <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">expression</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>               <span style="background:#EFEFEF"></</span></span><b><span style="color:#660E7A;background:#EFEFEF">q</span><span style="color:navy;background:#EFEFEF">:equal</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>            <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">filter</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">assignmentTargetSearch</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">expression</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">target</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"><</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">assignment<span style="background:#EFEFEF"></</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">target</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>   <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">mapping</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>   <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">mapping</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">strength</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">strong<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">strength</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">expression</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">value</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>            <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">construction</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>               <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">resourceRef </span><span style="color:blue;background:#EFEFEF">oid</span><span style="color:green;background:#EFEFEF">="ef2bc95b-76e0-48e2-86d6-3d4f02d3eaew" </span><span style="color:blue;background:#EFEFEF">type</span><span style="color:green;background:#EFEFEF">="c:ResourceType"</span></b><span style="color:black;background:#EFEFEF">/></span><span style="color:black"><br>               <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">kind</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">generic<span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">kind</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>            <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">construction</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">value</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">expression</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"><</span></span><b><span style="color:navy;background:#EFEFEF">target</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>         <span style="background:#EFEFEF"><</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black">assignment<span style="background:#EFEFEF"></</span></span><b><span style="color:#660E7A;background:#EFEFEF">c</span><span style="color:navy;background:#EFEFEF">:path</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>      <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">target</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br>   <span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">mapping</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><br><span style="background:#EFEFEF"></</span></span><b><span style="color:navy;background:#EFEFEF">objectTemplate</span></b><span style="color:black;background:#EFEFEF">></span><span style="color:black"><o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>