Create custom buttons and links to integrate Salesforce data with external URLs, applications, your company’s intranet, or other back-end office systems.

learn more… | top users | synonyms

1
vote
2answers
32 views

How to pass multiple value to url parameter

I am creating a custom button on a custom object A. The custom object A has multiple accounts related to it. Custom object A has a lookup relation to Account. In the button logic I am using Button or ...
0
votes
0answers
19 views

Abstracting Salesforce Custom Detail Page Button in to a List View Button? [on hold]

Someone on the team wrote a great Detail-Page Button for Salesforce Contacts that generates an invite-token to our proprietary platform and populates the Contact sObject field with the invite token ...
2
votes
0answers
20 views

How to add a line item to a related list from a custom button? [on hold]

I have created a custom list button using the wizard on a related list. The button is to add a line item to the list from the Products list. The problem is that the URL being used in the custom button ...
2
votes
1answer
15 views

How to create custom buttons on Accounts and track them?

I´m quite new on Salesforce, and I have found a lot on some of this, but nothing on how to exactly do it. Does anyone have any idea on how to create a Custom Button on the Accounts Page Layout. I ...
1
vote
0answers
7 views

Custom buttons to be able to track Logins and Log Out times

I´m pretty new to Salesforce, and I´ve been looking all over the forums on how to do it. I´ve learned quite a bit on what it´s possible, and what´s not. I want to be able to keep a record on when ...
1
vote
0answers
16 views

Custom Mail Merge Button to skip Page with Generate button

I am trying to create a custom mail merge button that skils the Generate page. I started out with this URL in a dev environment using the below for formula : IF(CONTAINS($Profile.Name,"Business ...
0
votes
0answers
27 views

Custom button on Related list not visible after deployment

I have created a new custom button on a related list in Sandbox and added it to the layout. When I deploy that button using change set, it become available in the target org but do not get ...
1
vote
0answers
16 views

(Properly) Link to custom Lightning App from record detail page?

I have a custom lightning app. How can I link to this app from a record's detail LEX page (e.g. Opportunity) and pass the Opp's ID to it? The end-user is supposed to launch the app and do some ...
1
vote
2answers
24 views

Custom Button with Scripting

<script src="/soap/ajax/37.0/connection.js"> </script > <script src="/soap/ajax/37.0/apex.js"> </script > function success() { var alertString="Success!"; alert(alertString); ...
0
votes
2answers
33 views

How to add two triggers to one custom button

How to add Two Triggers for one custom button in the same object? I Have Two Triggers A,B. A trigger Performing Field Updation In the same object where B trigger performing field Updation of another ...
0
votes
1answer
14 views

detail page link with contact as filter for report

my next question for today. In the Task Object, I have added a detail page link button, from which i would like to filter a custom report by contact id so far, I adopted another link ...
1
vote
1answer
21 views

lookup id from Task to custom object with button

I have created a custom object and in the task, i have created a detail page button to automatically create the new custom object but including already some information from the task. my Url looks ...
0
votes
0answers
16 views

How to prevent “You will be redirected to ” prompt in Lightning Experience from custom button

We have a button created via "New Button or Link" on a custom object with the behavior "Display in new window" and Content Source "URL" linking to an external https://... page This works fine in ...
-1
votes
1answer
34 views

Best approach to add custom dialog (Confirm Action dialog) on click of a custom link button [closed]

The requirement is to display a confirm Action dialog on click of a custom button that is presently having a visualforce page as its content source,used for sending an email to contact record.If the ...
0
votes
1answer
20 views

Custom Button JavaScript to select a check box error

I am currently working on a button on the lead object to automatically select a check box field on the lead object when pushed. The field is called "advocate_record_created__C". When trying to execute ...
0
votes
0answers
28 views

A problem with the OnClick JavaScript for button was encountered and how to get AJAX version

I am facing this error using custom button in lead object "A problem with the Onclick JavaScript for this button or link was encountered: {faultcode:'soapenv:Client',faultstring:' The content of ...
0
votes
0answers
39 views

Why the custom button not working for first click

I have a custom button in account. When click on the button two times it's not working, But it's working when i click third time and i didn't get the four lines of script of custom button where those ...
0
votes
1answer
40 views

recordVarSet issue

I am overriding the LIST button of account Home page with my own visual force page. <apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" ...
1
vote
1answer
19 views

adding a multi-picklist field into my formula for my custom button

I have a custom button that has a javascript picklist that checks feild criteria. I need to add a multi-picklist field to the if statement to check if it does NOT contain "India". here is the if ...
-1
votes
0answers
15 views

I have written following code. It is giving error description :undefined error

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} try{ var OppId='{!Opportunity.Id}'; ...
0
votes
0answers
24 views

How to prevent to run multiple times when click multiple times on one custom button

I have one custom button. When i click on that button, That will send an email. But some times it sending multiple emails because if i click on that custom button multiple times at a time.
0
votes
2answers
31 views

hide custom button based on user profile?

I have one custom detail button in the Account page ,i want to hide that button based on the user profile ? Is there any way we can do this?
-1
votes
1answer
30 views

Javascript button for Opportunity

I need help in creating button that would prevent from creating opportunity for Inactive accounts or contacts, here is what i have so far but nothing is working if('{!Account.Inactive_del__c}' == ...
1
vote
1answer
24 views

Lightning-enabled button: Pass Parameter to VF page

We have a custom detail page button that passes the object id to a VF page which then renders a visual workflow based on that ID. Salesforce did support URL buttons in lightning before, but it seems ...
0
votes
1answer
36 views

Custom Javascript Button returns “Unexpected token ILLEGAL”

I'm trying to create a custom button that executes javscript on the Case object. I simply want to check if the Case has a specific child record already and forward the user to that record if it exists ...
0
votes
0answers
25 views

Error - Refused to set unsafe header “User-Agent”

I'm trying to adapt the below button, which is used in the Opportunity's related Cases list so that it can be used for the Account's related Cases list. ...
0
votes
2answers
70 views

Run javascript before redirecting to visualforce page - Custom List button

I have a custom list button on contact with behavior as shown below: And this custom button is added to the contact related list on account When I select 2 or more contacts and click on custom ...
0
votes
0answers
19 views

Building a custom page for contract

I have a requirement where I would like to create a custom button on the Contract object. My contract object has currently 50 fields in it. I would like create a custom functionlity where I have a ...
0
votes
0answers
37 views

List Button does not work properly in Salesforce Lightning Experience

I have created a list button on a custom object and I set the behavior of the list button to "Display in existing window without sidebar or header". This List button works fine in Salesforce ...
0
votes
0answers
17 views

Tabbed Contact page

I'm replacing my Contact detail page with a custom tabbed Visualforce Contact detail page. I've been able to replicate most of the functions of the old Contact page. But I'm having trouble with some ...
1
vote
1answer
38 views

How do we get the current logged in user in a custom button

Is there a way i can get a currently logged in user in a custom button running on javascript? I have custom button on where i am trying to update certain fields like activated by. Is there a way i ...
3
votes
1answer
96 views

JavaScript Button - SOQL Query Syntax Issue resulting in 'missing ) after argument list' error (SF Classic)

Scenario: I am working on a button which should create a new Sprint__c child record with Record Type "Sprint Deployment" which will be automatically linked (via lookup) to the Sprint__c record ...
3
votes
2answers
106 views

How to set Date/Time in salesforce using javascript

I am updating the record in the javascript while clicking on custom button. I have custom date/time field Approved_Date__c. I need to update that fields also using javascript. How can I assign current ...
0
votes
1answer
71 views

how to pass parent objects's id to custom button dynamically so same button can be used for all objects

I have a custom button on task related list of Account Object. The button contains the URL as: /apex/GetDynamoDBTasks?id={!Account.Id} Where GetDynamoDBTasks is a Visualforce page. I want to pass id ...
1
vote
1answer
34 views

Close Button in cases

I want to have a close button in case layout in community but do not want to give him a permission of edit, create or delete. just close case. how can we do that.
4
votes
1answer
81 views

Generate Tab URL With Pure Visualforce

I have a custom Object called "Related Professionals" and I overrided the 'New' button to auto populate the "Name" Field with the Default text. This is the New button Override VF page : ...
0
votes
1answer
40 views

Create a prompt on Javascript Button

I have a custom JavaScript Button which makes a call out. Button Code as Below: {!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} ...
1
vote
1answer
40 views

Conditionally load Javascript library in Custom Button

I am facing an issue with a custom onclick-javascript button that is used in the Partner Portal, Console and in "regular" Salesforce. I have the following RequiredScripts in the button: ...
0
votes
1answer
30 views

How to call a public method in javscript itself? [duplicate]

I have a custom button on my Account detail page called Change. I need to call a public method which is in a public with sharing class. What I have learned is that we can access the method using ...
0
votes
1answer
35 views

Can we add a Custom Button on a task Send an Email Page

I have a requirement where i need to add a custom button (Say as enrolled) on a task Send Email page. Enrolled is a custom object . Once we click on the custom button List of available enrolled ...
0
votes
2answers
43 views

Opportunity Edit - Javascript Button

I am trying to created a Javascript button on the Opportunity to replace the edit button. I want to check if some fields have a value, and if so direct the user to a VF page, if not direct them to ...
3
votes
1answer
70 views

Disable Custom Button in Standard Page Layout

We have a custom button in Opportunity standard page layout and when clicked it calls a webservice class (Apex class called by OnClick Javascript via AJAX) It is a synchronous call as such it takes ...
3
votes
2answers
61 views

Test Class Failures “Methods defined as TestMethod do not support Web service callouts” For Custom Button

I have a custom button that calls an apex class - and per this tutorial the class is a "Web Service" (but not in the classic sense). 5 days ago in production the test class (and 21 others) started to ...
0
votes
1answer
23 views

VisualForce error - Custom Button to add existing records [duplicate]

I am receiving the following Error: Unknown property 'AddExistingSpecsExt.Specifications__c' Line 0 VisualForce Code <apex:page controller="AddExistingSpecsExt"> <apex:form> ...
0
votes
2answers
24 views

Apex errors with Custom button to add existing records on a custom object

I am receiving apex errors with the following code: public with sharing class AddExistingSpecsExt { public Specifications__c loadedSpec { get; private set; } public AddExistingSpecsExt() { ...
1
vote
1answer
37 views

Custom button to add existing records

I am trying to add a custom button to add existing records to a custom object related list (Specifications(custom obj) to Products(custom obj)) Ext class code: public with sharing class ...
1
vote
1answer
15 views

Create a button that opens a questionnaire that then gets attached to the opportunity record

I've been asked to create a button on the opportunity object that will open a questionnaire with about 20 questions and gets saved to the related opportunity record. The questionnaire will not be used ...
2
votes
1answer
62 views

Need help with custom javascript button to update records

What's best way to update records based on record type using custom button. Below code partially works and fields updates inside 'If block' doesn't work. What I'm missing here ? ...
1
vote
2answers
57 views

Call Public class method from onclick javascript [duplicate]

I have a public emailing apex class I need to call that from onclick javascript button of a detail page. Can someone let me know , if I can do that? Please give me an example. I am not getting it. I ...
0
votes
2answers
66 views

Id is not defined while opening a new JS window

I have below code that gives out error with Form custom object's Id value as not defined. Can someone please help? JAVASCRIPT ...