Field Service

Get Involved. Join the Conversation.

Comments

  • Austin Keller

    Mohan,

    In order to change the status of an activity you must have a resource with a route started. In order to have a resource start a route, they must have scheduled work hours on their calendar.

    #1. The API should be able to start a route for a resource (if working time is on calendar), then start the activity.

    #2. A bucket cannot start a route or activity

     

    Hope this helps. Austin

  • Antero Makinen

    Hi, 

    You need to remove the link between those two user types. 

    Go to User types --> Choose one of those two user types --> go to "Screen configuration" tab --> on top part of screen, there is a text "Screen configuration shared with YOUR OTHER USER TYPE" --> Click change --> and you might want to choose the "Create screen configuration as copy of YOUR OTHER USER TYPE" so it won't delete anything, but it will just copy it and they won't be linked after that.

    In the future, if you want to create new user types which copies some user type's screen configuration when creating, but not afterwards, just choose "As copy of WANTED USER TYPE" but don't check the checkbox which says "Share screen configuration".

    Hope this helps :)

  • Mohana Gopal Selvam

    Thanks for your support.

  • Mohana Gopal Selvam

    Thanks Zsolt.

    Coordinates not resolved in History tab. I will raise an SR.

    Thanks,

    Mohan

  • Zsolt Tolgyesi

    For the authentication, I propose to follow Oracle guidance about OAUTH 2.0 & token way:
    https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/OFSC_Configuring_OAuth_2_0_Authentication.html
    This "Activity Management API" is not the one which you need to set, because you like to use Core API / Activity RO. Please change the configuration for this user to see API access, Core API, Activity: Read-only in the screen top right part. Points 3, 4 and 5 aren't okay.
    Get activities example is https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/op-rest-ofsccore-v1-activities-get.html for Core API.

    I plan this is as my last message here, because it's takes much more time than I can spare and it's almost impossible to fully teach someone with this way. Read the documentation through carefully, try the examples and read this post again.
    Zsolt

  • Mohana Gopal Selvam

    Hi Zsolt,

    Thanks for your response. I also suspect, I am missing something here.

    1. Create new application - restapi

    2. Enabled - Authenticate using Client ID/Client Secret

    3. Add New - API access for Activity Management API

    4. Add 'Get Activities' in Available Methods

    5. Select all available Activity Fields and provided RW access for all fields

    6. I havent do any additional restrictions

    7. Form the cURL like below. Here I am directly passing client id & secret, we haven't use any user credentials here. I think here I am missed something. 

    curl -X 'GET' \
         -u 'restapi@dd.test:clientsecret' \
         -H 'Accept: application/json' \
         'https://dd.test.etadirect.com/rest/ofscCore/v1/activities'
     
    Now Got the different Error:
    {
    "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
    "title": "Bad Request",
    "status": "400",
    "detail": "Required query parameter is not specified: 'resources'"
    }
    Thanks,
    Mohan
  • Zsolt Tolgyesi
    "detail""Authentication was provided, but the authenticated user is not permitted to perform the requested operation."
    because
    isn't set correctly.
    Zsolt
  • Mohana Gopal Selvam

    Hi Zsolt,

    Thanks for your response. If you noticed my first screenshot, we have enabled the Client Id / Secret authentication already. We get the client Id & client secret from the Application UI and try to execute the below one. And we can able to execute the get token api.

    curl -s -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>'  --url 'https://api.test.etadirect.com/rest/ofscCore/v1/resources'

    Thanks,

    Mohan

  • Zsolt Tolgyesi

    Hi Mohan,

    When you open the activity details and select History tab, then you need to see a line Action: updated,  Coordinate Status: found, Coordinate X: 19.07987, Coordinate Y: 47.50857 (something like this), if it's there then the activity coordinates are resolved by OFSC and it't okay, if you didn't see that line, then you may need to provide the address with different format to the system. If the coordinates found and you still got that message, then you need to find other reason, for example the activity isn't on the resource timeline (the resource isn't has planned activity for that day).
    Also make sure Configuration / Business Rules / Maps and Geocoding / Available countries "United Arab Emirates" is included, but IMO it is.

    If all trying will fail then I propose to raise an SR.

    Regards,
    Zsolt

  • Zsolt Tolgyesi

    Hi Mohan,

    Yes, I got it, and already gave the right guidance. You want to use a call which is belongs to Core API, and this is the way how that access can be enabled for an application: add Core API / Resource RW right.
    https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/OFSC_Authenticate_and_Authorize.html -> "To authorize access to REST web resources"

    Regards,
    Zsolt

  • Mohana Gopal Selvam

    Thanks Zsolt

  • Mohana Gopal Selvam

    Hi Zsolt,

    It is mentioned like below only 19C document. You have mentioned something like we need to provide access. Please provide those details.

    /rest/ofscCore/v1/resources

    https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/op-rest-ofsccore-v1-resources-get.html

    Thanks,

    Mohan

  • Zsolt Tolgyesi

    This URL isn't belongs to Resource API. For that, you need to add "Core API" / Resource RW.
    Zsolt

  • Zsolt Tolgyesi

    Hi Mohan,

    Editable here on 18B SU16 without any issue. Adding new countries with the plus sign, then select default below.
    I propose to record an SR if you still facing this issue.

    Regards,
    Zsolt

  • Mohana Gopal Selvam

    Hi Zsolt,

    Where we need to provide the access? By the way, I tried to use the Resource API (/rest/ofscCore/v1/resources)

    Thanks,
    Mohan