Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Just to share my experience to upload a file to sharepoint online.
To connect to sharepoint, you need to realize a sequence of REST call. A little schema below to explain...
The call fails because during the redirection process the tRESTClient receive some cookie but the component don't set the cookie for the next call, thus impossible to finish the step 3.
Finally, I find a solution, see below
I explain a little :
tRESTClient (callMicrosoft) : We check "Convert response to DOM document" to use tXMLMap.
tRESTClient (callSiteButRedirect) : The tRESTClient don't update cookie in the process of redirect. Thus, we made the process of redirect manually. We uncheck "Die on Error" to retrieve HTTP Headers.
tJavaRow (extractCookies) : We extract the two cookies to reuse after.
tRESTClient (callSiteAfterRedirect) : We check "Follow redirects" and "Allow non-same host redirects".
tRESTClient (callForDigest) : We check "Convert response to DOM document" to use tXMLMap.
tFileFetch (loadFile) : We use all the info before and upload the file.
And it's good for me.
Enjoy
Dimitri
Hi guys - has anyone of you build this solution is able to export and share the job here?
Many Thanks in advance!
Christian