All Questions

6
votes
1answer
771 views

Detect if Compliance BCC Email is enabled

Problem: If the Compliance BCC Email setting is enabled email messages cannot be sent with custom BCC addresses e.g. Messaging.SingleEmailMessage toSend = new Messaging.SingleEmailMessage(); toSend....
4
votes
2answers
5k views

Return type of count() versus count(fieldName)

The following code works Integer i = [select count() from Account]; System.debug(i); But the code below results in and error: "Illegal assignment from LIST to Integer LINE: 1 COLUMN: 1" Integer i = ...
5
votes
2answers
4k views

Test visualforce form submission

I'm trying to write an apex test for submitting a Visualforce apex:form. The page is very basic: <apex:page controller="MyController"> <apex:form> <apex:inputField value="{!...
5
votes
1answer
437 views

Get Last ActivityDate for a group of Accounts

I have a list of accounts that I need to get the last meeting that has been held with each account. Unfortunately the following SOQL doesn't work. I get the following error: "field ActivityDate does ...
2
votes
1answer
2k views

Trigger for Lead Convert trigger unit test coverage only 44%

i am working on this APEX trigger and unit test class. What it does for a existing lead -> a check out let's called "Ready to Convert" once is CHECKED and saved, the lead will be converted to Person ...
4
votes
2answers
6k views

Viewing data in a custom object

I have a custom object that I created in SalesForce. I can't find anything that says, "read," or "view" data. How can I view the data in my custom object?
1
vote
1answer
628 views

How to add CSS file into an iframe in HomePageComponent?

I have to link a css file on home page in customer portal. I want to give this link of css file into home page component, but i am not getting how to add it.
18
votes
2answers
14k views

What's the difference between portal and newly introduced salesforce community

After introduction with salesforce community, I am unable to clear how community is different from portal functionality. I already read here but this don't have answers of question like: What is new ...
8
votes
1answer
4k views

Tooling API usage in salesforce Apex method

I am trying all my level best to know how the Tooling API is used. Can someone suggest or show me with a small example on how do I create a apexClass in a controller method. I have already generated ...
2
votes
1answer
2k views

Switching career from .net to Salesforce developer [closed]

I have more than 6 years of experiance in .Net and I have done a training in Salesforce and I am trying to get Salesforce certified (DEV 401).But I don't have any experiance in Salesforce development. ...
4
votes
1answer
1k views

If there is no data for a specific field, no data is returned

I'm using a left outer join query to bind the query results in a apex:inputField inside the apex:PageBlockTable , if there is a value the field gets populated , if it is null i get an empty field , ...
8
votes
3answers
1k views

Get Communities Selected Tabs

Using Salesforce Communities I am trying to build a custom UI that utilises some of the standard functionality, like getting the selected tabs from "Manage Communities -> Tabs". According to the ...
2
votes
1answer
9k views

SELF_REFERENCE_FROM_TRIGGER error when updating child record?

Im confused becauyse this trigger code is working in the sandbox and was working in production yesterday but today im getting Error:Apex trigger sendDAP1Invites caused an unexpected exception, ...
3
votes
1answer
2k views

Remote Action on VF page published on SITE does not work

