Use the SetProperties component

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 1 minute to read
  • Set multiple properties within a JSON object by using the SetProperties component in the RPA Desktop Design Studio. You can also override a property within the JSON object.

    Before you begin

    Role required: none

    About this task

    To configure the properties of the SetProperty component, see Properties of the JSON utilities.

    Procedure

    1. In the Toolbox pane, navigate to Utilities > JSON.
    2. Drag the SetProperties component to the Design surface.
    3. Click the component settings icon (Component settings icon.).
    4. Click the add property icon (Add property icon.).
    5. Enter the property name.
    6. Repeat the steps to add more property names.
    7. Click OK.
    8. To provide the values for the property names, see Configure port properties.
    9. Optional: Connect the data and control ports of the SetProperties component to the corresponding ports of the other components as described in the following table.
      Port type Port name Data type Purpose of connection Default value Mandatory? Notes
      Data In JsonObject Object Takes a JSON object. No default value No The properties that you set in this component is added to this JSON object.
      Data In Override Boolean If True, the component overrides an existing property in the JSON object with the property that you specify. Else, if False, it doesn't override any property. No default value No
      Data In Name of the port is the same as the name of the property that you added in the component settings. Object Takes the value of the property name. No default value No
      Data Out Return Object Returns the JSON object. Not applicable Not applicable
    10. Optional: To test the component, right-click the component bar and then click Run From Here.