Skip to main content
1-Visitor
June 25, 2017
Solved

How to get End Date information for Uploaded Files

  • June 25, 2017
  • 1 reply
  • 3869 views

Note that the UpdloadedFile class in the Axeda Platform v1 SDK only has a Start Date field, but no field for the completion date.  However, there is a column that contains the End date in View All of uploaded files for an asset.  How do I get this information into a custom object groovy script?

Best answer by ckaminski

Greetings, John:

    Unfortunately there is no way to get the completion date-time information through the existing API.

Regards,

-Chris Kaminski

PTC/Axeda Customer Support

1 reply

ckaminski5-Regular MemberAnswer
5-Regular Member
June 27, 2017

Greetings, John:

    Unfortunately there is no way to get the completion date-time information through the existing API.

Regards,

-Chris Kaminski

PTC/Axeda Customer Support

1-Visitor
June 28, 2017

Can AgentUploadedFile from the V2 API be used with FindAgentUploadedFileResult in a groovy script to retrieve this information using a custom object?

5-Regular Member
June 29, 2017

Hello, John:

   Unfortunately, accessing AgentUploadedFile's from the fileInfoBridge was not completed in time for the 6.9 release.  UploadedFile is still the only way to programmatically access files uploaded by the Agent.

    One way to get the time would be to set up a File-based expression rule that records the contents of the "compressedFile" input.  When the expression rule is fired, the files have already been uploaded to the Platform (upload is complete). 

Axeda Groovy Script: Handling uploaded files

Regards,

-Chris Kaminski

PTC/Axeda customer Support