I created a VF page published on Site (http://trapptosemplify-developer-edition.eu2.force.com/TR/Login) On the page there is a button "Accedi" which trigger a script using RemoteAction for the LOGIN (...
2
votes
3answers
2k views

Multi-value CustomSettings field

My package has a CustomSetting object that contains all the configuration values needed to power my application. I would like to add a field that contains all "open" lead statuses, configurable by ...
2
votes
2answers
257 views

Is it possible to trigger on Sandbox creation?

Is there an operation when creating/deploying a Sandbox org that would allow you to develop an Apex trigger to send an email out to administrators? If not through a trigger, is there another way to do ...
0
votes
0answers
1k views

deploy error - trigger to create task based on lead comments field update

trigger to create task based on lead comments field update hi i am test a trigger which is able to create a NEW task based on lead comments field been changed, the trigger works now, and i need help ...
3
votes
1answer
8k views

Error: Constructor not defined: [ApexPages.StandardController].<Constructor>()

I got this error when i save my test class: Error: Compile Error: Constructor not defined: [ApexPages.StandardController].<Constructor>() CLASS: public class ContentVersionAlt { private List&...
3
votes
1answer
1k views

Unexpected Error while trying to perform simple Upsert

When sending the following XML and CSV, I get this error on the Bulk Data Load Job Detail screen: Got an unexpected error while processing BULK-API. Contact support with error ID: 1070223644-7484 ...
4
votes
2answers
2k views

How do I write tests for custom classes that primarily use ConnectApi?

I have implemented a VF page that displays a Chatter Group feed using the example classes provided in the Salesforce Cookbook. I have implemented all of these classes (with some tweaks and added ...
1
vote
1answer
724 views

How to get Lead Owner profile from Trigger

I am looking for a solution to get the Lead Owner profile name from Trigger.new , instead of doing a seperate query on "User" record to get the profile.
4
votes
1answer
937 views

How to load feedItem?

I need to migrate feeditem data from my old org to new production. There are about 3,000,000 records (30 "lacks") in old org. Let me know is there any way to migrate it.
1
vote
1answer
1k views

get First contact showed in a related list

I would like to write a soql query to get the first contact showed in a related list. How can i accomplish this?
2
votes
1answer
65 views

How i can access unique date

how i can access unique day my Soql is select Id, Date__c from Object__c where ORDER BY Date__c DESC this Soql is giving me data as 2013-08-17 04:59:06 2013-08-13 04:59:06 2013-08-13 04:59:06 2013-...
4
votes
3answers
697 views

Smart store destroy cache on logout

I am new to SalesforceMobileSDK 2.0, I have developed a hybrid application via sencha touch 2.1 using smart store. The problem is that when I logout from salesforce, all data stored in soups destroys. ...
3
votes
3answers
3k views

Converting Long text area to Rich Text area does not interpret the the HTML tags

I have a field which is currently of type Text Area (long) but has HTML tags in its content. I want to convert it to Rich Text Area but the no formatting is applied after conversion. Is there any work ...
2
votes
2answers
5k views

Get all documents in content belonging to a particular library in SOQL

I need to get documents of a particular library using SOQL. SELECT title FROM ContentVersion where Contendocument.Parent.Contentworkspace.name='EMEA Sales' The error i get is INVALID_FIELD: on ...
9
votes
2answers
6k views

Authentication on API calls with Federated SSO

I'm looking to setup Salesforce using Federated SSO, and then make SOAP (or REST) calls from another application to the SF API. How do I authenticate in these API calls? EDIT... I'm looking to ...
2
votes
1answer
295 views

how to get all the tasks that meet a criteria?

My query keeps on bombing out saying it's taking too long. i'm running it in the IDE. how do I get this info? SELECT count() from task where type = 'Email' SELECT id, ownerid from task where type = '...
3
votes
1answer
2k views

Setting filterId in ApexStandardSetController

I am trying to filter the records based on the selected list view in batch apex. But it fetches all the records and does not apply the filter even though i have used setFilterId String query ='...
13
votes
3answers
4k views

Advice on speeding up Visualforce pages?

I have a fairly complex Visualforce page that displays about 10 fields from about 10 different custom object types including a couple of tables, making about 20 objects overall in total (i.e. 200 ...
1
vote
2answers
826 views

Is there url I can upload to for attachment

I want to use the following plugin to upload image as attachments in salesforce. It requires the url for form action. Is there already defined url for the Attachment object? http://blueimp.github.io/...
2
votes
1answer
1k views

Confused about the API options to

Problem: I'm looking for the REST API that would retrieve on-demand a large number of records in bulk from the Salesforce accounts and other tables. This is to faciliate integration of Salesforce ...
2
votes
3answers
3k views

Can I comment out an entire class and trigger?

One of our classes in Production has begun to produce errors. Because of this we are unable to deploy new code into Production. I am assuming something was done directly inside Production to produce ...
13
votes
5answers
17k views

can we check if a key exists in a map in vf page

is it possible to check for a specific key in a map i.e., whether it exists or not in VISUALFORCE page? Based on this i need to render a pageblocktable.
9
votes
3answers
1k views

Can you change the “Customer” label in salesforce communities?

I am pretty sure the answer is nope but does anyone know if its possible to change the label of "Customer" that shows up next to all communities usersnames in the new communities portal? Its a ...
2
votes
0answers
114 views

chatter must be closed automatically when liveagent goes to offline means

I am Sri working with service console app in salesforce.com and i am using these app for my call center application when live agent is online means for customer..one link is provide by using that ...
2
votes
1answer
181 views

Help with Trigger

Below is the trigger code but i am getting error: Compile Error: unexpected token: 'List' at line 12 column 2 trigger onUpdateOfObjectB on Object_B__c(Before insert,before update) { set<String&...
13
votes
2answers
3k views

Can I tell which fields are present in an sObject variable?

Is there a way to retrieve the list of fields in a specific instance of an sObject? That is, not all the fields that are defined on that sObject, but those fields which are populated on a particular ...
3
votes
1answer
4k views

Community users and internal salesforce role hierarchy

Can we assign community users to internal sales force role hierarchy when i go from setup->manage users->roles and try to add users to a specific roles.i cannot find community users here. Any ...
4
votes
2answers
684 views

Portal User's access to User Object

I have query a query on User object List<User> us = [Select AvatarId__c, CommunityNickname from User where Id = :id]; I am 100% sure it should return a record and it did when I run as my '...
1
vote
1answer
1k views

How i can perform dynamic scrolling in VF page

How i can perform dynamic scrolling in VF page. My vf page code is: <apex:repeat value="{!getdata}" var="data" > <div> My code is here </div> </apex:repeat> i ...
4
votes
1answer
4k views

How can I unit test Uploading a Document using Visualforce and a Custom Controller?

I'm presently playing with the cookbook recipe at http://developer.force.com/cookbook/recipe/uploading-a-document-using-visualforce-and-a-custom-controller ... and trying to figure out how to unit ...
0
votes
1answer
2k views

Getting access token for portal users through OAuth [closed]

I need to get access token for portal users to access a site that was developed in salesforce .I should use OAuth2 method in php to get this access token.Can anyone help me out in solving this issue. ...
0
votes
1answer
275 views

Changing partner users profile gives out alert “No available Portal”

I am creating a new object to hold the news data. As per the documentation, we cannot edit the Gold Partner profile to provide access to this new object. We would need to clone this profile and then ...
3
votes
1answer
1k views

salesforce for outlook: MSI vs. user download?

I'm trying to understand the pro/cons about doing a an install via .msi vs giving our users a link to dl salesforce for outlook. Our company is upgrading from XP to windows 7. Corporate security ...
2
votes
1answer
2k views

Uploading to Custom Object then Matching Contact Object?

How do I import data (via csv file) into a custom object in SalesForce and then use identifying fields within the custom object (such as First Name, Last Name, location, etc) to "lookup" and ...
11
votes
1answer
7k views

How to create a List of Map objects

Is it possible to create a list of map objects? Here is what I am currently trying: public List<Map<String, Integer>> slaMap = new Map<String, Integer>[] { new Map<String, ...
3
votes
0answers
2k views

Setup Auto-Response Rule when using Email-to-case for emails not related to an existing case

We have a specific workflow where most messages send to support and our other address is specifically given to the client once they have signed up and we email them directly. I am trying to setup an ...
0
votes
2answers
124 views

can i have a record with 2 lookups to a single object show up on both related lists?

So, my title may be misleading here, so apologies.... i have a lead record with 2 different look up fields to the account object, but different records. I know I can have the lead appear on the ...

15 30 50 per page