Skip to main content
SFDC Developers
Flow

URL Redirection on edit of record

Vinay Vernekar · · 1 min read

Whenever there is the functionality to be implemented on record save, approach comes in our mind is by using Process Builder, Workflows, Triggers, Flows etc. But can we redirect to page using these available functionalities?

No right? That’s correct! But using Lightning Data Service its possible. Watch the video what I have implemented and how its working.

https://www.youtube.com/watch?v=o0J\_PnCGhu8

Technical Overview

  • A force:recordData component defines the parameters for accessing, modifying, or creating a record using Lightning Data Service. You have granular control on how you want to display or render the data in your custom component.
  • Whenever the record is updated, using LDS, controller function can be called and process the functionality.
  • With the help of this behavior and force:navigateToURL, on update of Type field, redirected to URL specified in Website field of Account record.

Summary

Sharing the code through Git : https://github.com/SFDCDevs/AutoRedirect

Share this article

Vinay Vernekar

Vinay Vernekar

Salesforce Developer & Founder

Vinay is a seasoned Salesforce developer with over a decade of experience building enterprise solutions on the Salesforce platform. He founded SFDCDevelopers.com to share practical tutorials, best practices, and career guidance with the global Salesforce community.

Comments

Loading comments...

Leave a Comment

Trending Now
Check back soon for trending Salesforce developer content