Hello,
I have a survey123 form which grabs the current location of where the survey is filled. I added also two other fields: Longitude and Latitude which are populated automatically from the map's current location.
I now need to include the survey123 as part of a workflow. I managed to have survey123 trigger a workflow job via a webhook but the problem is that although the job is created in workflow, yet the location is not added on the workflow map.
I tried to go around this by adding a 'define location' in workflow and specifying the webmap used for survey123 to show job location, but no luck. As a desperate attempt, I than added two other fields in Survey123 for the XY where they are populated automatically in Survey123. I than tried to use these 2 fields to define the job location in the 'Define Location' Geometry arcade box, but due to the fact that I am not knowledgeable in programming, I do not know how to make it work.
Any ideas please?
Hi @Nick6
I'm curious, do you need the lat/long fields in your survey for something other than defining the job location or did you add those for that purpose?
Based on the survey screenshot, we don't need them to define the job location. What we really need is the map above those fields. Since you have that, and you already have an extended properties table created, you simply need to insert the correct Arcade into the Geometry option of the Define Location step.
See Step 8 here https://enterprise.arcgis.com/en/workflow/latest/help/define-location.htm#ESRI_SECTION1_D9B5BE73D855...
You want to use "JobExtendedProperty($Job, '<table_name>','shape')"
That should get you sorted but let me know if you still need assistance here.
Jonathan