Skip to main content

Questions tagged [urlhacking]

To modify the url of a page to affect its navigation or behavior. Most commonly to add or change the values of parameters/attributes.

Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

How to paste a current listview name in the URL on a custom button in Salesforce?

I have a custom button on Opportunity for creation of a record with a predefined stage. I need to get back to the listview I started with if I cancel the operation So I paste in the URL section: /...
SlavaBychenko CT's user avatar
0 votes
0 answers
68 views

Is it possible to add more forward slashes to the Default Web Address in Salesforce Sites?

Navigation : Setup > Sites As in my screenshot, I tried adding more forward slash(es) but get an error saying The Default Web Address must be alphanumeric. The reason why I need these extra ...
compski's user avatar
  • 1,391
0 votes
1 answer
77 views

How do I filter a dashboard based on a date using url parameters?

I want to dynamically filter a dashboard to see only records with a field on a specific date. The documentation doesn't explain how to write a date as a url parameter. I keep getting the same error &...
Matias Bangueses's user avatar
0 votes
0 answers
46 views

String in Apex class is not pulling in data from formula field to push data to external form

I have a button that was created to allow a user to schedule an appointment with a lead. The button goes to an external schedular and should pull in the details of the lead (name, email, and phone) ...
twolfe's user avatar
  • 3
1 vote
0 answers
164 views

How do you create a List Button for Related Records with Default Values found in a related opportunity?

I am tasked with creating a list button on the Account object for the related opportunities list. The record that needs to be created needs to have other default values that are found in one of the ...
JEbert's user avatar
  • 11
0 votes
0 answers
163 views

How to update an existing custom Link that passes info to a report to work in Lightning

I have a client that is migrating to Lightning and they have an existing custom link, created years ago when they were on a very restricted edition of SFDC and had who knows building out the ...
user7417's user avatar
  • 341
0 votes
1 answer
459 views

Salesforce URL hacking not working for Lookup field

On Contact I have one custom button where we want to give create opportunity functionality. It is working fine for most of the values but not able to populate the look up field. I tried below ways. /...
David Mycka's user avatar
  • 1,367
0 votes
0 answers
971 views

Pass the related record ID through the URL hacking

I have a two custom object Sample and Sample detail. Sample detail has a lookup relationship to the Sample record. And both the records have lookup relationship to the Case. When I create a Sample ...
user4912134's user avatar
1 vote
1 answer
202 views

Custom List button not working as expected

I have a two custom object Sample and Sample detail. Sample detail has a lookup relationship to the Sample record. And both the records have lookup relationship to the Case. Below is the Sample record ...
user4912134's user avatar
0 votes
0 answers
969 views

Background context and Save URL in URL hacking

I have a URL list button that pops up the New Account contact relationship form. Below is the URL: {!URLFOR('/lightning/o/AccountContactRelation/new?backgroundContext=/lightning/r/Account/{Account.Id}/...
Rahul Allada's user avatar
0 votes
2 answers
1k views

How do I get the correct record URL when viewing between object list view and record pages?

I'm currently using a formula field with a HYPERLINK function in the Account object to show the value of Custom_Object_Field__c from a custom object which also redirects the user to the custom object ...
code-mma's user avatar
0 votes
1 answer
55 views

Parent Case Custom Buttom to mirror some fields

I want to create a Custom List Button on the Case Object on the Service Console that creates a new case link via the Parent case and mirrors some fields from the original case. This is what I got: /...
Lut's user avatar
  • 297
2 votes
2 answers
2k views

How to create a public link for library in files?

I Have a library let's say "XYZ Library" in Libraries Section of files and I need to get a public link for that library same as we create for Folders from the drop down, so that I can use it ...
Rehan Charles's user avatar
0 votes
1 answer
322 views

URL hack for Add Products button in Lightning

The following button code opens the Add Products screen in Classic: /ui/opportunity/SelectSearch?relatedListId=PricebookEntry&addTo={!Opportunity.Id} Is there a Lightning equivalent? Bonus points ...
Andrew Jones's user avatar
-1 votes
2 answers
70 views

Autopopulation of Related fields

I have a requirement where I need to autopopulate a few fields when a user clicks the button and creates a record from a lightning page. The button will be on service contract and when a user clicks ...
user107526's user avatar
0 votes
0 answers
154 views

URL that launches NewQuote dialog in Lightning?

In Classic, I can launch the NewQuote dialog using an URL like so: let url = "/0Q0/e?nooverride=1&oppid=0060900000NKZXQ&retURL=%2F0060900000NKZXQ"; window.location.assign(url); Note ...
willeg's user avatar
  • 323
0 votes
0 answers
352 views

URL Hack for pre-populating field not working on Experience Cloud Site

I'm using the following code for URL Hack: /lightning/o/customObject__c/new?&navigationLocation=RELATED_LIST&recordId={!customObject__c.Id}&defaultFieldValues=customField__c={!...
Mehedi's user avatar
  • 419
0 votes
2 answers
665 views

Lightning URL Hacking unable to copy custom lookup field value

I'm using lightning URL hacking to clone an opportunity where it is unable to fetch the custom lookup field value from Opportunity to the new cloned record while it is able to copy the AccountId(...
SMorse's user avatar
  • 49
0 votes
1 answer
803 views

Build url in aura component

I am trying to build a url in an aura component but I am only getting the name of the variable in the url Current url that passing in the variable name and not its values window.open('https://secure1....
Phuc's user avatar
  • 373
2 votes
2 answers
2k views

Lightning URL Hacking Not Working when trying to prepopulate Lookup Fields

I have created a new URL button on Opportunity Detail Page. This button is creating new Quote. When I click on this button, two Lookup fields values should prepopulated (Opportuity, Account) on Quote. ...
Dave's user avatar
  • 480
0 votes
0 answers
659 views

Custom Clone button to allow record type selection before redirecting to cloned record edit page

I have a custom clone button on opportunity which clones an opportunity record along with its record type which is good. However, as part of this clone process we want to facilitate the user with the ...
SMorse's user avatar
  • 49
-1 votes
1 answer
4k views

URL that opens in Lightning or Classic depending on user setting

I have an excel table that I share with my sales reps. Each row in the file has has a link that open a specific opportunity record. The issue I'm facing is that the link opens in Lightning but some of ...
4Cast's user avatar
  • 27
0 votes
1 answer
2k views

How to redirect a user after an auto launched flow to a specific URL

I would like your advice on the best way to achieve the required behavior Our process is the following. We get a new lead from one of the communication channels Our user communicates with the lead ...
Ben2pop's user avatar
  • 435
0 votes
1 answer
662 views

URL Hack on Dependent Picklist field in Lightning

I'm trying to clone a Case, for that, I have created a button to copy data from the parent Case. I have a dependent picklist field(Experience__c) on the Case object. It is dependent on Product_Type__c....
Rijia's user avatar
  • 19
0 votes
1 answer
196 views

URL Button is not populating the fields

Can someone tell me why my fields aren't being populated other than my subject field? I am trying to clone a task. I created a URL button on Task object. Here is my code: /lightning/o/Task/new?&...
Dana's user avatar
  • 1
0 votes
0 answers
160 views

After comma text values are not capturing in the lightning URL

Display Type: List button Content Source: URL Code: {!IF($User.UIThemeDisplayed="Theme4d", URLFOR('/lightning/o/Quote/new?navigationLocation=RELATED_LIST&backgroundContext=%...
mayank gupta's user avatar
0 votes
0 answers
312 views

What is "eid" in the file picker standard URL?

I am trying to figure out the random Id that generates every time when we click attach file on Notes and Attachments. I copied and paste the Id in the URL but it does not resolve to any valid page but ...
Bforce's user avatar
  • 6,878
1 vote
1 answer
1k views

URL Hack in the salesforce

I have two object one is Mandate__c and another one is Literature_distribution__c ,, in which i have one button with URL on the mandate to create the literature_distribution.....I jst need to copy the ...
user avatar
4 votes
0 answers
77 views

AppExchange Apps - Security Concerns on embedding URLs with Encrypted Short Lived Access Tokens

We are working on an AppExchange App which integrates with external application at the UI Layer. External application (composite app) has different widgets which we can embed within AppExchange Aura ...
Ashish's user avatar
  • 2,372
0 votes
1 answer
747 views

Lightning URL Hacking Not Working

I have created a new Lightning button on Lead list view - page. When i click on this button, two fields values should per set, one being pick field and another is Checkbox. Below is what i tried and ...
Shiva.venu's user avatar
0 votes
1 answer
569 views

Problem with pre populating date time field of child using custom button

There is a master detail relationship between Opportunity and Work Order with opportunity as the master. I have created a custom list button on Work Order related list that will create new Work Order ...
Koustubh's user avatar
  • 1,203
0 votes
1 answer
1k views

Default value is not getting prefilled while creating a new record using button

There is a master detail relationship between Opportunity and Work Order with opportunity as the master. I have created a custom list button on Work Order related list that will create new Work Order ...
Koustubh's user avatar
  • 1,203
1 vote
1 answer
3k views

Pre Populate custom field while creating a new record

I am trying to pre-populate a lookup field while creating a new Account record and as per documentation we can use field name instead of custom fieldId. Classic Way: https://test--dev.my.salesforce....
Noob_NoVoice's user avatar
  • 2,739
1 vote
0 answers
316 views

URL Hack Lightning with % in URL Encode

I am attempting to utilize URL Hacking in lightning it has worked great until I faced having to pass a % in a stage name to the new record. It seems to be encoding properly but it still just renders a ...
AverageJoeVBA's user avatar
1 vote
0 answers
313 views

Lightning lead conversion page cancel button to redirect back to lead record

We have created a custom button that will redirect to the lightning lead conversion page. The URL we used is below: /lightning/cmp/runtime_sales_lead__convertDesktopConsole?leadConvert__leadId={leadId}...
Felix Mari's user avatar
0 votes
1 answer
719 views

Related list with custom button is not getting updated when a new record is saved

I'm using a custom list button to create records. It's working, but when a new record is created and saved, I need to refresh the full page to see the new record at the related list. I wish I didn't ...
Sabrina T.'s user avatar
1 vote
2 answers
2k views

backgroundContext is not working

I created a link that takes me to a create new record form but when I click on cancel button it leaves a blank page. I read that backgroundContext URL hack should fix the problem but for some reason, ...
olgaK's user avatar
  • 56
0 votes
0 answers
459 views

Url Hack for Report/Dashboard

I tried to create a Url Hack with the Name of the logged in User in Salesforce Lightning, but It does n't work. REPORT https://mydomain.lightning.force.com/lightning/r/Report/00O67000006T4X2EAK/view?...
peXeq's user avatar
  • 469
0 votes
1 answer
295 views

URL to custom object home page

There are two object case and escalation_on_hold__c in case object lightning component i have created a form with case fields and when the button click it will show popup message and in that i have to ...
Mahesh 's user avatar
0 votes
0 answers
93 views

New User URL not displaying properly

I have a requirement to invoke the user creation page to prepopulate some fields. I'm using the following URL: /lightning/o/User/new?defaultFieldValues=LastName={!User.LastName},ProfileId={!User....
Raul Mora's user avatar
0 votes
1 answer
254 views

URL hacking throwing an error

I have created a URL hacking to populate contract agreement name and account name(through contract agreement) on contract product. For some reasons account name field is showing an error 'Error: ...
Jatin's user avatar
  • 5
0 votes
1 answer
620 views

Prepopulate a lookup field when the new button is pressed

I am trying to prepopulate a lookup field when the user presses the "New" button. This object is in the related list of another object. Those two objects are part of a managed package. The ...
Xrhstos Kolonis's user avatar
0 votes
1 answer
96 views

Cannot include User lookup in navigation url

I am using the Spring '20 feature Navigate to a Record’s Create Page with Default Field Values to create a detail page URL button on the Account page called "New Opportunity". It ...
skycafe's user avatar
  • 397
0 votes
1 answer
1k views

SITE URL REDIRECT WITH DYNAMIC PARAMETERS (Public Access Page)

I'm trying to implement URL Redirect in sites along with dynamic parameters and this is not working. Working scenario : with no dynamic parameter. Below scenario works fine when this is no dynamic ...
vkm's user avatar
  • 137
0 votes
3 answers
971 views

Url hacking in lightning after comma text values are not capturing

On Custom button i am passing the url and In below code snippet Notes__c field is long text area field. when i click on custom button values are populating but in notes field if user mention comma ...
cloudZigZag's user avatar
  • 1,376
1 vote
2 answers
685 views

URL button to prepopulate values in Lightning

I am trying to replace a URL button used in a list view in Classic to Lightning Compatible. I am trying to open a lightning component through URL that fires the create new page of the object with ...
user81642's user avatar
  • 687
0 votes
2 answers
498 views

how to escape comma in Salesforce lightning URL

I have to pass a percentage value with 2 decimal places through URL hacking in lightning, for French locale the decimal point is replaced with comma, now when I send the value containing comma, ...
Aritra Chakraborty's user avatar
1 vote
1 answer
2k views

Lightning Navigate to Create Record with Default Values not working

I want to add a button on the related list to create a new record with some prepopulated default value in the standard "Name" field. I'm looking at the release notes from Spring 2020 which ...
user569925's user avatar
  • 1,189
0 votes
1 answer
451 views

Multiselect picklist values are not prepopulating while clone using custom button URLFOR

Created custom button and added on page layout in lightning i want to clone specific fields only so using url hack. {!URLFOR('/lightning/o/Request__c/new?&recordTypeId=0129C000009CIiu&...
cloudZigZag's user avatar
  • 1,376
0 votes
4 answers
966 views

If lookup of account does not contain value on opportunity then showing error for lightning url hack

Created custom button for url hack in lightning and added on opportunity page layout. IF opportunity lookup field Account have value then it is working but if it not there then show blank. so i have ...
cloudZigZag's user avatar
  • 1,376

1
2 3 4 5 6