All Questions
134,101
questions
3
votes
1
answer
2k
views
Migration tool trying to deploy all /src when package.xml only specifices one custom object
I am trying to set up a Jenkins job which uses the migration tool to move code from a source control system to an org. To test the job I created a new custom object named aaaTest__c. I changed my ...
2
votes
1
answer
207
views
Adding additional dropdowns on selection
I have a cascading dropdown (two dropdowns with one dependant on the other) in one of my objects which allows users to select a product, this information is the passed onto another object via flat ...
0
votes
1
answer
81
views
Code Bulkification Problem
I have a requirement to bulkify the code. The trigger is present on Case Object and I have to take the CaseTeamTemplate Id's whose names match with the CaseTeamTemplate objects.
I have written this ...
3
votes
1
answer
713
views
need a method for json string which contains null value and does not contain attributes{ }
please help me, I need a method for json string which contains null value and does not contain attributes{ }.
Here's what I currently have:
List<Contact> contacts = [SELECT Id, Name, account....
0
votes
0
answers
805
views
Creating booking system in customer portal
Is it possible to implement a booking system in the customer portal, allowing contacts to book appointments with the account manager (for the client they belong to)?
I notice that Salesforce has a ...
1
vote
1
answer
250
views
How will salesforce handle non english characters in subject line of email to case
I have set up email to case, some of my customers will reply in language other than english (say chinese, etc).
I have set up case queues based on keywords or unique number they send in the subject ...
2
votes
1
answer
115
views
Salesforce1 looses the information about the parent Id
I have a custom object with some Record Types. This custom object has an overwritten New page.
This Visualforce page works fine on desktop but it don't work within Salesforce1.
The problem is that ...
0
votes
1
answer
58
views
Assigning a view to a specific record type
I want to have 2 different record types for my Account object. Say 'A' and 'B'.
They are related to each other i.e. my Account objects have many-to-many relationship.
I want to create a view say 'All ...
10
votes
1
answer
5k
views
Report Folder Sharing setting SFDC bug?
Background
We need to configure a folder "Company X Reports" which has to:
Everybody can view
One profile called Supervisor can clone reports from there and save only in "My Personal ...
1
vote
2
answers
176
views
Force.com public API Governor limit error codes
I am developing a public Force.com API (published using Force.com site) using Apex REST services. I am planning to list all possible errors (especially governor limit errors) that can be returned when ...
0
votes
1
answer
79
views
create outbound message in veeva to a mobile number
Can someone help me here? I have a requirement to send message notification in mobile number of the User when he/she is inactivated in the system.
IF(AND(ISCHANGED(ISACTIVE),NOT(ISNEW())),true,false)
...
1
vote
1
answer
50
views
Related to scheduling :How insert a list in spite of one of its element is having exception
I have set scheduling on Lead in which on daily basis a SMS and a mail gets deliver as a reminder to client. But when there is an error in email id and salesforce display an error that mail id is not ...
1
vote
1
answer
125
views
SOQL results question
I know SOQL can only retrieve data.
Now my question is, WITHOUT WRITING APEX, given that a query have 4 results. I know I can filter the results to 1 by limiting row and pretty sure this could be the ...
2
votes
2
answers
213
views
non-selective query error in sandbox
Is anyone else seeing an increase in non-selective query errors recently? I've been seeing them a lot over the past few weeks, in various instances, in places where they weren't happening before, ...
7
votes
2
answers
8k
views
Salesforce Visualforce Email Template {!Recipient.Name} does not have the correct value
I have an object called 'Request'. This object has three lookup fields 'Reviewer 1', 'Reviewer 2', 'Reviewer 3' (User object); besides other non-relevant fields.
I have created a Workflow rule, which ...
5
votes
3
answers
10k
views
Call a method in controller from Component (not in Constructor)-Visualforce
<apex:component>
<apex:attribute name="l" description="l" type="double" assignTo="{!Received_L}"/>
<apex:attribute name="varLng" description="t" type="double" assignTo="{!Received_T}"...
0
votes
3
answers
2k
views
Insufficient Privileges error while clicking on any tab in salesforce
After installing a managed package in salesforce I log in with another salesforce credentials, after that I clicked on custom pages and it shows Insufficient Privileges error.
How to fix this issue?
4
votes
2
answers
1k
views
Governor limit SOQL 101 being suppressed. How?
As far as I know, Governor limits can not be suppressed and will be shown to user on the UI.
However I am facing below scenario where SOQL 101 limit is being logged into debug log and not being shown ...
4
votes
2
answers
2k
views
Unable to create a Connected App: "The application name has been used before" even when it has not
I managed to add a connected app in a sandbox instance but when I try to add one in the production instance, I receive this error.
The application name [name] / [API name] has been used before. Use ...
4
votes
1
answer
322
views
Can't seem to use $ObjectType in a component
I found myself using a bit of code to display a searchable history of a given SObject, for a couple of different SObjects so I thought it sensible to create a component, that could be told the SObject ...
2
votes
1
answer
1k
views
Attach dynamically generated visual force PDF to a visual force template
I have a requirement where I need to attach a dynamically generated VF PDF to an email generated with an email template. Though I am able to send the template, I am not able to send the attachment. ...
1
vote
1
answer
44
views
check profile in Opportunity Before update
I have a requirement, where I have to write an Opportunity Trigger.
We have a Custom Object : CheckStageConfig__c. It has 3 fields : From_Deal_Stage__c(picklist) , To_Deal_Stage__c(picklist) and ...
0
votes
3
answers
1k
views
Visualforce Homepage component
I wrote a VF page which I use as a VF Homepage Component on the Narrow Side (Side bar).
Showheader and sidebar page attributes are set to FALSE.
My page uses the standard controller of one of my ...
1
vote
0
answers
37
views
Remove Push Notif Listener using class/controller
Is there a way to remove notification listener using the class/controller of my VF page?
http://www.salesforce.com/us/developer/docs/api_console/Content/...
3
votes
1
answer
21k
views
Inner classes can access outer class private variables
Documentation here says
private This is the default, and means that the method or variable is
accessible only within the Apex class in which it is defined. If you
do not specify an access ...
1
vote
2
answers
1k
views
apex:selectRadio Value attribute thrown error "Invalid selectOptions found. Use SelectOption type in Apex."
When i used value attribute in selectRadio as below, i got an error such as
Invalid selectOptions found. Use SelectOption type in Apex.
But it works with itemValue instead. Any suggestions please....
1
vote
2
answers
766
views
Is it possible to use controller in live agent pre chat form
My live agent is working fine.
But i want to add captcta in live agent pre chat form. But i am not using controller for live agent, so is it possible ?
Any suggestions please ?
2
votes
2
answers
19k
views
How to export Knowledge articles
Is there a way to export knowledge articles from sandbox and import it to production environment ?
I tried translation workbench but it is not working. My articles contain images, so i cannot use ...
1
vote
2
answers
5k
views
How to display custom error message in a Standard Visuaforce page
I have a requirement, where I have to catch the error message in an Opportunity Trigger and have to display it on top of the Standard VF page.
What, I know, we can go for Sobject.field.addError() to ...
6
votes
2
answers
37k
views
How to find current record's RecordType name
I have a requirement where I have to write some logic in an Opportunity Trigger.
Requiremnt is , I have find out current opportunity's record type and have to check whether that recordtype name ...
4
votes
1
answer
2k
views
How to re schedule a batch if already 5 apex batch jobs are running
I am trying to schedule a batch after 15 mins from my post installation script which take 100 records and process it. But it might be possible that when my scheduled job will start already another 5 ...
1
vote
1
answer
1k
views
How to avoid hardcoding values when mapping field A picklist to Field B picklist
I have one custom field on opportunity as ABC__c it is a picklist field and contains value a,b,c,d,e my requirement is depending upon ABC__C field StageName standard field on opportunity should be ...
2
votes
1
answer
1k
views
Bind datepicker value from visualforce page to controller
How to bind the datepicker value to controller. I used onfocus="DatePicker.pickDate" but it was not displaying datepicker in sandbox so i am using as below.
<apex:page standardController="...
1
vote
0
answers
359
views
Authentication with google calender api
have been trying to integrate google calender api with salesforce was able to achieved it using auth 2.0 ,has i navigated it to google page for auth ,so now when i was trying to use auth 1.0 with ...
12
votes
1
answer
16k
views
Find Apex batch status programmatically
I have a batch class, I need to email and run another batch in the 'Finish' method of batch ONLY IF the batch ran successfully. I would like to have batch status in the finish method (like the batch ...
2
votes
1
answer
4k
views
How to select one radio button from each radio group in visualforce page?
i am trying to select only one radio button from a table which has been built by <apex:repeat control. Now the issue is, user can select all of the radio buttons in a logical group of radio buttons....
1
vote
0
answers
106
views
problem in RegistrationHandler Interface in salesforce
I am creating gmail single sign on in salesforce...i have created class to implement RegistrationHandler Interface but when i try to login with new user it gives an error
Error :Missing Required ...
3
votes
1
answer
113
views
CustomMetadata and CustomMetadataValue in Summer 14 Metadata API
In the Summer 14 (v31.0) of the Metadata API complex types are added for CustomMetadata and CustomMetadataValue. The latter appears in the values element of the former. CustomMetadata extends Metadata,...
2
votes
2
answers
2k
views
How to download uploaded file in box.com?
I am doing integration salesforce with box.com so after uploading file i want the download that file.Like in google drive we set approval_prompt=force and response body contain webContentLink for to ...
3
votes
1
answer
302
views
Following a topic in Visualforce
i have a list of topics in my visualforce page.i get topics list using soql query
Select Id,Name,TalkingAbout,Description from Topic
i want to show a follow button in that when it will be clicked ...
6
votes
5
answers
7k
views
Why am I receiving this error "Cannot read property 'tid' of undefined" when using JS Remoting?
I've called a JS Remoting function on document.ready(). It works fine intermittently. But throws this error in Console when sometimes I come back to a page after a day and it was loaded a fresh:
...
2
votes
1
answer
2k
views
Using URL Name in Articles
i created an article in salesforce.its url name is How-do-I-Change-my-Password .i have visualforce page.in which there is a link when clicked should redirect to article.i put href attribute value as ...
1
vote
1
answer
1k
views
Unable to upload file on box.com in readable form
Hello everyone,
I am doing integration salesforce with box.com when i uplod file that time first i convert blob into base 64 encoded string then send file using rest api ...
5
votes
1
answer
2k
views
Find nearest branch from ZIP code entered by customer
We need to calculate the distance between the ZIP code entered by customer and the nearest branch (Branch is an object) to that ZIP code address. The Lat and Long values are calculated for both ZIP ...
2
votes
2
answers
311
views
Class Properties are not accessible
I am new to Salesforce and have what I though would be very simple code. For some reason this is throwing an error:
public class GetSet {
public class BasicProperty {
public integer prop {...
3
votes
1
answer
3k
views
List has more than 1 row for assignment to SObject
Can anybody help me with this script, this is a simple update when the trigger is fired, (it works in sandbox)
What can I use instead of items.values().PO_Details_Ordered__c = ... I am pretty sure ...
0
votes
1
answer
305
views
Updating standard objects from Online submissions
How do I update records in Leads / Contact object through online submission (Force.com Site). I know it doesn't allow direct updates but is there an indirect way to do this? How?
Second is I want to ...
2
votes
1
answer
332
views
I'm getting an error invalid type cat3__c while Passing Values to JavaScript from Apex Controller Method
my vf page:
<apex:page controller="ActionFunctionDemoController">
<apex:sectionHeader title="Action Function Demo" subtitle="Save a New Record"/>
<apex:form >
<apex:...
5
votes
1
answer
1k
views
do javascript remoting calls need a try/catch?
Currently in my javascript remoting calls I check for if (event.status===true) in the callback. I handle any errors in an else. However, it seems it also throws an exception.
Example: [Error] ...
2
votes
1
answer
253
views
How can I access the data/metadata of the Salesforce homepage via REST API?
I'm trying to make my Salesforce application as dynamic as possible. One of the things I'd like to do is pull the meta-data and data that make up the Salesforce home page. Is this possible, and if so, ...