AnsweredAssumed Answered

AGO assistant Workforce Apply more than one Survey

Question asked by MelisaG92 on Oct 7, 2020
Latest reply on Oct 15, 2020 by roemhildtg

Gregg Roemhildt

Hi Gregg and others i saw your workaround too adding more than one survey/collector to workfore would you minde dumming it down for me more? in AGO i have three types in my workforce projekt: Feature Serviece, web map and web map dispathcher 

 

where do i add in your code? and the itemID should that be my own surveys ore 691c248608db41509b9a6f6563cdad8f&field?

 

Your code:

" assignmentIntergations": [

{

"id": "default-navigator",

"prompt": "Navigate to Assignment",

"urlTemplate": "arcgis-navigator://stop${assignment.latitude},${assignment.longitude}&stopname=${assignment.location}&callback},"

{

"id": "default-survey123",

"prompt":Open in survey123",

"urlTemplate": "arcgis-survey123://?itemID=691c248608db41509b9a6f6563cdad8f&field:metdata=assignment.description}"

}

]

 

 

My Json Feature Service

{
"id": "a7cc4c685b0e41b3991e2cf3074c1359",
"owner": "MelisaG92",
"created": 1601541761000,
"isOrgItem": true,
"modified": 1601541786000,
"guid": null,
"name": "workforce_1012a6aa95f54fddbbdc0c6df064dc69",
"title": "Incident rapport",
"type": "Feature Service",
"typeKeywords": [
"ArcGIS Server",
"Data",
"Feature Access",
"Feature Service",
"Multilayer",
"Service",
"Workforce Project",
"Hosted Service"
],
"description": null,
"tags": [
"workforce"
],
"snippet": null,
"thumbnail": "thumbnail/__d1kzzle2o3w7pf.cloudfront.net_workforce-project-creation-card-img-2f4bc64002aeb9255b400f02f3ccea39.png",
"documentation": null,
"extent": [
[
10.96161140609252,
55.33621026142635
],
[
24.16686404895472,
69.05954491216042
]
],
"categories": [],
"spatialReference": "102100",
"accessInformation": null,
"licenseInfo": null,
"culture": "",
"properties": {
"workforceProjectGroupId": "1012a6aa95f54fddbbdc0c6df064dc69",
"workforceProjectVersion": "2.0.0",
"workforceDispatcherMapId": "dea95d6de7cd4686a25edf1cd6bcc2cd",
"workforceWorkerMapId": "4d7f71dac7614f33af0fc5c8b3fa6476"
},
"url": "https://services3.arcgis.com/ip7yFuXj5zVHLX42/arcgis/rest/services/workforce_1012a6aa95f54fddbbdc0c6df064dc69/FeatureServer",
"proxyFilter": null,
"access": "org",
"size": 4071424,
"appCategories": [],
"industries": [],
"languages": [],
"largeThumbnail": null,
"banner": null,
"screenshots": [],
"listed": false,
"ownerFolder": "22b56cf744a44396bbd7464d512fc28a",
"protected": true,
"commentsEnabled": true,
"numComments": 0,
"numRatings": 0,
"avgRating": 0,
"numViews": 32,
"itemControl": "admin",
"scoreCompleteness": 33,
"groupDesignations": null
}

 

My Json web map

{
"id": "4d7f71dac7614f33af0fc5c8b3fa6476",
"owner": "MelisaG92",
"created": 1601541783000,
"isOrgItem": true,
"modified": 1601541786000,
"guid": null,
"name": null,
"title": "Incident rapport",
"type": "Web Map",
"typeKeywords": [
"ArcGIS Online",
"Data Editing",
"Explorer Web Map",
"Map",
"Offline",
"Online Map",
"Web Map",
"Workforce Worker"
],
"description": null,
"tags": [],
"snippet": null,
"thumbnail": "thumbnail/__d1kzzle2o3w7pf.cloudfront.net_workforce-project-creation-card-img-2f4bc64002aeb9255b400f02f3ccea39.png",
"documentation": null,
"extent": [
[
10.961611406092521,
55.33621026142635
],
[
24.16686404895472,
69.05954491216042
]
],
"categories": [],
"spatialReference": null,
"accessInformation": null,
"licenseInfo": null,
"culture": "sv-se",
"properties": {
"workforceFeatureServiceId": "a7cc4c685b0e41b3991e2cf3074c1359"
},
"url": null,
"proxyFilter": null,
"access": "org",
"size": 7965,
"appCategories": [],
"industries": [],
"languages": [],
"largeThumbnail": null,
"banner": null,
"screenshots": [],
"listed": false,
"ownerFolder": "22b56cf744a44396bbd7464d512fc28a",
"protected": true,
"commentsEnabled": true,
"numComments": 0,
"numRatings": 0,
"avgRating": 0,
"numViews": 11,
"itemControl": "admin",
"scoreCompleteness": 33,
"groupDesignations": null
}

 

My Json web map dispathcher

 

{
"id": "dea95d6de7cd4686a25edf1cd6bcc2cd",
"owner": "MelisaG92",
"created": 1601541783000,
"isOrgItem": true,
"modified": 1601541786000,
"guid": null,
"name": null,
"title": "Incident rapport-ärendehanterarkarta",
"type": "Web Map",
"typeKeywords": [
"ArcGIS Online",
"Explorer Web Map",
"Map",
"Offline",
"Online Map",
"Web Map",
"Workforce Dispatcher"
],
"description": null,
"tags": [],
"snippet": null,
"thumbnail": "thumbnail/__d1kzzle2o3w7pf.cloudfront.net_workforce-project-creation-card-img-2f4bc64002aeb9255b400f02f3ccea39.png",
"documentation": null,
"extent": [
[
10.961611406092521,
55.33621026142635
],
[
24.16686404895472,
69.05954491216042
]
],
"categories": [],
"spatialReference": null,
"accessInformation": null,
"licenseInfo": null,
"culture": "sv-se",
"properties": {
"workforceFeatureServiceId": "a7cc4c685b0e41b3991e2cf3074c1359"
},
"url": null,
"proxyFilter": null,
"access": "org",
"size": 6867,
"appCategories": [],
"industries": [],
"languages": [],
"largeThumbnail": null,
"banner": null,
"screenshots": [],
"listed": false,
"ownerFolder": "22b56cf744a44396bbd7464d512fc28a",
"protected": true,
"commentsEnabled": true,
"numComments": 0,
"numRatings": 0,
"avgRating": 0,
"numViews": 10,
"itemControl": "admin",
"scoreCompleteness": 33,
"groupDesignations": null
}

Outcomes