Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - AI Builder
Answered

Unable to connect power automate flow which has AI Builder

(0) ShareShare
ReportReport
Posted on by 19

Hi,

 

I'm very new to AI Builder and also the power apps . I've developed an AI model which extracts specific information from the PDF File . I want to use that model in a power automate flow because I want to use some other AI Models in the same flow . But when I'm creating the flow, the "Extract information from documents" action is asking for a form in which a dynamic content says ask in Power apps .  (Attached are the screenshots) . When I select the dynamic content , I get the form in the field . 

 

Then in my power apps , I have the attachments control which is basically the input for the AI Builder . I have added a button - on select it has to trigger the AI Builder flow . But I'm unable to achieve this as I'm getting the error in the button on select property . I used this expression "Quoterequestform.Run('Driver invitation form')" which is giving the error - The function Run has invalid arguments. Please check this . A reply would be much appreciated !!

 

Thank you.

Categories:
  • Chaitra_1999 Profile Picture
    19 on at
    Re: Unable to connect power automate flow which has AI Builder

    Hi team, 

     

    Can anyone please help with the problem ? I just need to change the data type from Boolean to string.

  • Chaitra_1999 Profile Picture
    19 on at
    Re: Unable to connect power automate flow which has AI Builder

    Hi @v-xiaochen-msft ,

     

    I resolved the issue by removing the power app keyword. Thank you very much for your help. Although, I have one more situation now which I'm finding hard to resolve. 

     

    I want to get the output from the power apps as a string but I'm getting it as the boolean. I assigned the output to a variable "CompanyContribution" and added a button to know the value of the output . But it gives me true or false instead of the value . Please help in changing the data type from boolean to string. 

  • Chaitra_1999 Profile Picture
    19 on at
    Re: Unable to connect power automate flow which has AI Builder

    Hi @v-xiaochen-msft ,

     

    I'm getting the same error when I changed the name . 

  • v-xiaochen-msft Profile Picture
    on at
    Re: Unable to connect power automate flow which has AI Builder

    Hi @Chaitra_1999 ,

     

    The flow name is wrong in your formula.

    vxiaochenmsft_0-1673937007569.png

     

    Best Regards,

    Wearsky

  • Chaitra_1999 Profile Picture
    19 on at
    Re: Unable to connect power automate flow which has AI Builder

    Hi @v-xiaochen-msft ,

     

    Thank you so much for your reply. I built first 3 steps of your flow successfully. But the last step is giving me the following error . (Please check the attached screenshot ) . I have added the power automate flow which is named as AI Builder models

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Unable to connect power automate flow which has AI Builder

    Hi @Chaitra_1999 ,

     

    Suppose you want to extract data from a PDF file and the PDF is uploaded by the user to the attachment control,

    I made a sample for you.

     

    1\ Upload the pdf file to attachment control

    vxiaochenmsft_0-1673935177930.png

    2\ Add an image control and hide it in screen.

    vxiaochenmsft_1-1673935221525.png

     

    3\ Create flow

    vxiaochenmsft_2-1673935299964.png

     

    4\ Add a button to call flow

    vxiaochenmsft_3-1673935319254.png

    'PowerApp->Initializevariable'.Run(Substitute(JSON(Image1.Image ,JSONFormat.IncludeBinaryData),"""",""))

     

    Best Regards,

    Wearsky

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1