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

2
votes
1answer
8 views

Custom Object Prefix in URL Hacking Using Custom Button

This question is inspired by this Post. Can anyone enlighten me more about "object prepend" mentioned in this post. So in an example URL like ...
2
votes
2answers
50 views

Javascript custom button throwing error - Undefined is not a function

I believe this is more due to my lack of knowledge about Javascript. But since i am working on salesforce, i thought i would post the question in this forum. There is a label SS_TLIfieldIDs, whose ...
-1
votes
0answers
16 views

How to get a javascript custom button in salesforce1 app page [duplicate]

See i have a custom button with onclick javascript content source, these buttons are not shown in salesforce1. Anyone can guide me how to access those buttons in salesforce1? Thanks For your reply ...
2
votes
1answer
33 views

Auto-populate lookup fields

I have a standard Object (ServiceContract) which has a Master-Detail relation with ContractLineItem (also a standard object). ContractLineItem further has a master-Detail relation with a custom object ...
1
vote
1answer
19 views

Fetch Values From Related Object Fields - JavaScript

I need to assign an Entitlement to all Cases created from an Opportunity, when a user clicks a custom button. I've created a custom field on the Account which contains the Entitlement Id ...
4
votes
1answer
37 views

Custom Email button works for me but not my users

Afternoon all, I have a custom button on my Opportunity object to Onclick Execute Javascript to send an email to a specific email address, code below: ...
0
votes
1answer
14 views

Pass currency value to custom field using JavaScript button

I need to populate a currency custom field Value_Of_WE_Spend__c on a custom object WE_FEP__c with the value from an opportunity currency custom field Annual_Settlement_Value__c. I've written the ...
2
votes
1answer
21 views

Create Custom Cloning Button - New Admin

I am relatively new to salesforce and administration. I am trying to create a custom cloning button that checks against the user profile name. I am using URL as content source. ...
2
votes
1answer
22 views

Unable to autofill 'Related To' from custom button URL hack

I am trying to create a custom button to create a task. I want to set the task Related To as a Campaign, but am unable to accomplish this. What am I missing? Button or Link URL: ...
2
votes
1answer
19 views

How to pass parameter from custom button & open a vf page?

I want to pass the Quote Id to the controller on click of a custom button & open the vf page called Select Product. Currently i'm using this code:- apex/SelectProduct?id={!Quote.Id} I have kept ...
0
votes
1answer
15 views

Help with Javascript Button on Opportunity

I created a button on the opportunity that will change the stage to "Duplicate" I need to be able to check that the opportunity is not already closed before changing the stage. However, I can't get ...
0
votes
1answer
12 views

Retrieve data from a WebService and fill Standard Page (Lead) fields

Here's my scenario: I need to create a basic search, based on the custom field "ZipCode__c". User types in the zip code and then I have to use a WebService to retrieve the address information ...
0
votes
0answers
20 views

Url for deleting filter view on records

I need to implement Delete view on custom object pages. I have Create new View and Edit view buttons and they are leading to /ui/list/FilterEditPage That is the same link that is pointed to by ...
1
vote
1answer
47 views

Display an error message on standard page

I have a class which i called from a custom button to send the record for approval. Before sending the record for approval I need to validate the record values and if any error is there I want to ...
0
votes
1answer
19 views

Create a Custom Button on Report

I have following requirement I want to create a Report with Contacts. Now i want to export these contacts to a Campaign using a Custom Button. Here I don't know how to create a Custom button in ...
-1
votes
3answers
25 views

Update case and opportunity owner to login user using custom button

Update case and opportunity owner to login user using custom button: I am having a case record 'x' and i want to create a custom button and when i click the button it will update case owner and ...
1
vote
1answer
56 views

Can I hide a custom button on standard page based on some field value?

I want to hide a standard or custom salesforce button on standard page. I don't want to use record type based layout to do that.
1
vote
1answer
17 views

Standard Clone Button - Setting Field Values - Custom Button Or Something Else?

Need: Ability to Clone records, and set a value into a field during the cloning. In my specific case, I want to populate either a Lookup field with the ID of the record cloned from (so passing ...
1
vote
1answer
20 views

I want to add Printable View Functionality in Custom Button

Is it Possible to add Printable View Functionality as a Custom Button which means when i click on button it shows printable view with all associated information of objects I prefer to go ahead ...
1
vote
2answers
59 views

Custom button javascript error on Unexpected token ILLEGAL

I have a custom button where I want to check for conformation. I wrote my javascript for conformation but I am getting error that A problem with the OnClick JavaScript for this button or link was ...
1
vote
1answer
22 views

Create new case, assign record type, add to queue & populate other case fields

I need to create a New case custom button which will be displayed on the Opportunities object and selects the record type, while also populating other fields on the case page layout. The easiest way ...
0
votes
1answer
47 views

URL button hack broken. What alternatives exist?

A URL button hack appears to have stopped working in our org. I am not sure if this is due to a system update or our addition of Communities. The button appears on the "Account" page, pre-populates a ...
0
votes
0answers
27 views

Junction object between Contract and Order

I have a junction object between Contract and Order. Now I want to create a custom button for creating Contract from the related list of Order.I have a VF page where I have custom controller. On ...
0
votes
0answers
20 views

Clicking button it should reload the page, the callout must be perform asynchronous

My question is that clicking button it should reload the page, The callout must be perform asynchronous. Now its works like a reloading the page after finishing the callout. Custom Button : Execute ...
1
vote
1answer
58 views

Trigger Workflow from Button Click

Here's what I'm trying to accomplish: When a user is viewing or editing an opportunity they should have an "Export" button available to them. When they click this button a workflow is triggered ...
0
votes
0answers
23 views

Overwrite standard button with custom one on Quote's pdf

Can we overwrite a standard button with a custom one on Quote's PDF? There are three buttons available on PDF- "Save to Quote", "Save and Email Quote" and "Cancel". I need to replace standard "Save ...
0
votes
1answer
45 views

Button for email template and recipient

I have created a custom button(like send an email function) to define the email template and the recipient email address. Behavior is set to execute Java, content source is OnClick Java. Code is ` ...
2
votes
1answer
31 views

AJAX Toolkit API Version Number Maintenance in Custom Button Javascript

Is there a way to access the following string "/soap/ajax/33.0/connection.js" in {!requireScript("/soap/ajax/33.0/connection.js")} by using custom labels in custom buttons? So that whenever there is ...
0
votes
1answer
48 views

how to open the approval/rejection page w/ custom javascript button

How to I open the approval/rejection page for a record with a javascript button? {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} ...
1
vote
2answers
44 views

Control Finish Location for a Flow

My organization has a custom button on the Opportunity which calls a Flow to create the Opportunity. The code for the button is as follows: ...
0
votes
0answers
21 views

Web services calls in javascript button

I have a custom button that runs a web service call for an Apex class that makes a SOAP call to an external application. The problem is that this process is executed on the main thread and ends up ...
0
votes
0answers
25 views

Pass ID from detail page to a VF page

I have created a detail page button of Custom source as URL that has below URL /apex/ComplianceIncidentPublish?Id={!Compliance_Incident_abv__c.Id} That is unable to get hold of ID in the VF page. ...
2
votes
1answer
19 views

List button to be used in detail page button

I have a List Button on a custom object. I need to use that button in that object as detail page button. Please find the VF page that List button calls here. Page: <apex:page ...
0
votes
0answers
14 views

Leads Find duplicates custom button

I need to add a few fields to the find duplicates button on the leads, is there an easy way to do this? I looked around and saw that I can hack the url, I am just not sure where to start with, I have ...
0
votes
0answers
12 views

Find Duplicate Custom Button (for cases)

We are launchng a new program to our business whereby homeowners (leads) can submit a claim against a company we work with (accounts). We built a landing page that when the form is filled out, it ...
1
vote
0answers
25 views

Custom Label as Master Lable

I'm trying to find a way to make a button label dynamic and I couldn't find any other way than Custom Label. The only issue is I don't know how to make the MasterLabel to pick my custom label. I've ...
1
vote
1answer
77 views

Visualforce Button Redirect with URL reference to related Account

I am working on a small wizard for adding Contacts of a certain type. The first page redirect is saving and redirecting with the ContactID referenced in the URL like it is supposed to, but the second ...
1
vote
2answers
44 views

Unable to redirect a page from Visualforce

I'm currently making a custom editor in Visualforce that adds things to a related list. Things from this list are selected and then when the "add packages" button is click it should make the records, ...
1
vote
2answers
54 views

Custom Button not setting record type

I have a custom button on Object A where it creates record for Object B (No relationship btn objects). The button works fine except it doesn't sets the record type, what iam doing wrong. ...
6
votes
1answer
132 views

Using static resources in OnClick Javascript buttons after “Serve Static Resources from force.com domain” critical update

We're using list view and details OnClick Javascript buttons which reference custom js ans css files stored in static resources and containing some shared logic/styles. The sample code below ...
1
vote
1answer
51 views

How to return to the previous page from a Visualforce page?

I have a page that shows records for an object and I need to be able to select some, and then once the "Add Packages" button is clicked I need the page to return to the previous page after completing ...
0
votes
2answers
32 views

Getting “System.NullPointerException: Attempt to de-reference a null object” when attempting to call the cancel function in Apex

I'm making a system for our custom packages. When attempting to assign the packages from a visualforce page to the Opportunity I end up getting this the error. This error only happens when clicking ...
0
votes
0answers
30 views

JavaScript on custom button

I am having a trouble while running a JS on my button . I have a button name Make Available on my detail page and there is a pick list name status> which is by-default pending. Whenever user click ...
0
votes
1answer
65 views

Getting an Opportunity Id into a Visualforce page when clicking a list button on a related list?

I'm currently trying to make a system for selecting multiple objects and connecting them to a related list within Opportunities. The last piece of the puzzle for me is getting the ID of the ...
1
vote
1answer
45 views

Why am I getting “Error: Unknown property 'Opportunity_Package__cStandardController.Opp_Package_Rel__c' ” from this Visualforce page?

I am currently in the process of making a system for easily adding packages from a list into our Opportunities. This visualforce page needs to be accessible to use as a list button, but ever since ...
1
vote
0answers
30 views

NA4 Is Splitting - Updating URLs On Buttons And Other Admin-Level Places (not Apex)

Original question related to this: Searching "everything" in Salesforce So there was an answer involving an "ant script", which is no use to me. I am comfortable enough (I thought) ...
0
votes
1answer
29 views

Flow being fired twice when pressing a custom button. By interview.apexp?

I just created a flow that looks up an account and displays a screen to allow the user to enter values in a textbox and select something from a dropdown. It then creates an opportunity using some ...
3
votes
1answer
111 views

JavaScript Custom Button

I am trying to build a javascipt custom button that launches a google hangout and calls with person's phone number on the Lead record. Google has indicated this is what a page with a google hangouts ...
0
votes
1answer
34 views

Why can I not have a custom list button link to this Visualforce page?

I'm currently trying to recreate the the functionality of the "Add Product" list button for Opportunity Products. I understand Visualforce pages need to have their controller set to the object they ...
0
votes
1answer
41 views

Can this be done by clicking just one button? [closed]

Basically, I'm creating a user with specific default settings, I need them to have Group access, Queue Memberships, a specific license, etc.. I just want to know if i can do all this by clicking the ...