Which Variable to Use in an Assignment Step

Which Variable to Use in an Assignment Step

The Good Enough Consultant
The Good Enough ConsultantMar 20, 2026

Key Takeaways

  • Update only changed fields to reduce DML impact.
  • New variable avoids overwriting unchanged data.
  • Cleaner flow design improves maintainability.
  • Minimizes risk of unintended data changes.
  • Improves performance by limiting record size.

Summary

In a non‑record‑triggered Salesforce flow, the Get step returns a record variable (Get_Account) that stores all fields automatically. Updating the Phone field directly on Get_Account causes the flow to write every field back to the database, even those unchanged. Creating a fresh record variable, assigning the Id and the new Phone value, limits the update to that single field. This approach results in cleaner, more efficient flow execution.

Pulse Analysis

Salesforce administrators often rely on the Get element to pull complete records into a flow, trusting the platform’s automatic field storage. While convenient, this default behavior can unintentionally expand the data payload sent back during an Update operation. \n\nA more disciplined pattern separates the source record from the update payload.

By instantiating a new record variable, copying only the Id and the fields that truly need modification, the flow sends a minimal payload to the database. This selective update not only conserves DML limits but also safeguards against accidental data loss, especially in orgs with complex validation rules or integration points that rely on unchanged field values.

\n\nImplementing this technique is straightforward: after a Get, create a second record variable, assign the original Id, set the desired field values, and use that variable in the Update element. Teams should audit existing flows for unnecessary full‑record updates and refactor them accordingly. Over time, the cumulative savings in processing time and limit consumption can be significant, enabling smoother releases and more reliable user experiences across the platform.

Which variable to use in an assignment step

Comments

Want to join the conversation?