I have 2 libraries with the same content type for document sets.
I'm trying to move the document set from one library to another (Active and Archive)
I'm using the action "Send an HTTP request to SharePoint"
Here's the setup I have
method = post
uri = /_api/site/CreateCopyJobs
headers:
Accept - application/json;odata=verbose
Content-Type - application/json;odata=verbose
Json:
{
"exportObjectUris": ["https://<tenantname>.sharepoint.com/sites/<sitename>/<library>/<doc set name>"],
"destinationUri": "https://<tenantName>/sites/<sitename>/<archive library>/",
"options": {
"IgnoreVersionHistory": false,
"IsMoveMode": true
}
}
I'm getting a 400 bad gateway.
I've tried modifying the JSON Option
{
"exportObjectUris": ["https://<tenantname>.sharepoint.com/sites/<sitename>/<library>/<doc set name>"],
"destinationUri": "https://<tenantName>/sites/<sitename>/<archive library>/",
"options": {
"IgnoreVersionHistory": false,
"IsMoveMode": true,
"AllowSchemaMismatch": true,
"AllowSmallerVersionLimitOnDestination": true,
"NameConflictBehavior": "replace",
"IncludeItemPermissions": false,
"BypassSharedLock": true,
"ExcludeChildren": false
}
}
I get a 400 - Cannot convert a primitive value to the expected type 'Edm.Int32'.
I am able to move the document set with the move function on the SharePoint Library but can't do it with Power Automate.