Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Removing blank lines in a Dynamics Workflow

Posted on by 202

Hi everyone

I've created a Workflow in Dynamics Online which merges a postal address as shown below:

pastedimage1644233715627v1.png

If any of the fields do not contain data (quite commonly the Street 2 and Street 3 fields), then I get blank lines in the address output of the Workflow (the Workflow basically sends out an email). So, for example I would get:

1 High Steet


London
SW1R 5ZZ

What I really want to see is:

1 High Street
London
SW1R 5ZZ

I've read about Regex data, but have absolutely no idea where to put this!

Any help that you could provide would be much appreciated.

Many thanks
Jon

  • JonClay Profile Picture
    JonClay 202 on at
    RE: Removing blank lines in a Dynamics Workflow

    Thanks so much!

  • Verified answer
    RodRodriguez Profile Picture
    RodRodriguez on at
    RE: Removing blank lines in a Dynamics Workflow

    Howdy Jon,

    It looks like someone else also had a similar question.  Take a look at the two different ways they solved the problem in this post:

    powerusers.microsoft.com/.../283319

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans