Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

HTML tags and line breaks in Sharepoint 2013 looping workflow string builder

Posted on 2014-12-19
4
592 Views
Last Modified: 2015-01-14
I have a looping workflow in SharePoint 2013. This workflow retrieves multiple records into single variable by something like this:

Within Loop with Condition:
Set Variable: [%ItemsHTML%] to
[%ItemsHTML%]
<tr><td>[%var1%]</td><td>[%var2%]</td><td>[%var3%]</td></tr>

This works and brings only 1 record

I am trying to format this into presentable format using HTML tags in String Builder within workflow. While doing that I am only getting first record and nothing gets displayed past that record. If I remove the HTML tags it works just fine.

Any suggestions?
0
Comment
Question by:Snehal Rana
  • 3
4 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 40532547
Should there not be a + after [%itemsHTML%] and the rest of the declaration?
Also (can't test on this PC) should the html tags not be within quotes?
Also make sure that all html is on a single line, SPD does not like html that has line breaks in it
0
 
LVL 1

Accepted Solution

by:
Snehal Rana earned 0 total points
ID: 40541561
Hi QPR,
Sorry for the delayed response. I was able to resolve this by changing my logic a bit. Your suggestions are all good. Though I didn't have to add + after [%itemsHTML%]. I don't have to use the quotes. I did make sure that the all the HTML are one line.
I added <table> before <tr> and </table> after </tr>. I also had to hit "Enter" after [%itemsHTML%] That did the trick
0
 
LVL 1

Author Comment

by:Snehal Rana
ID: 40542006
I was able to resolve my own issue. Please close this question
0
 
LVL 1

Author Closing Comment

by:Snehal Rana
ID: 40548536
The comment suggested by the expert - QPR were all good though, I changed my logic a bit and also as per my solution listed above it solved my issue. I thank QPR for his/her suggestion
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question