Solved

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

Posted on 2014-12-19
4
564 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
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…

786 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