Add a row to a 1:M Related table in Survey123 via URL Parameters

498
2
Jump to solution
12-07-2022 05:08 AM
RobynSnookCCB
New Contributor III

I'm trying to setup a public survey using URL Parameters which adds a row to a 1:M related table. The URL is in the embed widget in experience builder. The related table is related to the feature service via Global ID and GUID fields.

My survey is setup to submit to the related table and only fields found in the related table are visible. 

My problem is I can't figure out how to access the global ID of the feature service or the GUID field in the table to add a record in the related table via the URL. I keep getting the error of 'editing is not possible because the globalid parameter was not submitted'.

I've tried the below urls:

https://survey123.arcgis.com/share/ItemID?mode=edit&&globalId={GlobalID}

https://survey123.arcgis.com/share/ItemID?mode=edit&&globalId={GUID}

any help would appreciated.

0 Kudos
1 Solution

Accepted Solutions
ZacharySutherby
Esri Regular Contributor

Hello @RobynSnookCCB

You shouldn't need to use the mode=edit URL parameter if you want to add a new row to the table. You would just need field:parentguid={parent Global ID}. 

Please see this Tech Support KB article for configuring the workflow with the Survey123 field app, you would just need to modify the URL so that it opens the web app: https://support.esri.com/en/technical-article/000021198

Please see this link for more information on the web app URL parameters: https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm#ESRI_SECTION1_C7595C0E961B4...

Thank you,
Zach

View solution in original post

0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @RobynSnookCCB

You shouldn't need to use the mode=edit URL parameter if you want to add a new row to the table. You would just need field:parentguid={parent Global ID}. 

Please see this Tech Support KB article for configuring the workflow with the Survey123 field app, you would just need to modify the URL so that it opens the web app: https://support.esri.com/en/technical-article/000021198

Please see this link for more information on the web app URL parameters: https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm#ESRI_SECTION1_C7595C0E961B4...

Thank you,
Zach
0 Kudos
RobynSnookCCB
New Contributor III

thank you! removing the edit parameter worked.

0 Kudos