Sharepoint library

Pavel 21 Reputation points
2022-05-14T13:58:49.63+00:00

Hi!
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".
201981-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".
201945-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.
201982-screenshot-196.png
201908-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?
Thanks!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,635 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,963 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,955 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 25,861 Reputation points Microsoft Vendor
    2022-05-16T08:08:05.85+00:00

    Hi @Pavel ,
    According to your description, you can try to use Power Automate to achieve your requirement, we suggest that you can go to the Microsoft Power Automate Community for professional help.
    Thank you for your support and understanding.
    Thanks,
    Yanli Jiang

    ===========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.