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 / Split String in the li...
Power Automate
Unanswered

Split String in the line and Get only Integer (Error)

(0) ShareShare
ReportReport
Posted on by 522

I have an email coming into the inbox and within this email, I have an header which is

[EXTERNAL SENDER]
Klicken Sie nicht auf Links oder öffnen Sie keine Anhänge, es sei denn, Sie
erkennen den Absender und wissen, dass der Inhalt sicher ist.
Do not click links or open attachments unless you recognize the sender and know
the content is safe.

 

How do I exclude this header and consider only main content in the email body in the "compose".

 

Within this compose I have the below expression due to the header part, I cannot the value of the body and gets the below Error message.

trim(split(split(body('Html_to_text'),'Quote Number - ')[1],'Kind Regards')[0])

 

Unable to process template language expressions in action 'Compose_-_QuoteNumber' inputs at line '0' and column '0': 'The template language expression 'trim(split(split(body('Html_to_text'),'Quote Number - ')[1],'Kind Regards')[0])' cannot be evaluated because array index '1' is outside bounds (0, 0) of array. Please see https://aka.ms/logicexpressions for usage details.'.

 

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Nikhil2 

     

    Could you pls share the output of "HTML to text" action, replacing actual values with sample values (order no etc.).

     

    Thanks

  • Nikhil2 Profile Picture
    522 on at

    @ManishSolanki 

    Please find the outputs below

    Nikhil2_0-1694078235468.pngNikhil2_1-1694078262588.png

     

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    could you pls share it as a text.

     

    Thanks

  • Nikhil2 Profile Picture
    522 on at

    @ManishSolanki As I was testing somehow it solved the issue, but got it new one. I have condition to check if foldername exists but even though folder is not there in the SharePoint. It is saying it exists.

     

    length(body('Filter_Array_-_SubFolders'))

     

    In Condition I am using this expression. 

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
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard