How to Pass folder or file ID as string variable to Move file or Folder activity of Microsoft 365

Hi Team,

Use Case: If file available in OneDrive folder upload it to application (xyz) and move it to completed folder

Im retrieving the file id from the queue item as string and storing in string variable.
Post completion of upload i wanted to move that file to completed folder

as input to Move File or Folder activity of Microsoft 365 i do have file and folder id

Error: String can not be converted into O365DriveRemoteItem

@omkardes

You will have to get the O365DriveRemoteItem using the id

Ise Get File or Folder activity and select Enter Id option. This ativity will return you the O365DriveRemoteItem which you can pass to Move File or Folder activity to move.

1 Like

Hi @omkardes

Move File or Folder doesn’t accept a string file id.
First use Get File (or Find Files/Folders) to get an O365DriveRemoteItem, then pass that object to Move File or Folder.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.