?
Solved

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

Posted on 2014-12-19
4
Medium Priority
?
749 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
[X]
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
  • 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
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…

741 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