Field Service

Get Involved. Join the Conversation.

Topic

    keerthi P
    Rest APIs for searching activities assigned to a resource
    Topic posted September 22, 2017 by keerthi PSilver Medal: 2,000+ Points, last edited September 22, 2017 
    95 Views, 3 Comments
    Title:
    Rest APIs for searching activities assigned to a resource
    Content:

    Hi,

    As a part of integrating OFSC with Mobile, We have a requirement to retrieve and display all the activities associated with a resource for a given day or given period of time.

    While searching for rest APIs, i found activity search APIs but that doesn't support search by resource id.

    Would you please suggest any other possibilities to achieve this.

    Below is the link, i referred.

    https://docs.oracle.com/cloud/latest/fieldservicecs_gs/CXFSC/op-rest-ofscCore-v1-activities-custom-actions-search-get.html

     

    Thank you

     

    Comment

     

    • Hardik Gupta

      Hi Keerthi,

      You can use this link: https://docs.oracle.com/cloud/latest/fieldservicecs_gs/CXFSC/op-rest-ofscCore-v1-resources-%7BresourceId%7D-routes-%7Bdate%7D-get.html

      The idea is to look up a resource first and then pass a date for which we want to get the activities.

      Also, you have mentioned integrating OFSC with mobile.. Just wanted to inform that OFSC provides a separate browser based mobility application. I guess you are creating a custom application separately

      Regards,

      Hardik Gupta

    • keerthi P

      Thank you Hardhik,

      Just wanted to add,  Get Resource Routes API will provide the routes for a single given date. However, we are looking to retrieve the activities assigned for a given resource in a period of time like start date and end date.

      I found a custom API, however search by resource id field is not supported. 

       

       

    • keerthi P

      We sorted this. Thank you