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

Community site session details

Session Id : pwyYQ0PSG8sNyB3cfQoR/O
Power Automate - General Discussion
Answered

Split email subject to get id

Like (0) ShareShare
ReportReport
Posted on 9 Jun 2020 22:30:38 by

Hi, everyone!

I made a flow where people send an email with a document. Flow saves it in a Sharepoint library and then updates an excel database with the link of the document. In order to do this, I use the id of the solicitude (whick is in the subject of the email) as key of the rows.

The flow basically takes the subject of the email (Solicitud de ingreso a cartilla médica - id:##) , saves it into a variable, then it splits the subject so as to obtain only the id using the following formula : 

substring(outputs('Redactar_3'),indexOf(outputs('Redactar_3'),'.'),sub(length(outputs('Redactar_3')),indexOf(outputs('Redactar_3'),'id:')))
 
My flow fails with the following message
id 2.JPG
 
This is the flow
id 1.JPG
I don't understand this error, could you help me?
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on 09 Jun 2020 at 23:51:14
    Re: Split email subject to get id

    Thank you for the quick reply!

  • Verified answer
    abm abm Profile Picture
    32,506 Most Valuable Professional on 09 Jun 2020 at 22:38:54
    Re: Split email subject to get id

    Hi @Anonymous 

     

    If you looking to get the id use the expression

     

    image.png

     

    Expression I used is as follows:

    last(split(outputs('Compose_2'),':'))
     
    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2