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
Unanswered

Save body mail error

(0) ShareShare
ReportReport
Posted on by 40

Hi

i try to save the body mail in the attach file but i have a error

ExpressionEvaluationFailed. L’exécution d’une action de modèle « Apply_to_each » a échoué : le résultat de l’évaluation de l’expression « foreach » « @triggerBody()?['subject'] » est de type « String ». Le résultat doit être un tableau valide.

 

the question is : is it possible to save a body from mail in the file ?

 

Categories:
  • jinivthakkar Profile Picture
    4,187 on at

    @pierrotori as the error suggests, foreach expects an array value and you are passing as string value, hence the error.

    Please let me know what are you trying to do so I can try to help.

  • pierrotori Profile Picture
    40 on at

    i try to save the body message in html, but the body message is not a txt data

    flow_inter.png

    What is the action, that i put to manage the html body message in the sharepoint file ?

  • pierrotori Profile Picture
    40 on at

    i put the body html mail in the file on sharepoint 

    how can i process the html file to extract information between <span and </span> ?

    <html><head>
    </style></head><body bgcolor="white" lang="FR" link="#000052" vlink="#000052" style="word-wrap:break-word"><div class="WordSection1"><p class="MsoNormal"><span style="">&nbsp;</span></p>

    .....

    <span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">FERIT4136221</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">1</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">Facture</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">2143044770</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">original</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">22/01/2022</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">ent1</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">forcFR04341192227 - ent2</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" align="right" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm; text-align:right"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">1819.45</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" align="right" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm; text-align:right"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">147.52</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" align="right" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm; text-align:right"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">1966.97</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" align="center" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm; text-align:center"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">EUR</span></p></td><td style="background:#FFA4A4; padding:6.0pt 6.0pt 6.0pt 6.0pt"><p class="MsoNormal" style="margin-right:0cm; margin-bottom:7.5pt; margin-left:0cm"><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black"><img border="0" width="16" height="16" id="Image_x0020_1" src="cid:image001.gif@01D81135.AF2731F0" alt="erreur" style="width:.1666in; height:.1666in"></span><span style="font-size:9.0pt; font-family:&quot;Lucida Sans Unicode&quot;,sans-serif; color:black">erreur partenaire inconnu dans le carnet des partenaires </span>

    ....

    </a> </p></div></body></html>

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 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard