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 / Populate a Word templa...
Power Automate
Answered

Populate a Word template (adding a new line)

(0) ShareShare
ReportReport
Posted on by 3

Hello everyone, 

 

I'm hoping to get some advice on how to add a new line when populating a Word template based on a simple condition. 

I have a line with three addresses in my template: 

Address_1 Address_2 Address_3 

 

What I would like to do is to move Address_2 and/or Address_3 onto a new line if their value is not empty (if it is empty, do nothing). 

For instance, if my user fills in Address_1 and Address_2 in my form, the template should look like: 

Address_1 

Address_2 

 

Is this achievable? 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @MarcusJames 

     

    Declare a string variable as string type and press enter key under value. Capture the Form address response. Use the Split expression to split the address and append with new variable (Enter Key). Finally map the output to word template.

     

    Thanks

  • gingerclaire Profile Picture
    14 on at

    I have the same issue - could you please explain in more detail to me (a beginner) maybe with some screenshots how i could do this please?

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @gingerclaire 

     

    Could you please create a new thread and explain your issues?

     

    Thanks

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard