Skip to main content

Update Record Owner using Flow with single Step.

Changing the Account record Owner With Login User By clicking on Button.
1.Steps to create Flow.
ØSetup ==> Create ==> WorkFlow & Approvals ==> Flows ==> Click New Flow.
ØFrom the Resources tab in the left pane, Double click on Variable give a Unique name as "UserId" , Description and select the Input/Output Type as Input And Output .

ØFrom the Palette tab in the left pane, click and drag a "Record Update " element onto the canvas.
ØGive the Name "Change Owner" and Select Account from the Update Pick List.
ØSelect Standard Field OwnerId for the Field , Operator is "does not equal" and select the created variable "UserId " in value.
ØIn Next Colum "Update record fields with variable,constant, input, or other values".
Select the Field - "OwnerId ", Value - "UserId".
ØClick on Save. And Select this as Starting Element.
ØFinally Save the Flow with the name "Change Owner".

 2.Steps to add Flow on Account Detail Page.


ØCreate Custom Button on Account with Name "Take Ownership", Select the Behavior as Display in ne window and Content source as URL, Add Flow 
Like : "/flow/Change_Owner?UserId={!$User.Id}".



ØSave the Button.
ØGo to the Account Detail page and select the Edit Layout option from the Quick Menu.
ØDrag & Drop the "Take Ownership" button from the Buttons to the Custom buttons Section.
ØSave Page Layout .

See how simple ??? ........


Comments

Popular posts from this blog

Salesforce Certified Platform Developer I - Winter '18 Release Exam

1 of 6. Which Content Security Policy (CSP) configuration is required to access the Streaming API and call Apex methods from within a Lightning container component?   A. CSP set to minimum B. CSP set to Lightning C. CSP set to low D. CSP set to custom Answer : C  2 of 6. In which two ways does Salesforce DX facilitate source-driven development?   Choose 2 answers   A. Salesforce DX provides an efficient, end-to-end life cycle designed for waterfall development. B. Salesforce DX allows agile, local test . C. Salesforce DX shifts the source of truth from the org to the version control system. D. Salesforce DX provides an integrated, end-to-end life cycle designed for high-performance agile development. Answer : CD 3 of 6. In which two ways does Lightning Data Service (LDS) eliminate redundant server calls in Lightning Components?   Choose 2 answers   A. LDS allows each component within ...