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

0
votes
3answers
28 views

Solved! Update children record using Javascript in button

I am trying to update a field in children records(Purchase_Order_Details__c) with Javascript in a button from the parent level(Purchase_Order__c). My problem is that I need to sum 10 to the field ...
1
vote
0answers
17 views

REQUIRESCRIPT and static resources in list onclick javascript button after “Serve Static Resources from force.com domain” critical update [duplicate]

I just want to raise the problem again. The issue with loading static resources using REQUIRESCRIPT in list onclick javascript button can be reproduced again in Summer 15 preview. Anyone else can ...
1
vote
1answer
60 views

Custom Button that will change a field in a custom object and consequently invoke before update trigger on the same object

I have a ajax cutom button that calls a apex class and the class is changing status field of that object. Now I want to invoke a before update trigger on the same object, which is not working. ...
0
votes
1answer
48 views

Custom button to set a static boolean variable of another apex class

I have a class public with sharing class V_SAMPLE_CANCEL { public static boolean isSampleCancel = false; } and a custom button Submit on a custom object Sample_order__c with Button or Link URL : ...
0
votes
1answer
24 views

how to open run a DDP (DrawLoop) page w/ custom javascript button

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} if({!Opportunity.of_checked_PLs__c} != 1) { alert("There is either no project logistics selected ...
1
vote
1answer
38 views

Workaround for URL Hack to prepopulate fields on standard page layout

As URL Hack is not Officially Supported by Salesforce. Is there a workaround for this without overriding standard pages with visualforce page or Ajax ToolKit? For example, if you click on the "New ...
5
votes
1answer
52 views
+100

Can record data affect the results of a URL Action without parameters?

In my developer sandbox I have created a simple custom url list button that has the following: {!URLFOR($Action.Custom_Object__c.New)} When I use this button on some of my record it results in ...
1
vote
2answers
28 views

How to redirect to a VF page with a VF button

I have a mySObject__c and a page mySObject_Button_Page with <apex:page standardController="mySObject__c" extensions="mySObject_Button_Extension" title="{!mySObject__c.Name}" ...
3
votes
1answer
43 views

Callout to web service doesn't work depending the profile I'm using

I have a customized button that once you click it, a new window it's open displaying some data from an external app, getting the data through a SOAP web service. If I'm logged as System Administrator ...
0
votes
1answer
9 views

How to add a custom button besides Edit & Remove in campaign member

How to add a custom button besides Edit & Remove in campaign member
2
votes
1answer
33 views

Convert Lead to Custom Object, Opportunity and Contact

I have a requirement to convert lead(a specific record type) to these 3 objects. (A Custom Object, an Opportunity and a Contact) The Custom Object will be the parent of the Opportunity and the ...
0
votes
1answer
42 views

Javascript error on Button click

I am using one custom list button on one of the related list. But sometime when I click on this button I am getting the below error message: A problem with the OnClick javascript for this button ...
2
votes
1answer
23 views

Salesforce1 - update icon for custom button

I have added a custom detail button to the Order page layout and would like to change the icon from the 'spanner' to something else in Salesforce1. Is this possible? I've attached a screenshot for ...
1
vote
1answer
24 views

Visual Flow Community user access

I have a custom button that launches a visual flow which I have modified to work in my Partner Community (called 'Partner Community'). The name of the flow is 'Resubmit_Lead' I am unsure as to why the ...
1
vote
1answer
16 views

how to use a package button in visual force page standard controller

Hi have a custom button named Manage_Activities in Account, I want to use it in Account detail VF page, where I have written the page using standard controller. Can I use command button ...
3
votes
1answer
49 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 ...
3
votes
2answers
103 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 ...
2
votes
1answer
67 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
41 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
48 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
32 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
36 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
29 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
39 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
22 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
22 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
27 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
61 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
25 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
33 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
90 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
30 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
27 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
119 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
33 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
2answers
60 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
32 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
1answer
37 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
93 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
34 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
53 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
50 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
69 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
86 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
1answer
35 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
1answer
43 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
18 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
16 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
28 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 ...