Hello! I'm trying to do something that I thought was possible, but I'm having some trouble getting it to function correctly.
I created a new Workforce Project, then added some custom attributes to the "Assignments" layer to capture some additional information about the assignment. Once I added the additional attribute fields, I created a survey in Survey123 Connect based off this existing feature layer (assignments). My plan was this: Set up the Survey123 App Integration with Workforce. When the worker opens his/her assignment, he/she can fill out the usual information that Workforce allows, then click the "survey at assignment" button, launch the survey, then add the additional attribute information via Survey123. What I'm finding is that when I launch the "survey at assignment" and submit the survey information, another feature is added to the assignments layer instead of editing the current feature. I've tried adjusting the URL parameters in the "Assignment Integrations" table, as I've done with Collector/Field Maps to open a survey to edit attributes, but to no avail. Nothing I've tried to adjust seems to be permitting me to add data to the additional attributes in the assignment layer. It just keeps adding new features in the assignments feature layer.
My question is this: Is it possible to use the Survey123 Integration from the Workforce assignment to update custom attributes about the assignment feature? In other words, I want to add data to the custom attribute fields for the Workforce Assignment feature that the worker is currently viewing in Workforce.
I have no problems launching Survey123 to edit attributes of an existing feature in Field Maps or Collector, and I wouldn't think this would be significantly different. One difference I see is that when I set this up in Collector/Field Maps, I design my URL parameters to open the Survey123 web form, not the Survey123 app. One reason for this is that in order to edit the existing attributes of a feature using the survey, it has to be opened up in edit mode ("mode=edit" in the URL Parameters), and I believe that the Survey123 app does not support this functionality. So another question could be: Can you open the Survey123 web form, instead of the Survey123 app, from Workforce? Looking at the URL parameters in the Assignment Integrations table, it is set by default to open up in the Survey123 app, indicated by the beginning part of the URL parameter of https://survey123.arcgis.app?. I'm wondering what would happen if I change the beginning of the URL reference to https://survey123.arcgis.com/share/ .
Any help/suggestions would be appreciated. Thanks.
Tyler