Skip to main content

Notifications

Power Automate - Building Flows
Answered

Passing an attachment to ai builder issue

Posted on by 122

Hi,

I am trying to extract an email attachment and passing it to an action to use my model i build to read the pdf files. Having this error below.

 

powerdevkris_0-1669216001243.png

 

Here is my flow. I have created an object type variable to store the attachment name and content type.

 

powerdevkris_1-1669218127546.png

The data behind the variable is in this format

 

[{"Name":"IMG_20221115_0002.pdf","ContentBytes":"JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PCAKL0NyZWF0b3IgKENhbm9uIFNDMTAxMSkKL0NyZWF0aW9uRGF0ZSAoRDoyMDIyMTExNTEzNDEyNS0wNicwMCcpCi9Qcm9kdWNlciAoSUogU2NhbiBVdGlsaXR5KQo+PiAKZW5kb2JqCjIgMCBvYmoKPDwgCi9QYWdlcyAzIDAgUiAKL1R5cGUgL0NhdGFsb2cgCj4+IAplbmRvYmoKNCAwIG9iago8PCAvV2lkdGggNzQgL0hlaWdodCAxMDYgCi9CaXRzUGVyQ29tcG9uZW50IDggL0NvbG9yU3BhY2UgL0RldmljZVJHQgovRmlsdGV

 

 

  • powerdevkris Profile Picture
    powerdevkris 122 on at
    Re: Passing an attachment to ai builder issue

    Thanks @Sundeep_Malik! this step have worked. Appreciate the response.

  • Verified answer
    Sundeep_Malik Profile Picture
    Sundeep_Malik 6,488 on at
    Re: Passing an attachment to ai builder issue

    Hey @powerdevkris 

     

    I am not sure the above method would work. Instead can you try this thing:

     

    Save the file to SharePoint library or onedrive by create file action.

     

    After that using get file content action get th content and then pass the content you get from that action to the AI Builder.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard