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
1answer
13 views

While run the apex job show the error occur during the run batches?

I am just click on custom button then call the controller and run the batch but show the error occour during run the batch.and show below error. How should i do this? Apex class global class ...
0
votes
1answer
36 views

SOQL query in a javascript button

On Contract object, i have a javascript button, which is supposed to pass the ID the related opportunity and account as a parameter to a page. How do i handle scenarios where SOQL query fails to ...
0
votes
1answer
12 views

Custom Button Not Opening as a Primary Tab in Service Console

I have created a custom list button on Contacts that can be redirected to a specific record type. I want the Contacts to be open in a new tab. if (typeof(srcSelf) == 'function') { ...
0
votes
0answers
11 views

Prevent mail from being send with a custom “send email” button

I've got this custom "send email" button in javascript. It checks if in n particular field a value is entered. If true, close the tabs and displays a view of cases. If false, only displays a message. ...
1
vote
0answers
15 views

How to add custom buttons to article type page layout?

I need to have a button in the article type page layout that creates a chatter post with some text pre-populated. Best case scenario I would have a button in the toolbar next to Follow for "Feedback". ...
1
vote
2answers
35 views

OnClick Javascript Button Not Working

I built a custom button that should run some JavaScript to update a field value if certain conditions are met. However, when I test the button, the else clause always runs. Any help on what is wrong ...
0
votes
2answers
24 views

Custom button - Java script error - missing ) after argument list

I have a created a custom button using Onclick Javascript action. I have a custom picklist field on Opportunity; I am just checking the value selected for this field on click of this button. If the ...
1
vote
1answer
27 views

Logic in Custom Activity Button

I want to create a single button to add to the Activity History related list on both leads and contacts. I've created the following button but am getting an error: {!IF( Lead.Id != "", ...
0
votes
1answer
19 views

Detailed Page Button Onclick Javascript Upsert

Hi I'm trying to create a custom button with Javascript OnClick function on an object that will use Upsert Functionality. Here's my Javascript Button Function: ...
0
votes
2answers
24 views

Can I use Javascript to populate a custom auto number field only when a button is clicked?

I am very much a Salesforce newbie (I'll apologise in advance :) ), and need some help with some Javascript in our Professional Edition. I have created a custom auto number field in our Opportunites. ...
0
votes
1answer
37 views

Custom New button on Opportunity Tab page

I want to add custom NEW button on opportunity tab. I know this can be done by overriding NEW button by custom visualforce page https://developer.salesforce.com/forums/?id=906F0000000AVm8IAG But If I ...
1
vote
1answer
25 views

How to use formula in custom button defination

In below custom button defination I want to use RIGHT and FIND function in 4th line, how can I use, please suggest /006/e? &retURL=%2F{!Case.Id} &accid={!Case.AccountId} ...
2
votes
2answers
26 views

@future callout + button + multiple clicks = multiple callouts instead of one

I have a button(with Javascript for call apex class) in Opportunity object. I have Apex Class with @future Callout for sending information about Opportunity to Jira. And it's work fine, except one ...
0
votes
1answer
23 views

Visualforce id error

Hi Please find the below code where it is used to add multiple attachments at a time for a custom object .I am not able to add id of the custom object record. we have created a custom button by using ...
4
votes
1answer
45 views

Caching of external js files when using REQUIRESCRIPT function in onclick list view buttons

We have 2 list view buttons on one page and each references the same js file (e.g., hosted on googleapis.com) having line of code: ...
3
votes
1answer
59 views

A problem with the OnClick JavaScript for button was encountered:

I am facing the error {faultcode:'sf:INVALID_TYPE', faultstring:'INVALID_TYPE: sObject type 'SetupEntityAccess' is not supported.', detail:{InvalidSObjectFault:{exceptionCode:'INVALID_TYPE', ...
2
votes
0answers
23 views

Button script wasn't updated from the change set

Some time ago I deployed change set to the production - 1 button and 4 validation rules. Now I have noticed that despite deployment status was "Deploy: Succeeded", button code wasn't updated (but ...
2
votes
1answer
39 views

Default from address is not picking for Salesforce email from Case details Page

In our system, there were multiple Organization-Wide Email Addresses configured and verified. In that I need to make one default address as "From Address" to everyone. Eg: support@xxx.com. I am ...
3
votes
1answer
58 views

How to Add Standard Button in vf page salesforce

I have created a button "Make Donations" for an object Donations__c by going setup-->Create-->Objects-->Donations__c-->Buttons, Links, and Actions-->New Button or link. How to add this button in a ...
4
votes
1answer
132 views

Populate Flow variable with Parent Id - from VisualForce page - launched by related list Custom Button

I have created a Flow which allows my users to insert multiple Currency_Detail__c records from one page. The Currency Detail records have a Master-Detail relationship with Opportunities. I have ...
3
votes
1answer
55 views

How to implement busy indicator (Spinner or loading image or processing icon)

I need to implement busy indicator (Spinner or loading image or processing icon) on a custom button present in a standard page layout while some validation process runs in background.I have custom ...
2
votes
2answers
49 views

SOQL/Javascript Button Questions to pull fields from parent objects

I am trying to create a custom button on a custom object which can only be clicked if a date on the parent object is filled in. I am new to SOQL and javascript but have managed to created custom ...
1
vote
1answer
30 views

Dynamic Button functionality Error as HTML Getting away

I am having a dynamic button on home page side bar problem. I am not much into Jscript and Jquery so any help would be appreciated. I have a button which needs to be displayed only to few users based ...
0
votes
1answer
21 views

Has anyone used transaction control in custom button using Ajax?

I have requirement to use multiple DML statements in my custom button and I want to rollback the changes if DML fails as we do in Apex. I couldn't find any method in Ajax guide.
1
vote
1answer
30 views

I am not getting Account custom field value to pass in window.location?

Please help me with the code, where i am going wrong , on it {!REQUIRESCRIPT("/soap/ajax/33.0/connection.js")} var id="{!Account.Id}"; alert("Account id" +id); if(id!=null){ alert('id is not null'); ...
1
vote
1answer
36 views

Why is this custom email template button not working?

Need a little help with a custom button directing User to a custom email template. My Leads button works like a champ but the same button in Contacts refuses to play nicely: This (Leads) button works ...
1
vote
1answer
31 views

Updating checkbox From custom buttons

I have tried so many times for the checkbox to be updated to true when a file is uploaded, however, despite trying and also searching on google, I still couldn't change the checkbox value.. Is there ...
4
votes
1answer
66 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
41 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
43 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
2answers
42 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
26 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
22 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
32 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
31 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
46 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
73 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
44 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 ...
3
votes
1answer
93 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
41 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
38 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
82 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
88 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
49 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
34 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
142 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
54 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
95 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
126 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
136 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 ...