All Questions

0
votes
1answer
551 views

how to cross the SOSl query Limit

I have a class with SOQL and SOSL query. the SOQL query fetches List of unique emails from an object.The emails in the List are then passed to the SOSl query. the Problem is the List has more than 20 ...
1
vote
1answer
2k views

Bind the picklist with other objects

I am showing one pick-list of a custom object on one VF page now I want to bind this Picklist on the other Custom object means, On the selection of picklist record all the fields of another object ...
1
vote
2answers
439 views

Remove the Button “Discover Summer Release” on Home Page

On the Home page, to the top right corner there is a button link "Summer 13 Developers" found. One of my client's requirement is to remove that button on the home page. Im using this code to hide the ...
13
votes
5answers
14k views

How to call Apex REST API from Javascript?

I have two different developer orgs. One contains apex REST web service, and I want to call that REST service from my second org. I have tried to call that REST service using normal ajax post request ...
7
votes
1answer
10k views

Custom link to download/export report in single click

I have a custom link titled Download on my Contacts page layout that when clicked currently takes me to the Export Report page with standard buttons Export and Done. I used the URL content source /...
-3
votes
1answer
1k views

Need Columns to use picklist values as headers and show flitered (picklist value) in each column

Haha, deleted the question. I have a picklist field called Account_Management_Type__c and it has the values of "Key (WIG)", etc. I am trying to set up the vf page so that each picklist value is a ...
11
votes
2answers
4k views

Why use JSON.serialize in @RemoteAction return statement

I can't figure out why in an @RemoteAction method you would want to JSON.serialize the object being returned? I see this in a lot of code and I'm trying to understand the reasoning. I thought @...
3
votes
1answer
8k views

Javascript alert on button click

I want to prevent users from being redirected when they click a button and picklist value is false. I have a custom button on Opportunity related list on account. If the value of Account type is 'OLD'...
9
votes
3answers
1k views

Salesforce Packages not Visible even after 5 hours of uploading

I am trying to Install a package that was created about 5 hours back. Below is the Error: Package Installation Details Help for this Page Invalid Package This package is not yet available. Please try ...
2
votes
1answer
2k views

Salesforce JSON Error : |FATAL_ERROR|System.JSONException: Illegal value for primitive

