Forum Discussion

yenijc's avatar
yenijc
Copper Contributor
Dec 08, 2020

Re: Rename Folder Error

Hello GACVizDesign 

 

You can use this rest in your Uri: 

_api/web/lists/getbytitle('[Document Library Name Here]')/items([Folder ID Here])

Use the itemId return from the Copy Folder action as the Folder ID.

 

In the Body, you should also specify the metadata type. You can check the screenshot below.

 

 

 

 

5 Replies

  • GACVizDesign's avatar
    GACVizDesign
    Copper Contributor

    Thank youyenijc !

    I cannot seem to figure out how to pull the ItemID / FolderID from the previous step... any thoughts on how to facilitate that step??  Thanks again!

    • yenijc's avatar
      yenijc
      Copper Contributor

      Hi GACVizDesign ,

       

      When you put your cursor in the Uri, there are suggestions in what you can add. Under Dynamic content, look for the previous action step's name which is Copy Folder, then select ItemId. 

       

      If you have many actions already in your flow and it's difficult to find the ItemId, you can just search it.

       

       

      • GACVizDesign's avatar
        GACVizDesign
        Copper Contributor

        yenijc 

        Thank you again - you've been a big help!  I think I'm getting super close... However, I cannot for the life of me get past the error:

         Here is the latest flow:

         Any thoughts?  Thank you again!

Resources