Looking to append my existing survey123 points automatically to workforce as assignments. Can this be done without Python?
You don't necessarily need Python. Workforce assignments are stored in a Feature layer. So anything that can add features to a feature layer can accomplish this. That said, Python is the most popular tool used.
How would any new point that is created in Survey123 be added to Workforce at the same time?
The two options for that workflow are:
1. Using webhooks with some kind of custom endpoint
2. Polling the survey123 features layer using a script. You'd write a Python (or other language) script that runs every 5 minutes (or whatever interval you decide) on a server. The script identifiers new features and then will create an assignment in the Workforce Assignments layer.
What I did was just place the Survey123 feature service in both the worker and dispatcher web maps. Seems to be working that way. Can I trip emails once an assignment has been set to complete, etc?
Not out of the box. You would need to configure a script to poll the assignments feature layer and trigger an email. An example Python script that sends a Slack message is shown here.
Integromat an option?
Can data be passed into Workforce to help the field worker understand some details of the request such as what the issue is without the dispatcher typing out the info manually?
I'm not familiar with Integromat so I can't really comment on it.
The mobile app does not support the creation of assignments on device. So you cannot pass in information to create an assignment on device. It must be created using something else first (Dispatcher App, Script, Webhook...).
Most users typically use Workforce as the gateway into the other apps like Collector or Survey123. A Workforce Project can be configured to pass information from an assignment into a Survey123 or Collector form. We currently don't support going the other way around.
You mentioned webhooks, how are you suggesting to use those? If I could use the webhook from survey123 to populate assignments in workforce, that would be great.
My understanding is that you configure your Survey form with a webhook that fires when the survey is completed. The webhook (url) that you configure will have to have custom code that handles creating the Workforce assignment. For example, you'd need to configure a web-server that has an endpoint that accepts the feature and creates the assignment. We've prototyped something similar and used AWS Lambda with API Gateway to act as the webhook handlers. If you are using Python, you could create a Flask or Django app that creates the assignment.
I hope that helps.
Have any examples/code?
Can workforce start via a URL? Similar to how Survey123 has a unique URL for each survey
No, Workforce does not currently have a url scheme to support launching Workforce and opening a particular assignment. That is in our backlog, but is not assigned for a release.
Actually I was referring to opening the website app, not the field app. I want to open the website app via a URL so that a dispatcher can dispatch without navigating manually to the website. All they have to do is hit the link and it bring them to the dispatch website.
Yes, you can open the Workforce web app through a URL, e.g.:https://workforce.arcgis.com/projects/<GUID for your project>/dispatch/assignments
Seems to bring me to the main workforce page
It works for me; you might want to see if you're signed in - which would be one reason you're redirected to the sign-in page.
If it doesn't redirect you after signing in - you should log an issue with Technical Support as you may be encountering a bug.
After logging in, it brings me to my workforce projects page. Then I have to click "open" on my project. The desired workflow is like something like this:
-User clicks on link
-Bring them to AGOL login screen
-After login it brings them directly to the workforce project so they can start dispatching work
Yes, I agree - as it's not working for you, I suggest contacting Technical Support so they can reproduce and log an issue or attach you to an existing issue so you can be made aware of the progress of it.
We're working on the next release Workforce now - will look at getting this addressed in it.
Simplest way would be to build your survey based on the assignments layer that was created for you workforce project - see link below. That way any submitted survey record directly creates a new assignment within workforce.
Use Survey123 with existing feature services—Survey123 for ArcGIS | ArcGIS
Ok thanks. Can this also allow for auto dispatch (auto assignment) to a worker?
You can enter the required information for the dispatch (such as the workerID, status, due date etc.) and it would create and dispatch the assignments for your worker to use through the workforce field app, basically bypassing the dispatcher's app, however you would need to make sure that you understand the workforce schema (link below) and how the status and assignments are defined. If there's no good reason to do so, I think there's benefit in doing this part through the workforce dispatcher app, which is built for this and provides the dispatcher with the interface he requires.
Automate and script Workforce—Workforce for ArcGIS | ArcGIS
Retrieving data ...