1. Tasks
  2. Get Template

Tasks

Get Template

Task to retrieve a Template or a specific path within the Template

Basic usage

The below task retrieves a template of the current stub.

loading...

Parameters

templateuuid
required
string

UUID of the template to retrieve : ~~stub.program.templateuuid

path
optional
string

Specific path within the template to return. If provided, only the data at this path will be returned instead of the full template

Example: branches.draft.contexts.default.parts.flow.actions

Result

loading...

Properties

template

Template object retrieved. If a path parameter was provided, only the data at that specific path will be returned. Otherwise, the full template structure is returned.

Examples

Get template.data only

loading...

Result

loading...
TIP

If you would just like to get the current template, specifically the built template, it may be easier to use savedata task instead with a savevalue of ~~program.