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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract sharepoint ID ...
Power Automate
Answered

Extract sharepoint ID from existing flow

(0) ShareShare
ReportReport
Posted on by 3

Hello Community

 

I already built a running flow to get images collected from PowerApps (and then saved to SharePoint) and save them into a different SharePoint library.

 

As you can see in the image below, the image name consists of several fields built together in Power automate (- is the separator for each field). The red marked box is the Image ID, which also is my issue now.

 

Can i create another column with only the image ID in this library with power automate in the same flow?

 

sharepoint id.png

 

I can post the flow steps if needed

 

Thank you

 

Best regards

Matthias

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Baneworth,

     

    You could use an expression with an nthIndexOf function to find the first instance of -- in the {Name} property. With a substring you can extract the number (assuming it is always 4 characters)

     

    Below is an example:

    substring(item()?['{Name}'], add(nthIndexOf(item()?['{Name}'], '-- ', 1), 3), 4)

     

    name_extract_imageid.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard