<?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: Join Features and save result as Layer view through the REST API in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701786#M3392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are on the right track. I mentioned the rest operations briefly in this post:&amp;nbsp;&lt;A href="https://community.esri.com/thread/240639"&gt;How to create hosted feature views including tables&lt;/A&gt;&amp;nbsp;. At minimum, you need&amp;nbsp;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;createService&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;addToDefinition&amp;nbsp;&lt;/STRONG&gt;to create the view. As I mention in the post, the easiest way to see what the params should be is to log the traffic. I think for what you have to do you need to run the join job first and then create the view from the result (unless for you workflow you need to create the view first and then the join?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're not seeing the submitjob request, it may help to run the job in a browser and use the "Preserve Log" or "Persist Logs" option of the browser developer tools. Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2019 13:55:58 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2019-10-14T13:55:58Z</dc:date>
    <item>
      <title>Join Features and save result as Layer view through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701784#M3390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;Context info:&lt;/STRONG&gt; I'm just trying to write some &lt;A href="https://github.com/esri-es/ArcGIS-REST-API/tree/master/HostedFeatureServices#hosted-feature-service---services-reference"&gt;documentation about how to get the most out of ArcGIS&amp;nbsp;Online Hosted Feature Services&lt;/A&gt;and I have some questions I'd need a little help with.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I following &lt;A href="https://doc.arcgis.com/en/arcgis-online/analyze/join-features.htm"&gt;this workflow to join two layers and save them as a layer view&lt;/A&gt;.&amp;nbsp;Trying to do&amp;nbsp;some reverse engineering using &lt;A href="https://www.getpostman.com"&gt;Postman&lt;/A&gt;&amp;nbsp;and I have found&amp;nbsp;seven POST requests are made during this process (&lt;A _jive_internal="true" href="https://community.esri.com/servlet/JiveServlet/download/241130-1-215061/Create layer view.postman_collection.json.zip"&gt;Postman collection with those requests&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have explored these requests and I have some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have seen the first two&amp;nbsp;requests are &lt;STRONG&gt;createService&lt;/STRONG&gt; and &lt;STRONG&gt;addToDefinition&lt;/STRONG&gt;, specifying&lt;STRONG&gt; "isView: true" &lt;/STRONG&gt;and updating the service definition (&lt;A _jive_internal="true" href="https://community.esri.com/servlet/JiveServlet/download/241130-1-215062/serviceDefinition.json.zip"&gt;view SD&lt;/A&gt;) to specify information about the query parameters themselves.&lt;UL&gt;&lt;LI&gt;Is this enough to have a&amp;nbsp;layer view fully functional??&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The third request updates the item "&lt;STRONG&gt;properties&lt;/STRONG&gt;" field with a JSON that&amp;nbsp;includes a "&lt;STRONG&gt;jobUrl" &lt;/STRONG&gt;set to: "https://analysis7.arcgis.com/arcgis/rest/services/tasks/GPServer/JoinFeatures/jobs/ViewJob_1570094204566",&lt;UL&gt;&lt;LI&gt;When was&amp;nbsp;this job created?, I have filtered my browser network tab by "&lt;STRONG&gt;/JoinFeatures/submitJob&lt;/STRONG&gt;" and I haven't found any request.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Is this necessary? I make sense ... but I'm confused because I can't find&amp;nbsp;when it is sent.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Fourth request is&amp;nbsp;adding a JSON to the item's static resources with the name of the tool and parameters&amp;nbsp;needed to run that tool (in this case:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/join-features.htm"&gt;Join features&lt;/A&gt;)&lt;UL&gt;&lt;LI&gt;Is this necessary for something?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Request 5, 6 and 7 are just update item metadata, thumbnail, tags, etc&lt;UL&gt;&lt;LI&gt;I assume all these are optional too&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is more than welcome &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;. Thanks in advance,&lt;/P&gt;&lt;P&gt;Raul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701784#M3390</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2019-10-03T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Join Features and save result as Layer view through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701785#M3391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/45514"&gt;Atma Mani&lt;/A&gt;&amp;nbsp;&amp;amp; &lt;A href="https://community.esri.com/migrated-users/157558"&gt;Rohit Singh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed &lt;A href="https://github.com/Esri/arcgis-python-api/blame/efccd7bfeb6c07d08d984c5795eb72fbea43af7b/apidoc/arcgis.features.managers.html#L707"&gt;you were the ones writing the documentation about the create_view method&lt;/A&gt; within the Python API. Maybe you know the answer to my questions or know who can I talk to &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!,&lt;/P&gt;&lt;P&gt;Raul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 09:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701785#M3391</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2019-10-07T09:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Join Features and save result as Layer view through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701786#M3392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are on the right track. I mentioned the rest operations briefly in this post:&amp;nbsp;&lt;A href="https://community.esri.com/thread/240639"&gt;How to create hosted feature views including tables&lt;/A&gt;&amp;nbsp;. At minimum, you need&amp;nbsp;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;createService&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;addToDefinition&amp;nbsp;&lt;/STRONG&gt;to create the view. As I mention in the post, the easiest way to see what the params should be is to log the traffic. I think for what you have to do you need to run the join job first and then create the view from the result (unless for you workflow you need to create the view first and then the join?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're not seeing the submitjob request, it may help to run the job in a browser and use the "Preserve Log" or "Persist Logs" option of the browser developer tools. Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701786#M3392</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-10-14T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Join Features and save result as Layer view through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701787#M3393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll repeat the process again as soon as possible, but I'm pretty sure when I did it last time (logging the whole time) I didn't see any join&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;task&lt;/SPAN&gt;&amp;nbsp;request&amp;nbsp;(maybe I missed it).&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&lt;EM&gt;I think for what you have to do you need to run the join job first and then create the view from the result (unless for you workflow you need to create the view first and then the join?)&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see, using the "&lt;A _jive_internal="true" href="https://community.esri.com/Users/hhkaos/Desktop/2019-10-17_2247.png" style="color: #2989c5; text-decoration: none;"&gt;Join Features&lt;/A&gt;" tool within the Web Map Viewer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;IMG alt="" class="image-1 jive-image" height="800" src="https://community.esri.com/legacyfs/online/462167_2019-10-17_2247.png" style="border: 0px; margin: 2px 20px 0px;" width="339" /&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;You can do the execute the join&amp;nbsp;task&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;create the layer view in one step &amp;lt;- this was the workflow I followed, and I couldn't find the join&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;task&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;request anywhere.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thanks one more time.&lt;/P&gt;&lt;P style="text-align: left;"&gt;Raul&lt;/P&gt;&lt;P style="text-align: left;"&gt;P.S: sorry for taking 3 days to reply, I'm pretty busy this weeks because our user conference is on 29th &amp;amp; 30th October ^_^''&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2019 21:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701787#M3393</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2019-10-17T21:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Join Features and save result as Layer view through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701788#M3394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still not sure how to answer my previous questions, but I have&amp;nbsp;been testing the requests and I made it work without using the jobUrl, adding the JSON to the static resources, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a &lt;A href="https://raw.githubusercontent.com/esri-es/ArcGIS-REST-API/master/HostedFeatureServices/Create%20Hosted%20Layer%20View%20from%20Join%20(Demo).postman_collection.json"&gt;Postman collection&lt;/A&gt; with all several requests I used in case you want to take a look at them:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;IMG __jive_id="472341" alt="" class="jive-emoji image-6 jive-image" height="300" src="/legacyfs/online/472341_Screenshot 2019-11-02 at 20.23.13.png" width="448" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There are three&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;requests to create a brand new feature service (Awards) and populate it with data (requests: 4, 5 and 6):&lt;BR /&gt;&lt;IMG __jive_id="471967" alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/471967_Screenshot 2019-11-02 at 20.06.51.png" /&gt;&lt;BR /&gt;&lt;EM&gt;This screenshot shows the Beaches awarded in 1955 by three different organizations&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Also, three requests to create a brand new feature service (Beaches) and populate it with data&lt;SPAN&gt;&amp;nbsp;(requests: 1, 2 and 3)&lt;/SPAN&gt;:&lt;BR /&gt;&lt;IMG __jive_id="472337" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/472337_2019-11-02_2009.png" /&gt;&lt;BR /&gt;&lt;IMG __jive_id="472338" alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/472338_2019-11-02_20092.png" /&gt;&lt;BR /&gt;&lt;IMG __jive_id="472339" alt="" class="jive-emoji jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/472339_2019-11-02_2010.png" /&gt;&lt;BR /&gt;&lt;EM&gt;These screenshots show the names for each Beach&amp;nbsp;awarded in 1955 on the Beaches table&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Two requests to create&amp;nbsp;the feature layer view (Awarded_beaches) with a join (Beaches.BeachId = Awards.BeachId)&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(requests: 7 and 8):&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG __jive_id="472340" alt="" class="jive-emoji jive-image image-5 j-img-original" src="/legacyfs/online/472340_Screenshot 2019-11-02 at 20.12.36.png" /&gt;&lt;BR /&gt;&lt;EM&gt;Here we can see the JOIN in action, and how we can see in the same table all the attributes from both tables.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So I'll check this question as solved &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2019 19:22:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/join-features-and-save-result-as-layer-view/m-p/701788#M3394</guid>
      <dc:creator>Raul_Jimenez</dc:creator>
      <dc:date>2019-11-02T19:22:28Z</dc:date>
    </item>
  </channel>
</rss>

