Using survey123 website URL parameters to generate feature reports

219
2
a month ago
Hussam_AlJabri
Occasional Contributor II

Hi All,

Could anyone help me to understand what we can add in the survey123 website url to go directly to the specific point in the page. 

 

For example:

https://survey123.arcgis.com/surveys/xx/data?report=format:docx;objectids:all&extent=&filter=(0.)&portalUrl=https://xx.xx.com/portal

 

As we can see the elements are report,extent,filter,portalUrl and so on.

Basically, I have a survey and its results presented in the dashboard and  the users can click on the link to generate directly a report for the filtered feature and the link is like below:

Hussam_AlJabri_0-1624614363527.png

https://survey123.arcgis.com/surveys/xxx/data?report=objectIds:selected;format:docx&filter=(0.dss_gi...

https://survey123.arcgis.com/surveys/xxx/data - this will open the data tab

?report=objectIds:selected;format:docx;templateItemId:xx - will open the feature report window in the lift of the page and select "selected records only" and chose format as .docx and chose the template.

Here I need to go deeply to name the report and unchecked "Save to my ArcGIS account"

then generate the report automatically.

Kindly support @JamesTedrick 

Tags (1)
0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @Hussam_AlJabri

Unless you need the UI, I would suggest using the Survey123 Report REST API. Using the Report REST API you can send your report requests exactly how you like. 

I have a very basic sample app in GitHub that shows how the Report REST API can be used in a custom application that ultimately can be embedded in a Dashboard. 

Thank you, 

Zach

Hussam_AlJabri
Occasional Contributor II

Thanks @ZacharySutherby

 

Would you please help me to apply your idea to generate a report using survey123 API because I'm not sure if I understand to try it.

 

regards,  

0 Kudos