HubSpot Connector 23.3

# getNextSection

The `getNextSection` method returns the next section of a document (if the document has been divided into sections).

The document object passed to the script's `handler` function represents the first section of the document. This means that the methods described in this section read and modify only the first section.

Calling `getNextSection` on the LuaDocument passed to the `handler` function will always return the second section. To perform operations on every section, see the example below.

When a document is divided into sections, each section has the same fields. The only difference between each section is the document content (the value of the `DRECONTENT` field).

## Syntax

    getNextSection()

## Returns

(LuaDocument) A LuaDocument object that contains the next DRE section.

## Example

To perform operations on every section, use the following script.

    local section = document
    while section do
    	-- Manipulate section
    	section = section:getNextSection()
    end

Copyright 2023 Open Text
Version 23.3 | Last updated June 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL HubSpot Connector 23.3

Topic Title: getNextSection