Spliting Address Lines in Power Automate
Hi all!
Hopefully you can help me with the issue I'm currently banging my head against the desk about. I've been building out a flow in automate to create prospect profiles for our development officers. I am able to pull almost everything I need out of NXT with correct formatting EXCEPT splitting address1 and address 2 lines through the “List constituent addresses" action.
What my ideal situation would be pulling the address lines from NXT into automate and then putting each line into its own string so that I can populate each field in my word template to fit this formatting:

If I'm missing something and I can already pull add1 and add2 seperately without pulling the entire address lines field (just like you can with city,state,zip) that would be wonderful! Otherwise, knowing a way to separate these two values out as is would be appreciated. I'm more than happy to share any other pics or insights that would help solve this issue I'm having.
Thank you!
Comments
-
@David Kortes
you can use the split() expression to split your address lines by newline character(s) dynamic content into an array of individual line. Then use [0], [1] to access the first and 2nd line. What you want to consider is IF there are more than 2 lines, what are your plan?Rather than having:
Addr1
Addr2
You can use
Address Line(s):
and split out the address lines dynamic content so it looks like this:If you still want to do the Addr1 and Addr2 route, then:
Addr1: split(addresslines, ‘\\r\\n’)?[0]
Addr2: split(addresslines, ‘\\r\\n’)?[1]if the split on ‘\\r\\n’ doesn't work, you may need to do a workaround, here's one way to do it:
https://medium.com/@saikou9901/split-multi-lines-by-new-line-code-d7de3020454c
1 -
@Alex Wong
Thank you for the quick response! I wasn't able to get \\r\\n to work but the work around did the job. The reason I want to bring the information in this way is to keep an even formatting between each profile created. It's an attempt to not have to touch the document after it is created and most of the records I will be pulling do not have beyond two lines.I'm sure something will break eventually as I still have a lot to learn with automate and all of its quirks. Thank you for this!
1
Categories
- All Categories
- 6 Blackbaud Community Help
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 33 Blackbaud Impact Edge™
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 375 YourCause® from Blackbaud®
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 31 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 19 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group