<?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 Re: Use two referenceContext in FieldMaps integration in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056269#M974</link>
    <description>&lt;P&gt;Hi Colin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to explain my workflow:&lt;/P&gt;&lt;P&gt;- I start the assignment in Workforce;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I click on the button that I created through API to open Field Maps;&lt;/P&gt;&lt;P&gt;- Field Maps should be open in the same point of the assignment and then I need to add a point on the map to collect the information of the smart form that I developed.&lt;/P&gt;&lt;P&gt;- At the same time the field 'work order id' should be pass from Workforce to the field 'id' in Field Maps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope to be clearer than before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 16:27:29 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-05-10T16:27:29Z</dc:date>
    <item>
      <title>Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1055718#M968</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added Field Maps as Workforce integration building a URL (I'm using ArcGIS Enterprise 10.8.1).&lt;/P&gt;&lt;P&gt;I need to open Field Maps in a specific point (${assignment.location} as reference) and pass some values to the selected feature. Browsing in the documentation I found that for the first action I needed to use referenceContext=search and for the second one referenceContext=addFeature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to use these two actions individually, but not together.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below the two URLs that I used:&lt;/P&gt;&lt;P&gt;- '&lt;A target="_blank" rel="noopener"&gt;https://fieldmaps.apps.app?itemID=&amp;lt;mapID&amp;gt;&amp;amp;referenceContext=search&amp;amp;search=${assignment.location&lt;/A&gt;}'&lt;/P&gt;&lt;P&gt;- '&lt;A target="_blank" rel="noopener"&gt;https://fieldmaps.apps.app?itemID=&amp;lt;mapID&amp;gt;&amp;amp;referenceContext=addFeature&amp;amp;featureSourceURL=&amp;lt;serviceURL&amp;gt;&amp;amp;featureAttributes={"id":"${assignment.workorderid}"&lt;/A&gt;'.&lt;/P&gt;&lt;P&gt;Is there a way to merge&amp;nbsp; these two actions?&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 14:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1055718#M968</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-10T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Workforce: Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056195#M969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;since this has to do with the app you're calling, Field Maps, I'm going to move your question to that forum and will let the Field Maps team know.&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 13:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056195#M969</guid>
      <dc:creator>CraigGillgrass</dc:creator>
      <dc:date>2021-05-10T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056247#M972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;,&lt;/P&gt;&lt;P&gt;When passing a URL to Field Maps, only one &lt;EM&gt;referenceContext&lt;/EM&gt; can be used. Can you clarify what you are trying to do? It sounds like you want to open Field Maps to a specific, existing feature. If you want to edit this feature you would use &lt;EM&gt;updateFeature&lt;/EM&gt; which would center and select that feature when Field Maps is opened and allow you to pass attributes and update geometry if necessary. If you want to create a new feature you would use &lt;EM&gt;addFeature&lt;/EM&gt; where you could pass specific geometry if you wanted the feature placed in a specific location; otherwise it uses your GPS location by default. Does this help provide you some guidance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 15:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056247#M972</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2021-05-10T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056269#M974</link>
      <description>&lt;P&gt;Hi Colin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to explain my workflow:&lt;/P&gt;&lt;P&gt;- I start the assignment in Workforce;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I click on the button that I created through API to open Field Maps;&lt;/P&gt;&lt;P&gt;- Field Maps should be open in the same point of the assignment and then I need to add a point on the map to collect the information of the smart form that I developed.&lt;/P&gt;&lt;P&gt;- At the same time the field 'work order id' should be pass from Workforce to the field 'id' in Field Maps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope to be clearer than before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056269#M974</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-10T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056293#M975</link>
      <description>&lt;P&gt;Thank you, that helps! So it sounds like you will want to use &lt;EM&gt;referenceContext=addFeature&lt;/EM&gt;. You can then use the geometry parameter to pass in the point &lt;EM&gt;geometry&lt;/EM&gt; (location) of the feature and &lt;EM&gt;featureAttributes&lt;/EM&gt; to pass the work order ID field. Take a look at the second example under &lt;A href="https://doc.arcgis.com/en/field-maps/android/help/deploy-your-map.htm" target="_blank" rel="noopener"&gt;Initiate capturing a feature&lt;/A&gt;. This gives an an example of a URL using a similar structure to what you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056293#M975</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2021-05-10T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056300#M976</link>
      <description>&lt;P&gt;To follow-up Colin's post - here's an example of the url scheme to call Field Maps, create a new feature at the location of the assignment, pre-populated with the Work Order ID (serviceRequestField)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://fieldmaps.arcgis.app?itemID=&amp;lt;Web Map ItemID&amp;gt;&amp;amp;referenceContext=addFeature&amp;amp;geometry=${assignment.latitude},${assignment.longitude}&amp;amp;featureSourceURL=&amp;lt;url to feature layer to create feature in&amp;gt;&amp;amp;featureAttributes=%7B%22serviceRequestField%22:%22${assignment.workorderid}%22%7D&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056300#M976</guid>
      <dc:creator>CraigGillgrass</dc:creator>
      <dc:date>2021-05-10T16:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use two referenceContext in FieldMaps integration</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056319#M977</link>
      <description>&lt;P&gt;Thanks Craig,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it was exactly what I was looking for.&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 17:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/use-two-referencecontext-in-fieldmaps-integration/m-p/1056319#M977</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-10T17:52:44Z</dc:date>
    </item>
  </channel>
</rss>

