Ask AI
Skip to main content

Update an object

Function: Update an object

This function allows you to modify an existing collection of information (an "object") within your no-code application. You can use this to update data that you're working with, such as customer details, product specifications, or temporary data structures, before storing it in a database, sending it to an API, or using it in further logic. The original object will be directly changed with the new information you provide.

Input,

  • Existing object: This is the collection of information you want to update. You can select an object that is already available in your application's current context.
  • Overwriting values: This is a new collection of information that contains the specific fields and their updated values you wish to apply to the "Existing object." You can either manually define these values or select another object from your application's context. This input is required for any changes to occur.

Output,

This function does not produce a new output object. Instead, it directly modifies the "Existing object" you provided with the "Overwriting values." The updated "Existing object" will then be available for subsequent steps in your workflow.

Execution Flow,

Real-Life Examples,

Example 1: Updating a Customer's Contact Information

  • Inputs:
    • Existing object: \{"CustomerID": "CUST001", "Name": "Alice Smith", "Email": "alice.s@example.com", "Phone": "555-1234"\}
    • Overwriting values: \{"Email": "alice.smith@newmail.com", "Phone": "555-5678"\}
  • Result: The "Existing object" (customer record) is updated to \{"CustomerID": "CUST001", "Name": "Alice Smith", "Email": "alice.smith@newmail.com", "Phone": "555-5678"\}. The customer's email and phone number are now current.

Example 2: Adjusting Product Stock Levels

  • Inputs:
    • Existing object: \{"ProductID": "PROD005", "Name": "Wireless Mouse", "Price": 25.99, "Stock": 150\}
    • Overwriting values: \{"Stock": 145\}
  • Result: The "Existing object" (product details) is updated to \{"ProductID": "PROD005", "Name": "Wireless Mouse", "Price": 25.99, "Stock": 145\}. The stock level for the wireless mouse is reduced by 5 units.

Example 3: Adding a New Field to a Temporary Data Record

  • Inputs:
    • Existing object: \{"OrderID": "ORD789", "Status": "Pending", "TotalAmount": 120.50\}
    • Overwriting values: \{"ShippingMethod": "Express", "EstimatedDelivery": "2023-10-26"\}
  • Result: The "Existing object" (order record) is updated to \{"OrderID": "ORD789", "Status": "Pending", "TotalAmount": 120.50, "ShippingMethod": "Express", "EstimatedDelivery": "2023-10-26"\}. New shipping information is added to the order.