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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Assign an index to the...
Power Automate
Unanswered

Assign an index to the document from the list and move it to the correct folder in the library in SharePoint Online

(0) ShareShare
ReportReport
Posted on by 87
I've a library "Upload Library", where I upload the images (PNG, JPG, BMP, GIF). I choose the category from drop-down menu. For example "PNG".
Screenshot_193.png
Then, based on the value in the Category field, the file is assigned an ID/type by concatenation of the Category fields and the value of the corresponding number in the Index_List. For example "PNG_0". After that, 'one' will be added to the number in the sheet and the next file with this extension will have Type/ID "PNG_1".
Screenshot_195.png
The file should move to the correct folder in the library "Destination_Library", according to the specified category. If the folder doesn't already exist, create a new one.
Screenshot_196.png
Screenshot_194.png
So, my question is, how can we choose the right number from the list "Index_List" to set the desired Type/ID for the file. And if we create a new category, how to add it to this sheet and take the number? What actions in PA should I use?
Thanks!
Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @Pavel48n0sh query the index list first, get the current count, add 1 to the count and then hold the new value in a variable.

    Then from the current item you can get the values like PNG and others.

    In compose then concatenate the values - Currentvalue_variable(count+1) = PNG_Number

    Move/copy the file as per your requirement and use update file properties and assign the compose value to IDTypes column.

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard