URL Hacks

Salesforce has re-introduced URL hacks.  This was something that was used a fair bit in Salesforce Classic.  With the release of Saleforce Lightning, these “hacks” were no longer supported.

But thanks to Spring 20, these have been added back.  The URL hack will only work with custom buttons or links.

To create a button or link which will create a new record with predefined values, use the following formula:

/lightning/o/Lead/new?defaultFieldValues=
FirstName={!Lead.FirstName},
LastName={!Lead.LastName},
LeadSource=Online+Lead,
LeadStatus=New

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.