Loading...
New Winner – Cross-Border Excellence | Payoneer India 2026 Check out
Featured Recognized by Salesforce; Proven by impact! Check out

When an Opportunity owner is deactivated or inactive in Salesforce, we like to update the stage of the inactive user’s opportunities.

And we can do this declaratively using Salesforce Flow

Salesforce Flow, being a fantastic tool, has features like Columns, Record Triggered Flows, Auto Layout, ISCHANGED() functionality.

So, in this blog, we will run through the steps to update Opportunities for an Inactive Opportunity Owner using these features of Salesforce Flow. Let’s begin!

 

Steps to Update opportunities for an inactive Oppurtunity owner

1. Add picklist value “Pending Reassignment” to the Opportunity stage.

First, we will create an Auto launched flow. To create an Auto-launched flow go to setup, search flows, and click on it.

Now click on create to create an Auto launched flow.

A. Create a variable called “varUserId ” to store the user’s id which will be passed from the Process Builder.

  • Resource type: Variable
  • API Name: varUserId
  • Data Type: Text
  • Availability Outside the flow: Available for the input
1

B. Now we will fetch all the related opportunities with the deactivated user for this we will create Get Record Component like this

 

 

  • Object: Opportunity
  • Condition Requirements: All Conditions Are Met (AND)

      OwnerId Equals {!VarUserId}

  • How Many Records To Store: All records
  • How to Store Record Data: Choose fields and let Salesforce do the rest

      ID

      StageName

2

C. Now we will create a decision component to check whether the Get Records in the previous step get any opportunities or not.

 

  • Outcome: Found
  • Condition Requirements to Execute Outcome: All Conditions Are Met (AND)

    {!Lookup_opps_owned_by_inactive_user} Is Null {!$GlobalConstant.False}

  • Default Outcome: None Found
3 12038ee91f

D. Now we will create a loop component like this

 

  •  Collection Variable: {!Lookup_opps_owned_by_inactive_user}
4

E. Now we will update the opportunity stage using assignment components

  • {!Loop_de_loop.StageName} (i.e. loop record’s stage name field) equals Pending Reassignment.

F. We will add each item of the collection to the new collection to update it.

  • {!CollectionofOppsToUpdate} add {!Loop_de_loop}
5 120403b251

G. Now we need to update the collection for this we will create the update record component like this:

  • How to Find Records to Update and Set Their Values: Use the IDs and all field values from a record or record collection
  • Record or Record Collection: {!CollectionofOppsToUpdate}
6 12041e5c63

H. Connect all the components of flow as mentioned in the below screenshot.

7 1204859dad

2. Now create a Process Builder by clicking on setup and search process builder

A. Then create a process builder and select “A record changes”

8 12049a0ba2

B. Select user as object and choose when a record is created or edited

9 120502f0e0

C. Now Specify the criteria node as mentioned in below attachment:

  • ISCHANGED([User].IsActive) &&
  • [User].IsActive = false
10 120510084c

D. Now create two schedule actions as mentioned below:

11 1205353c67

Wrap Up

We hope this interests you. If you try out this solution, then do share your experiences with us. We will be back with another solution to help you do your work in Salesforce with ease. Till then, happy learning!

No Data Found.

Related Articles
From SMBs to Enterprises: Why Salesforce CRM Remains the Choice for Every Business Size

Running a modern business requires a robust Salesforce CRM platform that connects teams, organizes customer data, and delivers real-time operational insights. In today’s competitive environment, waiting for information across disconnected systems is no longer practical, especially when modern buyers expect immediate responses across every channel. For years, the software was primarily associated with large corporate […]

Read More
How to Integrate NikoHealth to Salesforce

Healthcare organizations using NikoHealth often need patient, insurance, order, invoice, and prescription data available inside Salesforce. As data grows, manually updating records across systems becomes difficult and can lead to delays, duplicate work, and data inconsistencies. NikoHealth to Salesforce integration helps solve this challenge by automatically synchronizing data between both platforms. Instead of building custom […]

Read More
Flow Orchestrator vs. Traditional Flows: When to Use Each for Salesforce Automation

Businesses use Salesforce automation to reduce manual work, improve efficiency, and automate repetitive business processes. Two commonly used automation approaches inside Salesforce are Traditional Flows and Flow Orchestrator. Traditional Flows are mainly used for simple automation tasks such as updating records, sending notifications, creating tasks, and automating business logic. Flow Orchestrator is designed for more […]

Read More
The Rise of Agentic Government: How AI Agents Are Transforming Public Services

Government technology has often been seen as slower to evolve than the private sector. But Salesforce’s latest research challenges that idea in a big way. In fact, the new findings suggest that public sector organizations may now be moving faster than many businesses when it comes to adopting AI agents and preparing for a more […]

Read More
How To Use Email Service in APEX

Managing approvals, updates, and record changes directly from email can significantly improve efficiency within Salesforce workflows. Instead of logging in, navigating records, and manually updating fields, users can simply respond to emails and trigger automated updates using Email Service in APEX. This approach is especially useful for businesses leveraging Salesforce automation and looking to enhance […]

Read More
Design and Implementation of Salesforce-Jira Task Integration

Businesses have been using Salesforce for CRM operations and Jira for Agile project tracking. However, without integration, teams manually update both systems, leading to data inconsistency and inefficiency.This mechanism establishes a real-time integration between Salesforce and Jira, allowing seamless synchronization of tasks and agile board statuses.  A custom Salesforce dashboard was developed that replicates Jira-style […]

Read More
Our Location worldwide
Indian Flag India
7th Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203669505
United States of America Flag USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
United Kingdom Flag UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
CA Flag Canada
HIC Global Solutions INC
6D - 7398 Yonge St #1124 Thornhill, ON L4J 8J2 Canada +1(262) 310-7818