Fields

Fields
ParameterDescription
resourceId
String
requiredId of the file or folder to be moved.
resourceType
String
requiredOne of file or folder.
driveId
String
requiredDrive Id, applicable for SharePoint or Google Drive. You can get this value from the Content Library.
destinationId
String
requiredId of the destination folder.
destinationDriveId
String
optionalDrive Id of the destination, for cross-drive moves. Supplied only via the five-argument constructor.

Constructors

global MoveResourceInput(
  String resourceId,
  String resourceType,
  String driveId,
  String destinationId
)
global MoveResourceInput(
  String resourceId,
  String resourceType,
  String driveId,
  String destinationId,
  String destinationDriveId
)

Example

List<cldfs.Types.MoveResourceInput> inputs = new List<cldfs.Types.MoveResourceInput>{
  new cldfs.Types.MoveResourceInput(
    '67ef8a5bd98d18e317d0891d',
    'file',
    'workspace',
    '68887db5ef0b3ca7534dbbd5'
  )
};

cldfs.Client.moveResources(inputs, 'cloudfiles', 'integrationUser');