Workforce integration with Field Maps

8215
29
Jump to solution
01-28-2021 12:28 PM
BillLotz
Occasional Contributor II

Hello,

I have upgraded to 10.8.1, installed the Workforce general patch and Field Maps 20.4.0. When creating a new Workforce project, under the advanced tab, Field Maps do not show up in the App Integration Window. It shows Collector, Explorer, Navigator, survey123, but no Field Maps.

I've restarted computers and servers and logged out and back in, but no change. Field Maps functions correctly, I've mad a couple of maps. It seems confusing, when I launch the the Resources tab in Workforce project manager page it takes me to help that seems to be for the previous version, it talks about expanding the App Integration, but that was in the last version. Any Ideas?

0 Kudos
29 Replies
SueEnyedy
New Contributor II

Hi Craig - is adding callback to Workforce supported for Field maps assignment integrations? 

If so can you share an example URL ? So far I have not gotten the callback parameter working to modify the default one 

https://fieldmaps.arcgis.app?itemID=48318c458d8340f8b239d712985c8de1&referenceContext=addFeature&geo...

 

Thanks! Sue

 

0 Kudos
CraigGillgrass
Esri Regular Contributor

Hi @SueEnyedy sorry for the delay; does using the callback parameters in Field Maps not return you to Workforce?

https://doc.arcgis.com/en/field-maps/android/help/deploy-your-map.htm

https://fieldmaps.arcgis.app?referenceContext=addFeature&itemID=3ac4145c1ac44aea86e9ed42e00fbb0d&featureSourceURL=https://services9.arcgis.com/QjGvjfQhsHAmqfjP/arcgis/rest/services/DamageAssessment_Apr2018_631d0895e7d3404bb78e8e04e92d896e/FeatureServer/1&callback=https://workforce.arcgis.app&callbackPrompt=Workforce

 

0 Kudos
SueEnyedy
New Contributor II

Hi Craig - thank you, I could modify  your link and it works for me.  May try to get fancy with passing attributes and bug you again.

Sue 🙂

CraigGillgrass
Esri Regular Contributor

Anytime @SueEnyedy 

0 Kudos
Hussam_AlJabri
Occasional Contributor III

Hey @CraigGillgrass, any good news about the general patch for having the field maps into 10.8.1?

 

Regards, 

0 Kudos
CraigGillgrass
Esri Regular Contributor

Hello @Hussam_AlJabri I don't have any updates on the patch. It's still a consideration but other priorities are precede it.  Our recommendation continues to be to use the Python API workflow to enable the Workforce to Field Maps integration.

0 Kudos
Hussam_AlJabri
Occasional Contributor III

Is the Python Script will add the Field Maps to the Workforce for all new upcoming projects or I have to do it every time that I need to create a project?

How I can configure it? Any guide to do so step by step?

0 Kudos
CraigGillgrass
Esri Regular Contributor

@Hussam_AlJabri this will need to be run on each Workforce project that you'd like to integrate with Field Maps.

Please see this topic in the Python API:
https://developers.arcgis.com/python/api-reference/arcgis.apps.workforce.html#integration

0 Kudos
David_RonaldSuárez_Urresti
New Contributor III

Any help how has to be the python code to add the field map integration to workforce?

I am using ArcGIS Enterprise 10.8.1, is it supported?

I am trying:

import arcgis
gis = arcgis.gis.GIS("https://servidor/portal", "usuario", "password")
item = gis.content.get("f863b592be7649d7b7b845468cf3d2ce")
project = arcgis.apps.workforce.Project(item)
integrationList = project.integrations
integration = integrationList.search()[0]
integration.update(integration_id="arcgis-fieldmaps",url_template=u"https://fieldmaps.arcgis.app?referenceContext=center&itemID=a82f912a56e3474d98142d6a592f4a77&center=...{assignment.latitude},${assignment.longitude}")

 

0 Kudos
ZachBodenner
MVP Regular Contributor

I agree, I am far from a Python expert but I kinda want to try to set up this integration. I tried something very similar to David_RonaldSuárez_Urresti, running the Python viewer in Pro and changing the necessary info. Pro crashed. Is that the correct way to go about this?