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 Automate
Answered

Flow error

(0) ShareShare
ReportReport
Posted on by 2
Helloo community, receive and a happy new year, my bests wishes to all.
I´m preetty new working with PA, now i´m meaking a flow for extract some data from an email, once the email is converted to text, has this estructure:
 
Casa N°:01-01Nombre y Apellido:Luis Alberto Heredia
QuinteroTeléfono:0424-5556476N° de referencia:1234567890Fecha del
pago:07/01/2025Banco emisor:mercantilMonto pagado:3000Mes que está pagando:enero
 
The highlighted words are the ones I need to extract. I´m using the same funtions structure for extract each word, but, when the flow go for the 5th step, gives errors. Whit the avobe words, the funtion work fine. 
 
This is the funtion structure:
 
substring(outputs('Html_to_text')?['body'],add(indexOf(outputs('Html_to_text')?['body'],'N° de referencia:'),17),sub(indexOf(outputs('Html_to_text')?['body'],'Fecha del pago:'),add(indexOf(outputs('Html_to_text')?['body'],'N° de referencia:'),17))) 
 
With this, extracts the "refencia" number, this one may have 9, 10 or 11 digits.
 
Attach the print screen of the error.
 
Thanks for your help. I appreciate it very much
Categories:
I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
     
    I think using split operation can make things simpler 
     
    try this updated expression for capturing the number
     
    first(split(last(split(outputs('Html_to_text')?['body'],'N° de referencia:')),'Fecha del pago:'))
     
     
    Try this and let me know !
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard