OptimizationFiles Class

Fetch files associated with optimization requests for Enhanced Scheduling and Optimization. Requires Field Service to be enabled for the org and the running user to have Field Service enabled.

ConnectApi

These methods are for OptimizationFiles. All methods are static.

Fetch the files generated for an optimization request in Enhanced Scheduling and Optimization.

66.0

No

public static ConnectApi.FetchFilesOutputRepresentation FetchOptimizationFiles(ConnectApi.fetchFilesInput fetchFilesInput)

fetchFilesInput

Type: ConnectApi.fetchFilesInput

The input representation containing the ID of the optimization request for which to retrieve the associated files.

Type: ConnectApi.FetchFilesOutputRepresentation

Use FetchOptimizationFiles to retrieve the Content Version files produced for a completed optimization request. Each file in the response corresponds to a file created in the org and is keyed by filename in the returned map.