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

4
votes
1answer
25 views

Salesforce URL Hacking - Ability to remove the 'multiple items found' error

I've created the following custom button on my custom object to automatically lookup the contact and account names when the custom 'new' button is selected from a contact's related list: ...
0
votes
0answers
10 views

“add target” button in code does not create new record on custom object

I'm trying to create a code here merging 2 codes that individually work. What I added is only the "searchbox" and next/previous page function. I do have the principle part of "adding" (which ...
0
votes
0answers
18 views

saveURL when using 'Save and Add Product' on Opportunity

There is a well known way, when saving an Opportunity, to redirect the newly saved Opportunity to a specific URL. This is accomplished by overriding the new button with a URL, where the URL is the ...
0
votes
1answer
22 views

Hide / Show custom button on same pagelayout based on profile

Can I Hide/ show a custom button on same pagelayout based on profile? Please let me know if that is feasible.
0
votes
2answers
13 views

Including custom buttons in Eclipse package

I have created some custom buttons on the Task object, and am creating a package in Eclipse to migrate. For some reason, I don't see an option to include such buttons when I select the metadata ...
2
votes
1answer
18 views

Adding a year to a preset data using Javascript in custom button

I am currently creating a custom button on a custom object in Salesforce that will create a new record of that same object with some updates. One of those updates is to capture the current Effective ...
2
votes
1answer
24 views

Different URLs for custom button

I have a custom button on Opportunity and would like to open different visualforce pages with that button, based on logic. The logic is a little complex, it involves Opportunity record's RecordType ...
1
vote
1answer
22 views

How to get URL for Go button in Tab Homepage

Hi i am using custom vf page for Tab Homepage. I need Go button that redirecting to standard list view page. what is the url for redirecting to list view page.
1
vote
1answer
21 views

Custom List Button on Product object is not appearing in the related list

I created a custom List button on the Product object : and added to the list view: But I don't see the button on the Opportunity Product related list section: Could some body please help on ...
0
votes
1answer
36 views

Passing dynaimc parameters to a function (VisualForce)

I want to pass a dynamic parameter from a Visualforce into a custom apex controller. This parameter is in a table and will have a Contact's id associated with each row on the button that is being ...
0
votes
3answers
29 views

Custom Button to send email no working

I did create a custom button(OnClick JavaScript) to send an email. It is working fine with system admin. But when I did deploy it in production the users with profile other than system admin ...
1
vote
1answer
42 views

Is it possible to include js files from static resources into listview onclick JS button?

Is it possible to include js files from static resources into listview onclick JS button? REQUIRESCRIPT can't be used anymore for static resources because of this Known Issue that won't be fixed. The ...
0
votes
0answers
21 views

Update Record Type in Custom Button using Cancel URL

I have a custom button on an opportunity called 'Move to Stage 2'. When this is clicked it opens the opportunity in the Edit page and updates the record type to 'Stage 2' (which also updates the page ...
1
vote
1answer
30 views

Default Opp Name on Create - Visualforce Page

I am trying to have an Opportunity Name defaulted on the initial Create screen from the parent Account. The use case is to have the Opp Name populated with something generic, and On Save, a workflow ...
3
votes
1answer
32 views

Get class' namespace prefix to use in a Ajax call

I'm trying to execute a class that comes in a managed package (I have a development and a deployment (sandbox) org that I'm testing this). I have a button in a Custom Object that calls a WebService. ...
0
votes
1answer
44 views

Use Process Builder /Flow to custom object 'School' record on stage update

On the Lead Object, I have a lookup to 'Schools'. (Not possible to use use Master Detail on Leads so I need to use Lookup. ). Every time a Lead record is set to status 'contacted', I would like to ...
0
votes
0answers
25 views

Communities - Custom Button to be used internally and externally

I have a partner community where partners log in and update opportunities through the use of custom buttons (1 example below). I want the same process for internal users, ie. I want them to use the ...
0
votes
1answer
29 views

How would I be able to make a button that retrieves a Quote Object from it's current page, and then send it to another page?

Title basically explains my question, I need to make a button that retrieves the Quote Object from one page and then send it to another VisualForce page that is rendered as a pdf and allows a user to ...
3
votes
1answer
66 views

Delete record created by JavaScript on Cancel

I have added the following JavaScript detail page custom button, to our Opportunity page layouts, to create a record for my custom object WE_FEP__c {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} ...
2
votes
1answer
36 views

Highlighted Fields section is displayed twice in the console

I have created a custom button to create a PDF and save it to the case Attachment. When the button is clicked, the PDF is generated and saved to the Attachments, but the issue is when the page is ...
0
votes
2answers
80 views

Code Coverage Success in Sandbox but Error in Production

I have 100% code coverage when I tested it in the Sandbox. When I have uploaded the same in the production using changesets, I am getting code coverage error as 53%. What might be the issue. This code ...
1
vote
1answer
51 views

Sending Email using Email Author in custom button

I have tried this code for custom button for single click email sending. Unfortunately it is not working and returns an error. Could anyone tell me what I am doing wrong and correct me please. Thank ...
1
vote
1answer
48 views

Custom Button to Send an email using email template

I have created a custom button on Opportunity. The custom button has following javascript code. When the user clicks on the button the email should be sent.I find no errors in the code. But I am not ...
1
vote
4answers
31 views

Custom send email button: Only send once

I've got a fantastic OnClick JavaScript button set up which will check if two fields are the same and populate the to/cc fields on an email template accordingly. Now, however, I want to somehow ...
0
votes
1answer
17 views

Ajax toolkit error

I am getting below error when clicking on Cls (custom detail button) on Custom object record. faultcode:soapenv:Client,faultString:"6/3/2015" is not a valid value for type xsd:date Below is ...
2
votes
1answer
53 views

How to override standard Change Owner functionality?

I need to add additional checkbox(Transfer open activities) to the Change Account Owner screen. As far as I know, there is no way to edit this standard functionality so I decided to create a custom ...
0
votes
3answers
79 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
19 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
74 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
67 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
40 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
76 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 ...
6
votes
2answers
176 views

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
38 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
51 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
15 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
57 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
70 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
47 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
46 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
24 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
101 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
159 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
97 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
68 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
57 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
66 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
64 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
33 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: ...
3
votes
1answer
168 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 ...