I have Microsoft Office 365 Activity , Get File/Foler and saving the file to some variable. the file is in .pdf format. The variable type is O365DriveRemoteItem. I want to open and read the file and fetch some value from there. If I am takin read pdf file activity, it is giving variable error:
“Argument ‘FileName’: BC30311:Value of type ‘O365DriveRemoteItem’ cannot be converted to ‘String’ . The selected value is incompatible with the property type.”
I am thankful for the reply.
But this is downloading a file to SharePoint or to One Drive only. Not to the local
How to read that .pdf file then?
Can someone help to Download or to Get and read the file from Sharepoint .The file is in sharepoint, in pdf format.
I reached till creating Tenant ID, APP Id, giving permsssion, to files using Microsoft graph and other things.
I am stucked in UiPath only. I could get the file from modern activity–> Get File/Folder activity. But then reading that pdf file is a challenge.
Modern Download files doesn’t have download option to local.
I tried download activity from Classic also.
I tried lot of things, nothing is working.
My flow above is downloading from Sharepoint to local folder. Once the file is in local folder you can read it.
Get File/Folder activity must precede Download File activity because you need to grab the Drive item variable. Then, you send the Drive item variable to the Download File activity which will download from Sharepoint to Local. Once the file is local, you can read it.
are you taking modern activity or classic activity?
What is the package version you are using?
again, it is not taking Drive Item Variable, It is automatically taking O365DriveRemoteItem, which is giving variable error in next actiity . If I change the variable type, I get another variable error