GetVersions function

Applies to JungleDocs for Office 365.
For JungleDocs for SharePoint 2010-2019 tutorials, click here.

This article describes the formula syntax and usage of the GetVersions function in JungleDocs for Office 365.


Description

Returns a document version list.

Syntax

GetVersions([rowLimit]; [majorOnly]; [ascendingOrder]; [imitateNextVersion])

The GetVersions function has the following arguments:

  • rowLimit   Optional. A value that limits the number of retrieved versions (see example).
  • majorOnly   Optional. A Boolean value. Retrieves major versions only (based on SharePoint versioning system)
  • ascendingOrder   Optional. A Boolean value. Displays versions in the ascending order.
  • imitateNextVersion   Optional. A Boolean value. Displays the version that will be created after the document is saved and closed.

Example

GetVersions(5)

Returns the last 5 document versions.

GetVersions(10; true; true)

Returns the last 10 major versions in the ascending order.

Using GetVersions in a template

To use GetVersions, you need to create a repeated section first. This is a table with nested content controls that allows multiple items to be inserted into it.

1. Create a table, select the second row and add a content control to it by selecting Rich Text Content Control in the Developer tab.

2. Select Properties and enter the function of your configuration, e.g., GetVersions(5) in the Tag and Title fields of the content control. Then, click OK:

3. Inside the row, select a cell and add another content control that will retrieve a column value from the SharePoint list you're using. For plain text columns, insert plain text content control and enter the column name in the Tag field (we recommend to use internal names). If you want to insert an image from a picture column, insert a picture content control. Here's an example with a content control configured to retrieve values from the ModifiedBy column:

4. Add more content controls in the remaining cells and save the template.

Note

Microsoft Office 2010 has a 64 character limit for the Tag field, whereas later versions do not have this limitation.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us