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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Forms to PDF to Email Help - First Flow

(0) ShareShare
ReportReport
Posted on by 8

I am trying to create a flow from a form where the response is saved as a pdf and then emailed to multiple recipients. When I test with an actual response it gets jammed up in the 'select' action where I used the createArray function to pull the information to then create an HTML table. 

 

Here is the error details: 

Unable to process template language expressions in action 'Select' inputs at line '0' and column '0': 'The template language function 'createArray' expects a comma separated list of parameters. The function was invoked with no parameters. Please see https://aka.ms/logicexpressions#createArray for usage details.'.

 

And here is the snap shot of the parameters:

HRAmy_0-1712611998907.png

This is my first flow, so I'm not sure where to look.  Any advise on where to look to fix the error would be appreciated. Please let me know if more information is required. 

I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Forms to PDF to Email Help - First Flow

    Can you show your createArray expression? Why are you creating the array by the way?

     

     

  • HRAmy Profile Picture
    8 on at
    Re: Forms to PDF to Email Help - First Flow

    I'm creating the array like this because I've never done it before and not sure a better way? What do you need to see?

    HRAmy_0-1712613680534.png

     

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Forms to PDF to Email Help - First Flow

    Do you just need to print the form responses into a PDF?

    Select is used only when you are dealing with Table or Array

     

  • HRAmy Profile Picture
    8 on at
    Re: Forms to PDF to Email Help - First Flow

    So I have a form with mixed text and multiple choice responses. When someone completes that form I need a pdf created and then that pdf to be emailed to a couple recipients.

    It's my understanding that i need to pull the answers into an html table and then have that table converted to pdf.

     

    HRAmy_0-1712672861677.png

    HRAmy_1-1712672875597.png

    Is there a better way to accomplish the same goal?

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Forms to PDF to Email Help - First Flow

    @HRAmy 

    The form

    SudeepGhatakNZ_0-1712707840501.png

     

    The PDF Output

    SudeepGhatakNZ_1-1712707861831.png

     

    Flow

    SudeepGhatakNZ_2-1712708007696.png

     

    SudeepGhatakNZ_3-1712708029377.png

     

     

    The flow is attached for your reference

     

  • HRAmy Profile Picture
    8 on at
    Re: Forms to PDF to Email Help - First Flow

    Sorry, I'll get the hang of this!
    This is what it is looking like and i don't have a "compose-styles"? If i am understanding correctly, i need to complete the Initialize variable-compose-apply to each combination multiple times and then how does it all end up in a neat little compose box like you have?

    HRAmy_0-1712784111227.png

    HRAmy_1-1712784135513.png

     

    HRAmy_2-1712784185171.png

    HRAmy_3-1712784197440.png

    HRAmy_4-1712784211724.pngHRAmy_5-1712784222542.png

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Forms to PDF to Email Help - First Flow

    Compose -Styles is nothing but a Compose action. I've assigned it a name for clarity. It's essential to avoid referencing multi-choice values within the Compose. Instead, refer to the variables directly to prevent the necessity of an Apply to Each loop, which may have been inadvertently introduced due to the addition of a multi-choice field.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 647 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 350 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard