Context info: I'm just trying to write some documentation about how to get the most out of ArcGIS Online Hosted Feature Servicesand I have some questions I'd need a little help with.
I following this workflow to join two layers and save them as a layer view. Trying to do some reverse engineering using Postman and I have found seven POST requests are made during this process (Postman collection with those requests).
I have explored these requests and I have some questions:
Any help is more than welcome . Thanks in advance,
Raul
Solved! Go to Solution.
I'm still not sure how to answer my previous questions, but I have been testing the requests and I made it work without using the jobUrl, adding the JSON to the static resources, etc.
I have created a Postman collection with all several requests I used in case you want to take a look at them:
So I'll check this question as solved .
Thanks,
Raul
Hi Atma Mani & Rohit Singh,
I have noticed you were the ones writing the documentation about the create_view method within the Python API. Maybe you know the answer to my questions or know who can I talk to .
Thanks in advance!,
Raul
Hi Raul,
You are on the right track. I mentioned the rest operations briefly in this post: How to create hosted feature views including tables . At minimum, you need createService and addToDefinition 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?).
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!
-Earl
Thanks Earl,
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 task request (maybe I missed it).
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?)
As you can see, using the "Join Features" tool within the Web Map Viewer:
You can do the execute the join task and create the layer view in one step <- this was the workflow I followed, and I couldn't find the join task request anywhere.
Thanks one more time.
Raul
P.S: sorry for taking 3 days to reply, I'm pretty busy this weeks because our user conference is on 29th & 30th October ^_^''
I'm still not sure how to answer my previous questions, but I have been testing the requests and I made it work without using the jobUrl, adding the JSON to the static resources, etc.
I have created a Postman collection with all several requests I used in case you want to take a look at them:
So I'll check this question as solved .
Thanks,
Raul