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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Building flow to find ...
Power Automate
Unanswered

Building flow to find string in converted PPTX doc

(0) ShareShare
ReportReport
Posted on by 2

Trying to search text of PPTX for specific string (tech blueprint). Since you can't seem to use get file content alone as it returns binary I'm using Convert to PDF & Get PDF Text Layer

 

@contains(toLower(outputs('Get_PDF_Text_Layer')?['body/TextLayer']),'tech blueprint')

 

Says expression isn't valid, any suggestions?

Categories:
I have the same question (0)
  • AutomatingMyJob Profile Picture
    2 on at

    So I changed to 

    contains(tolower(outputs('Get_PDF_Text_Layer')?['body/TextLayer']),'tech blueprint'

    and it saves, but then I get error:

    InvalidTemplate. Unable to process template language expressions for action 'Check_for_Tech_Blueprint' at line '1' and column '30734': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Boolean'.'.

     

    Of course I'm trying to capture any case of the string with the ToLower expression.

  • rrovira Profile Picture
    Microsoft Employee on at

    Hello, @AutomatingMyJob!

     

    I could be wrong, but I think the "@contains" is what's returning the boolean and the Get PDF Text Layer requires a "A Base64 encoded representation of the PDF file to be processed." as you can see here Get PDF Text Layer – Encodian Customer Help. Could you try creating a variable within a conditional that uses the  @contains(tolower(outputs('Get_PDF_Text_Layer')?['body/TextLayer']),'tech blueprint')

     

    I'll keep researching, if I find anything useful I'll be sure to post it immediately!

    Cheers

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard