Skip to main content

INSERT_OBJECT

Insert object references or templates into the current document using a DTX template.

Prime: Supports paths, UUIDs, and LOIDs (auto-formatted). Options insertionType, full, and templateType are ignored (warnings logged).

At a glance

  • Category Editor
  • Version: 1.2.0
  • Applications: all
  • Scope: story, report

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
inOptional input variable. String values are treated as path, arrays as referenceListIds.NonefalsetrueNoneNone
pathSingle object path to insert (convenience option).NonefalsetrueNoneNone
referenceListIdsList of object identifiers (paths, loids, or uuids).NonefalsetrueNoneNone
referenceListObjectsList of full object entries to insert when full is true.NonefalsetrueNoneNone
fullIf true, uses referenceListObjects as full object payload.falsefalsefalseNoneNone
withPathWhen using IDs, indicates that identifiers are paths.truefalsefalseNoneNone
insertionTypeInsertion type for Swing (insert, embed, link). Prime ignores this option.insertfalsefalseNoneNone
templateNameTemplate name to use for insertion.NonefalsefalseNoneNone
templateTypeTemplate type (Swing only).NonefalsefalseNoneNone
forceWriteWrite content even if the document is considered read-only.NonefalsefalseNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
listOptional list of object IDs/paths used when referenceListIds is not provided.Nonefalsefalse

Examples

Insert object

- step: INSERT_OBJECT
path: "/content/picture/chart.png"

Insert object with template

- step: INSERT_OBJECT
path: "/content/picture/chart.png"
templateName: "Insert Image as Interactive Figure"

Insert multiple objects

- step: INSERT_OBJECT
in:
- "33$1.0.30412980"
- "/Production/Product/Pictures/Hold/image.jpg"
templateName: "Inline image"

Insert object list by IDs

- step: INSERT_OBJECT
referenceListIds:
- "/Globe/Images/Foreign/11.obama_family.jpeg"
- "/Globe/Images/Foreign/1420087334.jpg"
withPath: true
insertionType: insert

See Also

General Resources: