Select to view content in your preferred language

Workforce - Creating Assignments from existing Feature Layer

1232
5
09-15-2020 08:31 AM
SarahHollier
Occasional Contributor

Hi,

I am brand new to workforce and have been asked to set one up for assigning jobs for the installation of christmas lights across our region. I have a feature layer with 435 existing locations which I would like to add in as individual assignments, ideally 3 for each location (installation, safety check and photograph) as these tasks may not be done at the same time/by same user so i think they need to be separate assignments.

Is there a way to load in an existing feature layer to the assignments so I don't need to create each one manually? It would be useful to load in the details from the feature layer as well so I don't need to provide field crews with additional details, eg light type, mounting method, power source etc. It would be a one off exercise so I got a little lost reading up about automation of tasks.

Thanks and I hope that makes sense,

Sarah

0 Kudos
5 Replies
MehdiPira1
Esri Contributor

Hi Sarah Hollier‌,

Yes, there is.

You can achieve this using ArcGIS API for Python, refer to the following links which show how to create assignments based on an existing feature layer with examples:

https://community.esri.com/groups/workforce-for-arcgis/blog/2020/03/10/automate-workforce-with-the-a... 

Automate Workforce with ArcGIS API for Python 

____________________________________________________________________________________________

Please mark as helpful if you find it helpful. If it answered your question please mark it as answered.

SarahHollier
Occasional Contributor

Thank you for your reply, I had hoped there was a way without going down the Python API route as that is a bit beyond my skill level, my python skills are very basic and I got extremely confused with the help documentation on this as it is certainly targeted at someone with a greater knowledge of Python than I have.

I ended up adding the feature layer into the dispatcher and worker map and creating the assignments manually from that. Then the operatives on site could click on the existing feature layer for information about the installation and we can link the datasets later using a common unique ID. Not an ideal workflow but with the time constraints and my skill limitations at least it works.

Thanks

Sarah

0 Kudos
AdamGaudet
Regular Contributor

I'll piggy back off this comment and say that this is a feature that definitely should be included in Workforce and I'm surprised it isn't when we are close to 4 years after someone posting this comment. I'm also surprised there isn't as many people asking about this as it seems like it would be a key piece for many Workforce-driven projects (building a project from data that already exists). Anyways, my Python skills are strong enough so I think I can get there from what's laid out in the blog, though the blog is also dated almost 4 years ago so I'll prepare myself for some hiccups or road blocks.

TeresaSmithson
New Contributor

@AdamGaudet were you able to work this out? I trying to add WorkForce to an integrated project for field inspections that includes Survey123 and monitoring in ExperienceBuilder. I want to add to my EB dashboards the dispatcher map where the team lead can click on a site and create the assignment. I can't find anything describing that except this thread. I'm new to WorkForce and a novice at Python.

0 Kudos
AdamGaudet
Regular Contributor

@TeresaSmithson This project got put aside for a while and then when I got back to it I sort of switched gears and dropped tying the project to Workforce and instead created a "Complete: Yes/No" field and domain list in the auto-generated Survey123 feature layer. From here, a separate web map was made with only this feature layer where the field workers would click on a point and then select "Yes" or "No" if a task has been completed and symbology would change accordingly. Not the most elegant solution, but it works and I was able to get the project out the door.

0 Kudos