please is there any posibility, how to store document content from SharePoint online Document library as Base64?
I remember that in on-premise version of Nintex Workflow is there that "magic" with [FileData], but it looks, this is not working in Nintex Workflow for O365.
Solved! Go to Solution.
The only way you can get file contents from SharePoint Online is to get it as binary. You can do it using "Web Request" action to call library REST Api. But there is no OOTB way to encode this binary string to Base64... Possibility you should write your own provider-hosted app to achieve it.
Moreover I found out, that text variables in Nintex for O365 does not support binary strings as they are somehow loosing information about the null bytes. I faced that problem when I was trying to upload such way obtained binary string back to the library - that way created file was corrupted
thank you for your response...I've also found that solution with binary file content via REST api call, but for my project is only base64 file content allowed 😞
Then the only way I see is to create a custom provider(azure?)-hosted app that will receive fill details, then will get file contents, encode it to Base64 and return such created string. You would be able to use it then via "Web request" action
question: if the Provider Hosted App sits on an Azure Web Service, and is installed as an Add-In in SharePoint Online, you are saying my Nintex web request action (to get the Base64string) can call it without additional authenticating (since its already has permissions in app catalog)?
as this is an old post: is there an "integrated solution" for this Problem. Itry to add a word document as list attachment and the file is corrupted using
within the web request and the workflow failed, using
Maybe, there is another workaround for this?