Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
No Result
View All Result
Home Articles

Salesforce Summer’24 Release Notes | Flow Actions

Antonis Melakis by Antonis Melakis
August 1, 2024
in Articles, Release Notes
0 0
0
Salesforce Summer’24 Release Notes | Flow Actions
0
SHARES
17
VIEWS
Share on FacebookShare on Twitter

1. Lock and Unlock Records with an Action

The new Lock Record action can now lock or unlock a record while also specify who can edit the record while it’s locked.

How: In Flow Builder, add an Action element to your flow. In the New Action window, search for Lock Record, and then select Lock Record. Alternatively, select Lock Record action element by start typing in search box Lock Record.

Input Values
Action: Required. Specifies the action to perform on the record. Valid values are Lock and Unlock
Record ID: Required. The ID of the record to be locked or unlocked
Allowed ID: Optional. The ID of a user, group, queue. or user role record that represents who can edit the record while it’s locked

Considerations
1. An attempt to lock a record that’s already locked results in an error with the UNABLE_TO_LOCK_RECORD error code
2. A system admin, the user who locked a record, or someone who’s an allowed user for the locked record can unlock the record. An attempt by any other user results in an error with the INSUFFICIENT_ACCESS_OR_READ_ONLY error code
3. If a record is locked with this action and the record is submitted to an approval process, then the approval process overwrites the record lock, making the allowed users specified by this action to no longer being able to edit the record
4. The approval process can be interrupted when Lock Record action unlocks a record locked by the approval process


Example: Build a flow that will lock/unlock an account

To create the flow and button:

  • Create a screen flow
    • Create a recordId input variable in order to get the Id of the account triggering the flow
    • Add a Screen element with a toggle element where the user will be able to choose if they want to lock or unlock the record
    • Add a Lock Record action element with the following input values
      • Action: a formula resource where its value will be Lock or Unlock, depending on the value of the above toggle element
      • Record ID: the record id of the triggering account
      • Allowed ID: no value. Only system administrators or users with modify all permission can edit this record while it is locked
    • Add a fault path to the Lock Record action and connect to a Screen element where the error will displayed to the user if occurred
    • Activate the flow
  • Create an action that will trigger the flow on the account object
  • Add the action on the account page

To test the solution:

  • Open an account and click the button to lock it
  • Edit the account with a non-allowed user. An error message is displayed preventing you from save the account
  • Open a locked account and click the button to lock it again. An error message is displayed preventing you from locking and already locked account
Previous
Next New Toggle for Flow Action Inputs with Explicit Default Values
Tags: Flow ActionsSalesforce FlowSalesforce Summer '24 Release Notes
Previous Post

Meet Einstein Service Agent: Salesforce’s Autonomous AI Agent to Revolutionize Chatbot Experiences

Next Post

Salesforce Announces Partner Connect for Tech Channel Sales: Real-Time Visibility on Shared Deals Across CRMs

Antonis Melakis

Antonis Melakis

Next Post
Salesforce Announces Partner Connect for Tech Channel Sales: Real-Time Visibility on Shared Deals Across CRMs

Salesforce Announces Partner Connect for Tech Channel Sales: Real-Time Visibility on Shared Deals Across CRMs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Salesforce Spring’25 Release Notes | Flow Extensions and Management
  • Salesforce Spring’25 Release Notes | Flow Builder Run-Time Changes
  • Salesforce Winter’25 Release Notes | Screen Flow Updates
  • Salesforce Winter’25 Release Notes | Flow Builder User Experience Updates
  • Salesforce Spring’25 Release Notes | Flow Builder User Experience Updates

Recent Comments

No comments to show.

Tags

Analytics Apex AppExchange Artificial Intelligence Automation Awards and Recognition Configuration Customization Data Development Digital Transformation Fields Flow Actions Flow Builder Flow Builder Updates General Enhancements General Mobile Updates General Setup Globalization Lightning App Builder Lightning Reports and Dashboards List Views Mobile Partnership Permissions and Sharing Sales Salesforce Flow Salesforce Mobile App Salesforce Overall Salesforce Partners Salesforce Spring ’25 Release Notes Salesforce Summer '24 Release Notes Salesforce Winter ’25 Release Notes Security, Identity, and Privacy User Experience
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.