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".
ØCreate Custom Button on Account with Name "Take Ownership", Select the Behavior as Display in ne window and Content source as URL, Add Flow
Ø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
Post a Comment