For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

OBJECT_CONSTRUCT() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Creates a Variant object from the list of key/value pairs in the arguments list

Syntax​

OBJECT_CONSTRUCT(key1, value1 [, key2, value2, ...])

Parameters​

ParameterDescriptionData TypeRequired
key_value_pairsAlternating keys and values.AnyYes

Notes​

  • The keys must be literal strings
  • The types are inferred from the selected values

Example​

SELECT
OBJECT_CONSTRUCT('name', full_name, 'id', id)
FROM
rippling.employee.Employee
LIMIT
5;