I am trying to run this code, I am getting this error in Apex Salesforce Console *|FATAL_ERROR|System.JSONException: Illegal value for primitive* public class content { public String MTType; ...
1
vote
1answer
3k views

Invalid Foreign Key Relationship

I have the following snippet of code: List<ID> AccountIDx = new List<ID>(); List<ID> ContactIDx = new List<ID>(); List<ID> OppIDx = new List<ID>(); AccountIDx....
1
vote
1answer
538 views

When in Managed Package config/development is the namespace absolutely required?

I'm working to develop a process for developing managed code in an unmanaged environment, and I'm unable to find a comprehensive list of places where adding the namespace in config/code is absolutely ...
1
vote
2answers
486 views

Using site.getName() with custom settings method getInstance()

I have two identical statements that I am running in execute anon and I am getting different results based on the which org I am running it against. In my packaging org if I run the code below, I get ...
1
vote
2answers
7k views

Would a formula field get evaluated in a Before trigger

I have a before insert trigger. In this trigger I am comparing a formula field which references the family of the product with a hardcoded value. If they match I display an error message. When run ...
1
vote
1answer
1k views

Package Not Found

We are having issues passing packages between dev and test. The dev org is on NA7. QA is using NA9 Package Not Found The requested package does not exist or has been deleted. Please contact the ...
11
votes
1answer
355 views

Is it possible to access Chatter influence in Apex?

Chatter Influence is accessible through the REST API, but not through Chatter Connect. Is there any convenient way to access influence, or do I have to make a call out (and back in) to the Chatter ...
5
votes
1answer
4k views

Link to download Chatter file download in VF

I have attached a File to my custom object record. I want to display a link to the file on a VF page which also shows information about my custom object. I tried doing something like this. APEX: ...
5
votes
2answers
12k views

Why am I not getting the Record Type name when I use RecordType.Name

Shouldn't I be able to get the Record Type name with RecordType.Name ? In the following code I am able to get the ID by using RecordType.ID - but I get a null value in the string if I use RecordType....
0
votes
1answer
3k views

How can I use panelgrid and repeat in a VF page?

I have used paneldgrid to create a table with VF where field values are fetch from the Lead object. How can I create a custom controller to query the data base and bring field values from the Lead ...
3
votes
1answer
13k views

Assigning set with a soql query

Does anyone know why below code returns me with only 1 record set<account> myset = new set<account>([select id from account limit 100]); system.debug('SETTT' + myset); But when i say '...
19
votes
7answers
9k views

How to get a list of the managed packages (including version numbers) installed in an org?

For a continuous integration setup, I only want to install/upgrade some packages (through the new InstalledPackage mechanism) when necessary. I've looked at the Metadata WSDL (and documentation) and ...
5
votes
1answer
348 views

Salesforce Platform Mobile Services

I've been doing force.com mobile development for several years now but I'm very confused about the nomenclature with some of the recent changes. 1) Is Salesforce Platform Mobile Services (recently ...
1
vote
3answers
5k views

External id specification in child object foreign key reference field

This is the reference for this code :http://bobbuzzard.blogspot.co.nz/2012/03/create-parent-and-child-records-in-one.html What exactly happens behind the scenes,when we say Account acc=new Account(...
1
vote
1answer
53 views

Is there a way to schedule two reports at the same hour?

When I schedule a report to execute in a hour, for example 8:00 AM. I cannot schedule another report in this same hour. I want to do it for two or more reports.
5
votes
2answers
4k views

Creating custom WSDL so that external system can invoke our webservice class

We are trying to integrate SFDC with External system, were external system will invoke our webservice class(consumers od of WSDL) and salesforce will accept the request(Providers of WSDL). Here ...
1
vote
2answers
42 views

Selection of Second Look up on basis of First Loook up data

I have one Custom object "Client and other one is Facility", there is look up relation in this When I Save any Facility record Client is Mandatory. Now I am giving both these object records into third ...
2
votes
2answers
4k views

Insert list of children from parent object

Why is below code not possible Parent__c myparent = new parent__C(); myparent.child__r = new list<child__c>(); when i try to execute this,i am getting a compile error.,field is not writable. ...
2
votes
1answer
148 views

How to upload from sandbox to production quickly?

Is it everyone that faces the same issue? I am trying to upload one class and it takes up to half a day. This platform supposedly should be easy to manipulate, but one hour in today and I can't ...
7
votes
3answers
721 views

How to search for a long list of arguments

We have reports to search all cases that contain certain serial numbers (strings) in a custom text area field that can contain a comma-separated list of serial numbers. Additionally, serial numbers ...
5
votes
1answer
538 views

Not getting login screen to protect private customer portal page

I have a VF page that is (supposed to be) privileged to authenticated Customer Portal users, but when I clear my browser's cookies and enter the URL for the page, I get immediate access without being ...
2
votes
2answers
2k views

API Login call is failing when logging in on different PC's

I have a user account on a clients Salesforce. These credentials are used on our Web service to connect and upload data to that clients Salesforce account. However I have found that only my PC will ...
5
votes
1answer
732 views

Error when I populate lookup with external id using .put method

You can populate lookup fields using an object with an external id field populated like so: Custom_Object__c o = new Custom_Object__c(Account__r=new Account(External_ID__c='123')); insert o; ...
6
votes
4answers
5k views

Conditional rendering of buttons when using apex:detail and inlineEdit=“true”

Use case: Conditionally render the 'Submit for approval' button based on some criteria while ... Exploiting apex:detail relatedList="true" relatedListHover="true" inlineEdit="true" and Hiding the '...
3
votes
1answer
801 views

access records based on user id - roles setup

I am new to Salesforce, and need an advise. We are planning to create a custom object and custom tab for it. Now, we want user to be able to access only his/her record, or records related to him. For ...
2
votes
3answers
10k views

Nested SOQL query?

so, the following query is pretty self explanatory: SELECT p.Accountid, p.Name, (select name FROM Account where id = p.Accountid) FROM Contact p order by accountid' is there any way to do this in a ...
3
votes
1answer
133 views

updating the data with new field impacting lastmodifiedby and salesforce internal error

I have the ContentVersion object, where I have a custom field called Year__c, which was initially set as text but I need to change it to a number field. but If I change it to number field, Salesforce ...
5
votes
2answers
2k views

Spellcheck within a custom object/textarea/Notes field

And now, some backstory. I have no previous Salesforce experience, and I'm an emerging developer. I work for a company that uses the Opportunities section to track clients and the insurance products ...
1
vote
1answer
658 views

Avoid SOQL 100 error by querying outside of the loop

I'm currently running a program which limits a query to 95 items in order to avoid the SOQL 100 queries error. THe relevant snippet of the program looks like this: while(x!=0){ ...
3
votes
1answer
1k views

How to obtain “Related Content” information in SOQL/APEX

EDIT: There were two questions earlier. I figured one out. Please see below We can have Attachment objects on custom object records but can we for example, associate a Salesforce File or Content ...
2
votes
1answer
154 views

Saved content not displaying content right away on unauthenticated force.com page

Im trying to do a custom simple save and new method in a custom controller. Basically its just a simple form for nominations with a table above it of all the already submitted nominations and the ...
4
votes
1answer
738 views

Reset password not working with custom domains from VF page

I have a VF page which does among other things allows resetting of passwords of users. I am using System.resetPassword(usrid,true) to send emails to user whose password is been reset. This ...
5
votes
1answer
7k views

How to access all the public groups relatedto an user in apex

I am trying to find out all the public groups related to an user and display it on a vf page. Is this doable? Step 1: from Groupmember I get the group Id related to a user using list<groupmember&...
4
votes
2answers
2k views

Wrap the without space Text in Visualforce PDF

I have the Problem to wrap the Text in PDF and the Text is without Space something like that "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa". Please Help me to solve this. Thanks in Advance.
0
votes
0answers
45 views

What is the best practice for creating unique compound primary keys in salesforce? [duplicate]

I have a custom object in salesforce where I want to enforce uniqueness across two lookup fields and a date field. I do not want to allow two records to have all three of those fields in common, but ...
2
votes
2answers
2k views

Using JQuery, wanting checkboxes to be checked based off of criteria

I have implemented several apex:inputCheckboxes in my Visualforce pages. I used a JQuery function to handle the showing and hiding of these functions. I have outer checkboxes that once checked ...
4
votes
1answer
666 views

Default states missing when state and country picklists are enabled

I've had the "state and country picklist" feature enabled in a production org today. The documentation says: In this beta release, 239 countries are provided by default, as well as the states and ...
4
votes
0answers
87 views

Also_Called_on Trigger [closed]

I am trying to write trigger for doing following updation on Call__c object Call__c is having M-D relationship with account. Account has fields ---------- co-owner field, call_by other_c ...
1
vote
1answer
2k views

I have provided a authorization is security for page

I am new in salesforce. I have created a page in my page i Have one form with standard controller. When I run that page I got this error -- Authorization Required You must first log in or register ...
2
votes
1answer
839 views

Opening Body Tag in a Component

There may be a better way to do this but right now I am creating a Header and Footer Component. In the header component I have an opening ... SFDC is looking for the closing tag and I cannot save ...
2
votes
1answer
1k views

Save Multiple objects records from One VF page

I have custom objects A,B,C,D which has look up relation in another object E. Now I want to create one VF page in which all all the fields of each object will come and on click of save all record will ...

15 30 50 per page