Contact us
View as Markdown
Ask AI

Open this page in an AI assistant with a ready-made prompt.

Opens a third-party service and shares a pre-filled prompt containing this public page URL, its product documentation URL and /llms.txt. No VirtoSoftware account or tenant data is included. Provider terms and privacy policies apply. Verify answers against the linked documentation.

OpenAI terms · OpenAI privacy policy · Anthropic terms · Anthropic privacy policy

Generate Report

This activity generates a text report from filtered list items as a data source.

The activity loads selected items from the list, creates a text report (see schema below), and stores the result in a text variable. You can use HTML tags to format the report.

This activity can be useful in many scenarios, such as:

  • Creating a report of a user’s active jobs, adding it to an email body, and sending the email.
  • Creating a client incidents report, adding it to an email body, and sending it to the client.
  • Generating an administrator’s warnings report, adding it to an SMS message, and sending it.
  • Creating dynamic CAML queries.
  • Generating dynamic email, SMS, or instant message contact lists.
  • Creating any text-based documents (e.g., HTML, XML).

Report schema:

[Header]
[Row for List Item 1]
[Row for List Item 2]
…
[Row for List Item N]
[Footer]

To display field values from the current list item in the Row Template, use the <%FieldName%> construction. This is an active text marker: the activity identifies the marker, retrieves the field value, and replaces the marker with the value in text format.

For example, if the Row Template is:

User '<%First Name%>'. His email is '<%E-mail Address%>'.

and the value of the “First Name” field is “Frank” and the “E-mail Address” field is frank@mycompany.com, the activity generates the following string in the report:

User 'Frank'. His email is 'frank@mycompany.com'.

You can use <%FieldName;#NetFormat%> to format field values. For instance, <%Start Date;#D%> formats the date as “Monday, June 15, 2009” for a long date output.

From version 6.1.13.5, how field values are inserted depends on the text that you type in the header, the row template and the footer together:

  • Report with markup, such as HTML, XML or a dynamic CAML query: the text contains a tag, that is a < followed by a Latin letter, /, ! or ?. Field markers such as <%Title%> do not count as tags. Field values are encoded: &, <, >, " and ' become &amp;, &lt;, &gt;, &quot; and &#39;. A value with markup, for example the title Q1 <draft> & notes, is shown as typed and cannot change the look of the report or add links or pictures to it.
  • Report without markup, such as the text of an SMS <%Title%> is ready or a list of addresses <%E-mail Address%>;: values are inserted as typed, only < and > become &lt; and &gt;. Smith & Co stays Smith & Co, and o'neil@example.com stays as it is. If such a report is used outside HTML, a value with < or > shows &lt; or &gt;.

To have the values encoded fully, put any tag into the header, the row template or the footer. The tags that you type there format the report as before. Letters of any language, line breaks and the text of rich text fields look as before. In version 6.1.13.4, the values were encoded fully in every report, also in a report without markup.

Generate Report activity building a text report from current list items in the SharePoint Workflow Designer

SharePoint Workflow Designer Phrase

Generate report using this header, this row template, this footer from all items in current list and store result in variable.

Parameters

ParameterDescription
this headerOptional. The template for the heading section of the report.
this row templateOptional. The template for the report rows. Use the <%FieldName%> construction to resolve field values from the current list item. FieldName can be the field display name, field ID (GUID), or field index (int).
this footerOptional. The template for the footer section of the report.
AllOptional. List item filter. The filter string supports View Name, View ID, and CAML string (<Where>...</Where>). An empty filter returns all items. Use <OrderBy>…</OrderBy> to sort list items.
current listOptional. Source list. Default value is the current list.
Updated on November 30, 2026