Skip to main content
Roberty Studio
RPAFunctions

Get property of an object

Get property of an object

Gets the value of a specific property of an object returned by another action. Essential for accessing data of structured objects — such as database records, API responses or items of a loop — extracting only the field of interest without having to write custom code.


Options​

Inform the property of the object​

Enter the exact name of the property you want to extract from the object. For nested properties — that is, objects inside objects — you can use the dot notation to navigate between the levels, such as address.city.

Object​

Select an output field of the object type from a previous action. Only fields that return objects or values of the "any" type are shown as an option.

Returns​

Javascript code​

js
actions["action-id"].value // value of the property accessed in the object (Any)
actions["action-id"].property // name of the property that was accessed (Text)

Field selection​

  • value — value of the object property (Any)
  • property — name of the property accessed (Text)

Rules and Conditions​

  • The Object and Property fields are required.
  • The property name must match exactly the name present in the object — including uppercase and lowercase letters.
  • To access nested properties, use the dot notation separating the levels, such as customer.address.city.
  • If the property does not exist in the object, the value return is empty.
  • Only output fields of the object or any type are listed as options for the Object field.