APEX documentation
# Create new Folder Structure for IDS
## Create new Folder Structure DTO
FolderStructureRequest {
Id recordId;
Boolean isAnonymousAuth;
String emailAddress;
FolderStructureRequest(Id recordId, Boolean isAnonymousAuth, String emailAddress)
}
## Create new folder for one id
CreateFoldersGlobalMethod.createFolder(AddFolderGlobalMethod.FolderRequest folder, String email);
## Create new folder for multiple ids
CreateFoldersGlobalMethod.createFolders(List<AddFolderGlobalMethod.FolderRequest> folders, String email);
# Get File
## Get File link DTO
FileLinkRequest {
Id recordId;
String path;
Boolean isAnonymousAuth;
FileLinkRequest(Id recordId, String filePath, Boolean isAnonymousAuth);
}
## Get links for multiple files
GetFileLinksGlobalMethod.getFileLink(List<FileLinkRequest> requests);
## Get links for one files
GetFileLinksGlobalMethod.getFileLink(Id recordId, String path, Boolean isAnonymousAuth);
# Upload Files
## Upload File
## File Request DTO
FileRequest {
Id recordId;
String folderName;
Id contentId;
Boolean isAnonymousAuth;
}
UploadFilesGlobalMethod.uploadFile(AddFileGlobalMethod.FileRequest file, String email);
## Upload Multiple Files
UploadFilesGlobalMethod.uploadFiles(List<AddFileGlobalMethod.FileRequest> files, String email);