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 Apps / Split Function Nesting
Power Apps
Unanswered

Split Function Nesting

(1) ShareShare
ReportReport
Posted on by 4
Hi,
 
i have a function which is extracting pics from a HTML Text and save them via Flow in a document library. I need to check if "img src=" or "img alt=" is in the text. So I have to split twice....but I dont find a working solution to do that. Can you help me pls:
 
If("img src=" in rt_AdminAntwort.HtmlText;
ForAll(
ForAll(Split(rt_AdminAntwort.HtmlText; "img src=" & Char(34) & "d");{Result: ThisRecord.Value}) As imgStrings;
Collect(stringTable2;
{
stringElement: If(StartsWith(imgStrings.Result; "ata:image");
Substitute(imgStrings.Result;
Left(imgStrings.Result; Find(" />"; imgStrings.Result) - 2);
Concatenate("img src="; 'BINAN-TicketITsIMGConv-Alle'.Run(Left(imgStrings.Result; Find(" />"; imgStrings.Result) - 2)).imglink)
)
;
imgStrings.Result
)
}
)
)
 
);;
 
Thx in advance,
Andreas 
I have the same question (0)
  • Fredrik_A Profile Picture
    3,566 Super User 2026 Season 1 on at
    Isnt it easier since you already trigger a power automate flow to save the images, to also make Power Automate find the images? =) 
     
    In that case just send the entire text-box as input to the power automate flow.
  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at
     
    I am sorry I do not understand the ask its not clear.
     
    What does splitting on img src give you? What exactly are you needing to do?
     
    if you split why was it not giving you what you need?
     
  • TheACFatWork Profile Picture
    4 on at
    thx for your reply. 
     
    ForAll(Split(rt_AdminAntwort.HtmlText; "img src=" & Char(34) & "d");{Result: ThisRecord.Value}) As imgStrings - here i am spliting for resulting how many pics are in the HTML Text.
     
    And for every founded Pic I start a flow which saves my pic and return the path. Wich I insert in the HTML Text:
    Substitute(imgStrings.Result;
    Left(imgStrings.Result; Find(" />"; imgStrings.Result) - 2);
    Concatenate("img src="; 'BINAN-TicketITsIMGConv-Alle'.Run(Left(imgStrings.Result; Find(" />"; imgStrings.Result) - 2)).imglink)
     
    The problem is, that a pic can have the "img src=" OR "img alt=" so pics with "img alt" are not splited and not worked through with the Flow. I will need to split the Text if img src OR img alt is found.
     
    Thx and kind regards
    Andreas

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard