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
0answers
18 views

Getting Ajax response 404, when calling javascript onClick button [closed]

{!REQUIRESCRIPT('http://192.168.1.7/ConVox3.0/scripts/jquery-1.8.2.min.js')} var username="vinod"; var password ="12345"; $.ajax({ type: "POST", url: ...
0
votes
1answer
30 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
21 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
22 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
35 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
45 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
20 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
0answers
31 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
39 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
64 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
35 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
30 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
votes
0answers
34 views

Access parent account ID in visualforce page navigated to from a custom button on a related list(on said parent account's page)

Say I have a custom object "B". "B" has a master detail relation to the Account object. On the Account object there is a related list for "B" and on that related list there is a button. That button ...
1
vote
1answer
26 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
17 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
28 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
30 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
28 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
45 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
23 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
35 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
35 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
17 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
20 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
29 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
26 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
30 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
50 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
38 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
67 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
30 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
35 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
59 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
68 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
40 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
98 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
50 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
89 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
76 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
81 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
42 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
18 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
62 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
140 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
22 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
78 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
89 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
55 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 ...