Can FME create folders in an on-prem Sharepoint Library? I’m successfully connecting to the library using the Sharepoint List type (Reader and Writer), and looking at written data I can see an existing folder, but I can’t use the writer to create folders.
FME - Sharepoint Library On-Prem
Best answer by benhanson
I did test without it, and the request failed so I was trying to eliminate variables.
I determined the problem however. It turns out that for nearly all POST requests to the Sharepoint API, you must supply the custom header X-RequestDigest with a value acquired by sending a POST to /_api/contextinfo.
So my initial test workflow (which is now working) consists of Creator(Transform to start flow) → AttributeFileReader(Transformer to pull in test file) → HTTPCaller(Transformer to get XML containing RequestDigest) → XMLFlattener (Transformer to extract & expose FormDigestValue) → HTTPCaller (Transformer to make actual REST call to Sharepoint).
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.