Hello everyone
I already have the AI builder models. And need to build a flow that tags images uploaded into sharepoint using the models.
AI builder models categorize images. The labels are ones such as "outdoor or indoor", "with cables or without cables", "empty room or not empty room" etc.
Flow testing shows that the models really do predict the tags. Uploaded room full of stuff and got correctly predicted as "not empty room".
Finally, I want to add an "not empty room" tag to the image on sharepoint. And find the image using the sharepoint search bar like microsoft is already doing here .
Have not found anything related to that yet. Hope you can help me at this point.
Many thanks kind regards
thanks Antrod
Will do that.
If you manage to create the flow that can create the tag automatically I guess that makes sense but I don't know if that's possible, you can give it a try 🙂
If you are struggling creating that image tag, you can try to ask the question in the "Building flow" section, some flow experts may help you Building Flows - Power Platform Community (microsoft.com)
Let us know how your automation journey is going, I'm curious to see your scenario up and running 🙂
Hi @Antrod
If I want to scale it up for - say 1000 images - I could make the following flows?
1. flow that creates the tag manually
2. throwaway flow to get the defined value in sharepoint "funny format"
3. update items flow where I replace
replace with
Does it make sense for 100plus images?
I am inclined to give up on this image library ins sharepoint idea where each uploaded image gets tagged automatically.
Thanks for your help and answers 🙂
Hi @Teflonreis ,
Indeed if you try to add a string in the image tags it won't word because it's not recognized by SharePoint. You need to first create your tag manually in your SharePoint library, then create a throwaway flow just to see how SharePoint defined the value for it (See second bullet point in my previous answer) and then you get the name that you value that you will be able to use.
In my case I created in SharePoint the tag "Not empty room" and SharePoint created a value called "Not empty room|a08c1622-..." this is th value you should use in your main flow to file in the image tags in the Update file properties action.
Hi @Antrod
I have a follow up question.
In your workaround, the "image tags value" in "Update files properties" has an interesting format.
In my flow, I tried not adding any tags to my images manually, but with the following flow.
The format and output of the AI builder predict action should be a simple string
The prediction is "no cabling and trays". Inserted it into Update files properties "Image tags" but gives me a formatting error.
But received the error
Do you have any suggestions?
Thank you so much for the support.
Thanks a lot. Will get back to it with help of your suggestions 😄
It should be possible yes, Power Automate is broadly used to process batches of data.
But the best thing is to try it 🙂 You can use the trigger detecting that a file is created in your SharePoint folder and for each file run the AI Builder model and the update file properties.
Let us know if you have more questions!
Hello @Antrod
Thanks for the quick response. Very interesting approach to update file properties in flow!
In the question I am talking about a single image. In real life, I am thinking of hundreds of images and 10 tags per image. From your experience, is it feasable for me in power automate?
Want to automate the tagging process so far that when somebody adds an image, it gets tagged automatically. And I can search it using the search bar.
Hi @Teflonreis ,
Thanks for reaching out, very interesting scenario! It's indeed not easy to find how to update image tags in SharePoint from Power Automate. I managed to do it with a little trick:
Hope that helps!
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional