Field Service

Get Involved. Join the Conversation.

Topic

    Todd
    File Property Type Inbound/Outbound
    Topic posted August 18, 2017 by Todd Bronze Medal: 1,250+ Points 
    200 Views, 8 Comments
    Title:
    File Property Type Inbound/Outbound
    Content:

    We are needing to send some custom file property types to an upstream system, does anyone know if this is possible and shed some light.  One would be scanned images.  We also need the ability to do the same from an upstream system into OFSC with some pdf's or word docs.

    Thanks

    Comment

     

    • Shaun Nicely - Helix Business Solutions

      Hi Todd,

      There are additional Rest functions to Set/Get file properties.

       

      http://docs.oracle.com/cloud/latest/fieldservicecs_gs/CXFSC/api-Core-Activities-Activity%20file%20properties.html


      This will allow you to send files to OFS activities using 'Set' and to retrieve file property contents using 'Get'.

      Hope this helps.

    • Todd

       Hi Shaun,
      Is there a way to pass file content usingMessage Scenario Configuration of Oracle Field Service Cloud. In this doc, it talks about file property but seems like it sends just file name and size. 
      Did you mean Message Scenario config will send the file name and if file name exist then call REST API to get the content of file and store against Work Order object in OSvC? Is it the only way to pass file content from OFSC to OSvC triggered by an event in OFSC.
      Regards,

    • Shaun Nicely - Helix Business Solutions

      Hi Todd,

      Yes, I believe this is the only way to retrieve the file. You can include the file properties in the Outbound Message. If those are populated with values it means there is a file to retrieve for the Work Order. The appropriate REST call can then be made to retrieve the file

      Best,

       

    • Prashant Singh Bhadauria

      Hi Shaun ,

              I tried the similar approach suggested by you (http://docs.oracle.com/cloud/latest/fieldservicecs_gs/CXFSC/api-Core-Activities-Activity%20file%20properties.html). For eg. GET https://api.etadirect.com/rest/ofscCore/v1/activities/2757/aworktype

      But while sending the request to get the Activity File Property we are getting the error "Property not found" . Could you kindly explain me what could be the possible reason causing this error and what are the property label that could be used to get file properties.

      Regards, 

    • Shaun Nicely - Helix Business Solutions

      Hello,

      It is hard to say without any of the details on the request and response. The REST API documentation should be able to help on how to format the call. If not, Oracle support can help if there is an issue.

       

      Thanks,

       

    • Prashant Singh Bhadauria

      Hi Shaun,

      The Request for File Property : https://api.etadirect.com/rest/ofscCore/v1/activities/2757/aworktype

      The Response : {
          "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
          "title": "Not Found",
          "status": "404",
          "detail": "Property not found: aworktype"
      }

      We used aworktype as it gives info about all the activity types which we are created.But still we are facing this issue .

      Regards,

    • Shaun Nicely - Helix Business Solutions

      Hello,

       

      'aworktype' is not a file property, but rather corresponds to activity type.  According to the Rest documentation for the 'GET' file you need request a 'GET' for a valid file property. This operation gets the specified 'file' property for the specific activity.

      Please change your request to use a valid file property.

       

      Thanks,

       

       
    • Todd

      We had a file property called "xa_ofsc_file_1" and we were using REST API to get its content from OSVC. It was working fine till we upgraded to '18 A' last week. Now we are getting below error

      {

          "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
      
          "title" : "Not Found",
      
          "status": "404",
      
          "detail": "Property not found: xa_ofsc_file_1"
      
      }
      

      Let me know if we have add some visibility or update some config to make it work.