Solved

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

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

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

The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
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 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…

735 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