<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Be able to use GlobalID during insert for related records on Calculate Rule. in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1216964#M585</link>
    <description>&lt;P&gt;I have a situation were I need to create/clone a feature and related records as well in a calculate rule.&amp;nbsp; The issue is the related records are related by the feature GlobalID. I have no issues if I use fields that are not read-only, but in my situation I do not have that luxury. I have tried:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Setting the GlobalID prior to the insert using GUID() on the feature and using the same guid in the related record.&lt;OL&gt;&lt;LI&gt;Adding "GlobalID": "{E812C101-3D95-46A9-B12F-C45F3FBFA7F9}" to the attribute rules.&lt;/LI&gt;&lt;LI&gt;Since it's a read only field, an error is thrown.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Adding globalID one level after the 'adds' is ignored -&amp;nbsp;{ "edit": [ {"adds": [ { "attributes": ..., "geometry": ..., "globalID": "{AA12C101-3D95-46A9-B12F-C45F3FBFA7F9}" ]}]}&lt;/LI&gt;&lt;LI&gt;Tried using the 'tag' flag, but that only works with UN Associations.&lt;OL&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.9/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/2.9/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;This is exactly what I want except to be able to indicate the related table.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Sample json trying to use the 'tag' keyword:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"edit": [&lt;BR /&gt;{&lt;BR /&gt;"adds": [&lt;BR /&gt;{&lt;BR /&gt;"attributes": {&lt;BR /&gt;"ASSETGROUP": 1,&lt;BR /&gt;"ASSETID": "ABC1234",&lt;BR /&gt;"ASSETTYPE": 9,&lt;BR /&gt;"LASTUPDATE": "2000-01-01T00:00:00.000Z"&lt;BR /&gt;},&lt;BR /&gt;"geometry": {&lt;BR /&gt;"hasZ": true,&lt;BR /&gt;"paths": [&lt;BR /&gt;[&lt;BR /&gt;[ 1035213.7623968, 2253188.4937827, 0 ],&lt;BR /&gt;[ 1035239.3082778, 2253154.9229833, 0 ]&lt;BR /&gt;]&lt;BR /&gt;],&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 102671&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"tag": "newLineFeature"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"className": "PipelineLine"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"adds": [&lt;BR /&gt;{&lt;BR /&gt;"attributes": {&lt;BR /&gt;"LineGlobalID": "newLineFeature.globalid",&lt;BR /&gt;"Notes": "A relate"&lt;BR /&gt;},&lt;BR /&gt;"tag": "newLineFeatureRel0"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"className": "LineRelateTable"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"result": "Completed"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 15:11:09 GMT</pubDate>
    <dc:creator>BrettCummings1</dc:creator>
    <dc:date>2022-09-28T15:11:09Z</dc:date>
    <item>
      <title>Be able to use GlobalID during insert for related records on Calculate Rule.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1216964#M585</link>
      <description>&lt;P&gt;I have a situation were I need to create/clone a feature and related records as well in a calculate rule.&amp;nbsp; The issue is the related records are related by the feature GlobalID. I have no issues if I use fields that are not read-only, but in my situation I do not have that luxury. I have tried:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Setting the GlobalID prior to the insert using GUID() on the feature and using the same guid in the related record.&lt;OL&gt;&lt;LI&gt;Adding "GlobalID": "{E812C101-3D95-46A9-B12F-C45F3FBFA7F9}" to the attribute rules.&lt;/LI&gt;&lt;LI&gt;Since it's a read only field, an error is thrown.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Adding globalID one level after the 'adds' is ignored -&amp;nbsp;{ "edit": [ {"adds": [ { "attributes": ..., "geometry": ..., "globalID": "{AA12C101-3D95-46A9-B12F-C45F3FBFA7F9}" ]}]}&lt;/LI&gt;&lt;LI&gt;Tried using the 'tag' flag, but that only works with UN Associations.&lt;OL&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.9/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/2.9/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;This is exactly what I want except to be able to indicate the related table.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Sample json trying to use the 'tag' keyword:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"edit": [&lt;BR /&gt;{&lt;BR /&gt;"adds": [&lt;BR /&gt;{&lt;BR /&gt;"attributes": {&lt;BR /&gt;"ASSETGROUP": 1,&lt;BR /&gt;"ASSETID": "ABC1234",&lt;BR /&gt;"ASSETTYPE": 9,&lt;BR /&gt;"LASTUPDATE": "2000-01-01T00:00:00.000Z"&lt;BR /&gt;},&lt;BR /&gt;"geometry": {&lt;BR /&gt;"hasZ": true,&lt;BR /&gt;"paths": [&lt;BR /&gt;[&lt;BR /&gt;[ 1035213.7623968, 2253188.4937827, 0 ],&lt;BR /&gt;[ 1035239.3082778, 2253154.9229833, 0 ]&lt;BR /&gt;]&lt;BR /&gt;],&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 102671&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"tag": "newLineFeature"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"className": "PipelineLine"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"adds": [&lt;BR /&gt;{&lt;BR /&gt;"attributes": {&lt;BR /&gt;"LineGlobalID": "newLineFeature.globalid",&lt;BR /&gt;"Notes": "A relate"&lt;BR /&gt;},&lt;BR /&gt;"tag": "newLineFeatureRel0"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"className": "LineRelateTable"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"result": "Completed"&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 15:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1216964#M585</guid>
      <dc:creator>BrettCummings1</dc:creator>
      <dc:date>2022-09-28T15:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to use GlobalID during insert for related records on Calculate Rule.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1217337#M586</link>
      <description>&lt;P&gt;The new feature needs a global ID that will be related to the cloned related record, as this is calcuated on the server, you need to use the tags.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this topic and looks for this line in the code sample&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;"tag"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"jo1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;//unique identifier for new feature in the Structure Junction Object class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1217337#M586</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2022-09-29T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Be able to use GlobalID during insert for related records on Calculate Rule.</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1217352#M587</link>
      <description>&lt;P&gt;Thanks for the response. I have tried that, the issue with that is it's limited to "&lt;SPAN&gt;utility network associations table" and doesn't work for 'Relate'. If they extended that 'tag' to work with Relates, that would resolve my problem.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:09:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/be-able-to-use-globalid-during-insert-for-related/m-p/1217352#M587</guid>
      <dc:creator>BrettCummings1</dc:creator>
      <dc:date>2022-09-29T13:09:29Z</dc:date>
    </item>
  </channel>
</rss>

