Can I keep integration between Workforce & (custom)Survey app, if I replace Survey123 with custom app done with AppStudio

557
3
11-06-2019 05:19 AM
JarkkoTiirikainen
New Contributor II

Can I keep integration between Workforce & (custom)Survey app, if I replace Survey123 with custom app done with AppStudio

0 Kudos
3 Replies
AmyNiessen
Esri Regular Contributor

Yes, this is possible. Here is a response to this very question on GeoNet: https://community.esri.com/thread/206921-integrate-workforce-with-customized-survey-app

 

There are two ways to do this:

  1. Give your custom Survey123 app the URL scheme of “arcgis-survey” to mimic the Esri version of Survey123.  Kind of a hack, could cause problems if you have the Esri published version of Survey123 also installed.
  2. Edit the JSON of the Workforce project to add the URL scheme of your custom version of Survey123. I would recommend this. It requires using the https://ago-assistant.esri.com/ tool to edit the JSON.

 

The second method (have a custom URL scheme for your application, and then modify the Workforce project) is probably the most sustainable, as it doesn’t risk any interference if production Survey123 is installed. Also, please review the ‘Inter-App Communication with ArcGIS Apps’ demo theater from the Developer Summit: https://youtu.be/_IBDPwVFKQA

0 Kudos
by Anonymous User
Not applicable

The youtube video from the Developer Summit is very helpful on this.   The video shows (at the 19:07 mark) the use of an item id that finds an item of the Type Workforce Project.   But this seems only available for the Classic Workforce projects.

In using the ArcGIS Workforce (Workforce)  I am able to get the item id.  But when I enter it in the   https://ago-assistant.esri.com to find it, I only get the feature layers and the maps.   I don't get the Workforce Project.  

If I use the item id of a Classic Workforce Project, I can get the project file and json to edit. 

Is it possible to edit the new Workforce json file?

Thanks

Brian

0 Kudos
by Anonymous User
Not applicable

Upon additional investigation, I thought I had found a solution but it came up dry.   As described here workforce-scripts/1 - Configuring a Project.ipynb at master · Esri/workforce-scripts · GitHub one can use the python ArcGIS API and the  AssignmentIntegrationManager class to add additional integrations.  However, the new Workforce projects are not accessible through item = gis.content.search("type:'Workforce Project ......) as far as I can tell.

Another requirement for me for adding an additional integration tool is the desire to connect to ODK Collect.  I'm sorry Survey123.   You are not connected to a AGO that accepts PII yet and I need to use the existing workflow of my client that uses ODK for now. 

Some documentation on it (https://docs.getodk.org/launch-collect-from-app/ ), uses the Android Intent object.   Does anyone have experience with it and WorkForce?

Thanks

0 Kudos