Giter Site home page Giter Site logo

Comments (5)

apulverizer avatar apulverizer commented on June 12, 2024 1

@langdonms you need to be a dispatcher in the project in order to use the Workforce module in the Python API. You could add your admin user as a dispatcher to the project and then should be able to do everything.

from workforce-scripts.

apulverizer avatar apulverizer commented on June 12, 2024 1

Closing, feel free to re-open needed.

from workforce-scripts.

langdonms avatar langdonms commented on June 12, 2024

Also, for automation, does the https://developers.arcgis.com/python/api-reference/arcgis.apps.workforce.html work with V2 projects?

from workforce-scripts.

apulverizer avatar apulverizer commented on June 12, 2024

@langdonms This is because the assignment types are stored in a separate table and are not a coded value domain. This was an intentional decision to support assignment type changes when projects are offline and need to sync changes. There's no good way to resolve this in Pro unfortunately.

The referenced api does work but you need to use the 1.8.3 pre-release version of the ArcGIS API for Python which is backwards compatible with older projects. This can be installed using conda install -c esri/label/prerelease -c esri arcgis

from workforce-scripts.

langdonms avatar langdonms commented on June 12, 2024

Thanks for the quick reply and explanation @apulverizer I had hoped to do an append with field mapping to migrate & load new assignments but I'll take a closer look at the migrate script then. 👍

Follow-up Q:
Do you need to be the owner of the project to perform the scripts or can any admin account work? I say this bc my main account is authenticated through our G-Suite which might be a pain to use in the scripts while we have other automation accounts that are named user on AGOL. I'd prefer to keep myself as the owner of the projects for convenience but can change ownership if needed for the scripts to auth with a named user.

from workforce-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.