Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • dlawson Profile Picture
    4 on at
    Re: SharePoint Parameters Folder Rename

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

    Cheers, David.

  • Verified answer
    v-liwei-msft Profile Picture
    on at
    Re: SharePoint Parameters Folder Rename

    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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,942 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow