Select to view content in your preferred language

Allow to add linked content before survey is published

168
4
Saturday
Status: Open
Labels (1)
AnthonyRyanEQL
Frequent Contributor

Please allow linked content to be added to the survey before it's published. The Survey123 Connect app is connected to the ArcGIS Enterprise Portal, so not sure why this section would limit the user to publish their survey before linking other content/items from Portal to it.

The reason is we have developed CI/CD pipelines that publish our surveys to ArcGIS Enterprise which allows us to keep the same item id throughout our environments so if the survey is used with hyperlinks in ArcGIS Field Maps, then these links will not be broken when the survey is republished, etc from an update/upgrade/etc.

Thanks

4 Comments
Philip-Wilson

Hi @AnthonyRyanEQL,

It is not possible to link content to a survey via Linked Content in Survey123 Connect if the survey has not been published at least once and exists as an item in the ArcGIS organisation (Online or Enterprise).

The reason being is that Linked Content uses the "survey2data" relationship to link other content items to the survey form item. If they survey has not yet been published to the organisation then the item does not exist and have a unique id and form item available to be linked to from other items.

https://developers.arcgis.com/rest/users-groups-and-items/relationship-types/

Regards,

Phil.

 

AnthonyRyanEQL

@Philip-Wilson

Wouldn't the publishing process just need to altered to ensure the survey form item is created first (itemid would then be known) and then with what items that have been linked in Survey123 Connect  app would have their relationships created as one of the last steps?

I thought this would be easier than the user having to publish the survey, go back to link items, and then republish again

 

FYI. I have worked out the way we are going to do it as part of our CI/CD pipelines.

Philip-Wilson

Hi @AnthonyRyanEQL,

Great to hear you have found a workaround as part of your CI/CD pipelines to link content to the survey.

And yes, if the publishing process and survey2data workflow for linked content was redesigned and engineered to accomodate form items before they are published and exist in the organisation, this could in theory work. We will add it as a future enhancement to be considered in the roadmap when linked content is added to the next generation apps which are currently under development.

Regards,

Phil.

AnthonyRyanEQL

@Philip-Wilson 

Thanks for the consideration.