“Files” property in REST API

Hi,

Could you please advise on the below question from the Client?

'I seem to be getting error messages when the following line of
code is called in our application.

ExtractionsContext.LoadProperty(schedule,
"Files");

I did a search of the new DataScope API examples but I could not
find anything related.

Wondering if this “Files” property is still a valid call or if
it has been replaced in the new version?'

Thank you,

AK

Answers

  • @aleksandra.kluczniak

    As far as I know, the "Files" property currently is available only for the ReportExtraction entities. Could you ask the client to provide the codes from the beginning and the error messages?

    Anyway, from the code, it seems like the "Files" property is loaded from a Schedule. To get extracted files for last extraction from a Schedule, application should retrieve last ReportExtraction from Schedule first and than load "File" property from the ReportExtraction. The last extraction can be retrieved via the "LastExtraction" property of Schedule entity or various method in the libraries (i.e. "WaitForNextExtraction" in this tutorial, "extractionsContext.ReportExtractionOperations.GetByScheduleId" in this tutorial).