Hi all,
First post. I am trying to develop a manually initiated flow to copy a SP folder and rename based on manual inputs. This results in a mixed string but this creates the following error:
The 'inputs.parameters' of workflow operation 'Copy_folder' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'parameters/nameConflictBehavior' is required to be of type 'Integer/int32'. The runtime value '"12345 Test Power Automate"' to be converted doesn't have the expected format 'Integer/int32'.
This is the action and error
Other folders within the library are of the same mixed format numbers followed by text.
Any help or clues gratefully received. Thanks
Hi Levi.
Many thanks for this and it works. Just need to look for an automatic trigger!
Cheers, David.
Hi @dlawson
Based on your screenshot, I think the problem is that you filled in If another folder is already there with the name you want to change.
Here you need to select options instead of names.
If you want to copy the folder and change the name manually, you need to use Send an HTTP request to SharePoint.
Method: Post
URI: _api/web/GetFolderByServerRelativeUrl('Destination Folder/@{body('Copy_folder')?['DisplayName']}')/ListItemAllFields
Headers: "Accept": "application/json;odata=verbose",
"X-HTTP-Method": "MERGE",
"If-Match": "*"
Body: {
'Title': 'NewFolderName',
'FileLeafRef': 'NewFolderName'
}
I have made a test for your reference:
Best Regards,
Levi
WarrenBelz
146,601
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,942
Most Valuable Professional