Create Folder

Do either of these commands work across sites, such that a workflow running on site A can create a folder in a library on site B?? I’m getting error messages:

Create folder in List: Exception: Incorrect function. (Exception from HRESULT: 0x80070001)
Create folder by URL: Exception: Server relative urls must start with SPWeb.ServerRelativeUrl

In both cases I’m using the full URL for the destination.

Please advise,

Hi bladec59,
Thank you for a message.

If you trying to create a folder in a library on different site, then you need to specify “SiteUrl” parameter like URL of your site B and specify “AdminLogin” and"AdminPassword" parameters by credentials of the user who have permission on site B.

Best regards
Evgeniy Kovalev
Plumsail Team

That worked…tks!