web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint Parameters ...
Power Automate
Answered

SharePoint Parameters Folder Rename

(0) ShareShare
ReportReport
Posted on by 4

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

 

dlawson_0-1665679562571.png

 

 

Other folders within the library are of the same mixed format numbers followed by text.

 

Any help or clues gratefully received. Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-liwei-msft Profile Picture
    Microsoft Employee on at

    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. 

    vliweimsft_2-1665729990694.png

     

     

    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:

    vliweimsft_1-1665729900380.jpeg

     

    Best Regards,

    Levi

     

  • dlawson Profile Picture
    4 on at

    Hi Levi.
    Many thanks for this and it works. Just need to look for an automatic trigger!

    Cheers, David.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 780

#2
Valantis Profile Picture

Valantis 668

#3
Haque Profile Picture

Haque 601

Last 30 days Overall leaderboard