All Questions

Filter by
Sorted by
Tagged with
8 votes
2 answers
4k views

Test future dates

Struggling with how best to test my controller extension - My extension onload sets a picklist value based on the month number. My issue is I can only test current month e.g. Nov. If I explicitly set ...
Michael Gill's user avatar
  • 2,202
3 votes
1 answer
106 views

Only receiving Single Result when querying HashtagDefinition

I have this query List tagOptions = [SELECT Name FROM HashtagDefinition]; List<String> tagNameOptions = new List<String>(); for(HashtagDefinition htd : tagOptions){ ...
Jonathan Jenkins's user avatar
3 votes
1 answer
486 views

Can't find syntax error in region field lookup

I have this formula for a custom sales region field Look-up. SFDC says "Error: Syntax error. Missing ')'" I can't find a problem. Can you help? IF( OR( ISBLANK(BillingCountry), UPPER(BillingCountry) =...
Sam's user avatar
  • 39
25 votes
6 answers
32k views

Is there a list of Salesforce images that can be used in custom pages and formula fields?

I have a Visualforce page that includes some Ajax functionality as follows: <apex:actionStatus id="searchtStatus" stopText=""> <apex:facet name="start"> Searching....<img ...
Peter Knolle's user avatar
  • 29.1k
52 votes
6 answers
26k views

Is it possible to test apex that relies on field history tracking?

I have some code that relies on field history tracking by querying the History for a custom object. This works fine, but it appears that the history records aren't created during the test so none of ...
jwolf's user avatar
  • 800
2 votes
1 answer
497 views

Visual Workflow Error in managed packages

I am playing around with Salesforce visual workflow but getting an error 'The (DB_Add_Object) element in your flow has validation errors.' I'm just trying to create an object based on a few fields on ...
Kris Moyse's user avatar
5 votes
5 answers
3k views

Importing UPS Street Address WSDL into Apex

Have anybody been able to successfully use the UPS Street Address Validation WSDL in Apex? I'm getting the following error message when I use the wsdl2apex: "Unsupported WSDL. Found more than one ...
Joey Chan's user avatar
  • 928
4 votes
2 answers
2k views

generateURLfor method in urlrewriter? how will it be invoked?

I was trying to implement the urlrewriter as mentioned in the below url http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_site_urlRewriter.htm want to know how this generateURLfor ...
Sathya's user avatar
  • 3,232
7 votes
1 answer
2k views

Send bulk financial force emails

I am trying to automate the sending of sales invoices generated through financial force. I would like a one click process which fetches the outstanding invoices, bulk emails them and then marks them ...
ArthurGuy's user avatar
  • 223
11 votes
2 answers
2k views

Multiple currency in Managed package without breaking support for non-currency orgs?

I want to implement support for Multi Currency in a Managed Package, while still allowing support for regular orgs without multi currency enabled. Does anybody have any experience with this scenario? ...
James Davies's user avatar
  • 1,124
3 votes
2 answers
2k views

Managed package can't access class defined in subscriber org via Type.forName

I'm in the process of making a managed package extensible via an Apex plugins pattern. Basically there is an interface defined in the managed package that the subscriber Orgs can implement and then ...
Daniel Ballinger's user avatar
11 votes
2 answers
4k views

Determine if a Type implements an interface

I've created an interface within a managed package that installers can implement (much like the example here and Making your managed package extensible with Apex Plugins). Clients can then configure ...
Daniel Ballinger's user avatar
1 vote
1 answer
128 views

salesforce mobile app with unlimited edition

So I tried logging into an unlimited edition instance with the Salesforce Mobile app and according to this: http://www.salesforce.com/mobile/apps/salesforcemobile/comparison/ I should be able to ...
Phil B's user avatar
  • 5,026
11 votes
1 answer
407 views

Best way to measure SFDC system performance as perceived by the end-users

In order to do proper performance optimization, and hunt the true bottlenecks, we need to know the current performance situation as perceived by the end-users. I.e. as a minimum the duration from the ...
sorenkrabbe's user avatar
3 votes
1 answer
3k views

Custom Report Type Broken

I deployed a change set that included two custom report types for accounts with opportunities. These two custom report types sat next to an existing custom report type. Ever since this deployment ...
user218's user avatar
  • 31
10 votes
2 answers
4k views

If it doesn't exist auto-create Organization level Custom Settings in my APEX code

We have created a hierarchy custom setting to store some data instead of hard-coding it into our managed package. Had I known that SF only auto-deploys the setting itself and NOT an Organization ...
AngiB's user avatar
  • 515
10 votes
2 answers
2k views

Why do we provide security access to apex classes

I have a visualforce page 'TestPage' which has access to all the profiles in my organization(say A,B and C). This page has a controller 'TestController'. This controller has access only to two ...
Priyanka's user avatar
  • 1,909
8 votes
1 answer
11k views

Creating a user with DML

I have the following Apex code: User mike = new User(); mike.Username= '[email protected]'; mike.Email = '[email protected]'; mike.Lastname = 'mike'; mike.Firstname = 'white'; mike.Alias = '...
Phil Hawthorn's user avatar
7 votes
1 answer
4k views

Why are visualforce pages served from a different domain?

There are a number of reasons why this is frustrating. The biggest for me is that embedded visualforce pages can't use JavaScript to access the parent frame. There doesn't seem to be any benefit ...
Daniel Blackhall's user avatar
0 votes
1 answer
3k views

sendemail method not working

In a commandbutton I have an action called save and in that method in have sendemail method with condition in this way... public void save(){ // my code here if(member.name=='MyName'){ ...
Eagerin Sf's user avatar
  • 1,085
5 votes
2 answers
4k views

Creating sobject using if i know object api name in string

I have an sObject which I know it's api name (without namespace prefix). How can I create a reference to it?
doga's user avatar
  • 4,575
60 votes
3 answers
32k views

Lead Conversion Trigger Order of Execution

I've got a project where I'm looking to tweak the standard lead conversion process. Triggers and lead conversion has always been funky in past projects so I was hoping to start the design off by ...
Ralph Callaway's user avatar
6 votes
4 answers
1k views

Adding specific contacts to outbound case emails

I'm trying to figure out a way to add a list of contact email addresses to a case custom field anytime a case is created. Use case: Specific accounts require other people to be emailed on any of the ...
Fifedog's user avatar
  • 661
15 votes
4 answers
21k views

How to override salesforce standard object controller save method to intercept it in a visual force page (Inline Edit)

Hi there I created a visual force page to with a standard lead controller as the controller and extend it. I want to do this so i can still utilize the apex:detail control and not reinvent the wheel ...
Prafulla Patil's user avatar
9 votes
4 answers
21k views

What overrides a profile?

I am confused about the hierarchy of settings 1) I have a profile A and it has a read only access. I have a permission set specific to an user and the permission set grants the user access to edit ...
Rao's user avatar
  • 16.7k
39 votes
2 answers
844 views

Similar queries: Better to query twice or process via Apex?

I'm building a Visualforce page in which I want to display two similar (almost identical) lists of the same sObject -- one for objects with an Open status and one for Closed objects. I can think of ...
Benj's user avatar
  • 11.2k
4 votes
1 answer
9k views

Changing the api name of a custom object

I have created an object,created fields in it and wrote all visualforce pages and classes. Although I have changed the name of the object its API name has not changed. I want to change the API name as ...
Eagerin Sf's user avatar
  • 1,085
7 votes
1 answer
3k views

Salesforce timezone issue

Hi guys we have a problem with DST (Daylight Saving time) We show the time in a Visual Force interface according to the time zone of the logged in user. However in the Salesforce objects we are ...
Malaka Silva's user avatar
-2 votes
1 answer
467 views

How to get an Id of another object

I have a Soql Query where I need to get an id of another object. Here is the query list<object1__c> odj = [select field1__c from object1__c where object2__c=:dataid]; If it was in the same ...
Eagerin Sf's user avatar
  • 1,085
1 vote
1 answer
2k views

Is it possible to schedule a report to be sent as email every month

I have a few reports generated and would need to send them out as emails. Questions i have Is it possible to send them as attachement? Can the emails be scheduled to be sent every month? I tried ...
Prady's user avatar
  • 12.3k
8 votes
3 answers
4k views

Getting remaining licenses of customer portal using apex

When a new portal user is created, can we check the number of used and total portal licenses?
doga's user avatar
  • 4,575
1 vote
1 answer
708 views

Securing composite app single sign on with salesforce session Id

We currently have an integration with our external platform inside salesforce by using IFrames. For authentication we pass the Salesforce session as a query string parameter inside the IFrame address ...
tamizhgeek's user avatar
0 votes
1 answer
1k views

How to move accounts and contacts from one salesforce org to another org

I want to move accounts and contacts from one salesforce org to another. I know i can use the import wizard. The question i have is about setting up the csv file. Do i have a single csv for both ...
Prady's user avatar
  • 12.3k
-5 votes
1 answer
148 views

I need Help on validation rules [closed]

I need assistance on creating Validation Rules on Account Object- If the Vehicle Makes(Editable) field is populated, then the Franchise_Type_c must be populated. If the Franchise_Type_c field is NOT ...
appu's user avatar
  • 11
6 votes
2 answers
3k views

Parse Pathparam equivalent in restService

I want to create REST URLs like /contact/{contactId}/test/{testId} and want to pull out the variable conatctId and TestId using a PathParam equivalent from Jersey in Apex RestService code. How do I ...
Vijay's user avatar
  • 269
2 votes
3 answers
5k views

Does the Open CTI adapter require any additional licensing?

I'm under the impression that the Open CTI adapter can be used in both the Service Cloud Service Console and the standard UI (in the side bar) at no additional cost? i.e. a Service Cloud license is ...
Steven Herod's user avatar
  • 3,523
9 votes
3 answers
46k views

Redirecting back to original page using visualforce

I've overridden the standard button "New" of a custom object with a VF page. On this page, for saving record I'm using standard "save" action. But on saving, it's not redirecting back to the original ...
doga's user avatar
  • 4,575
5 votes
2 answers
5k views

Visual work Flow: Display multiple records via Record lookup

We have a requirement where in we need to search for duplicate contacts ( based on contact email , first name, last name etc). Once all duplicates are listed to the user , then they can choose the ...
Srinivasu Julakanti's user avatar
1 vote
3 answers
3k views

Single Object Approval Processes run separately

I want to have a number of different approval processes run off Opportunities for things like discount approval, credit check and a compliance check. Is there a way I can set these up as separate ...
Kris Moyse's user avatar
6 votes
4 answers
7k views

Create CSV file bigger than 15 MB from within Force application (no dataloader, etc.)

I need to export data to XML/Excel or CSV from Salesforce.com Checking the current limits I just see those options and limitation: Render file via Visualforce page with special Mime-Type <- LIMITS ...
Robert Sösemann's user avatar
35 votes
6 answers
54k views

What are the possible options for UserType?

The Salesforce docs describe the UserInfo.getUserType() call, which returns the same options as user.UserType. But I can't figure out where to find a list of the possible return values. Please ...
Benj's user avatar
  • 11.2k
2 votes
2 answers
2k views

Basic Example of a Lookup?

I'm am having a ridiculous time finding basic Trigger examples (background: no official training, have books, have experience elsewhere, figuring this out on my own). I am trying to write an insanely ...
AMM's user avatar
  • 4,724
3 votes
2 answers
869 views

Load data into custom object from RSS

Can I load the data into a custom object using a RSS feed provided by an external vendor? Is there any kind of parser/a method that will consume the RSS and let me fetch data from external service? ...
Rao's user avatar
  • 16.7k
2 votes
2 answers
2k views

Assign business account record type for enabling person accounts

I am currently trying to enable Person Account Type. I have followed the steps mentioned in the relating guide and submited the issue to customer service. But now they bug me a lot, with really non-...
mcbetz's user avatar
  • 927
7 votes
5 answers
5k views

How can I import data owned by people who are not Salesforce users?

I am migrating to Salesforce.com from an on premise CRM system. I have a large amount of historical data relating to users who have now left my company. I need to bring this data into Salesforce and ...
Born2BeMild's user avatar
2 votes
1 answer
636 views

What is the best workaround for the lack of the FeedItem/FeedComment trigger firing when you like a Chatter post?

Unfortunately SFDC decided to not make the relevant triggers fire when you like a Chatter post. It also doesn't fire if someone comments on a Chatter post (the FeedItem object has both a LikeCount and ...
Ryan Elkins's user avatar
  • 7,687
2 votes
2 answers
1k views

Alternative layout for tabPanel?

The <apex:tabPanel> element displays with a row of horizontal tabs, like so: Is there a way to indicate an alternative layout, such as a column of tab buttons with the content to the side? (I ...
Benj's user avatar
  • 11.2k
2 votes
2 answers
3k views

Setting List View Parameters?

I know that it's possible to modify the filters on a Salesforce report by using URL query parameters like pv0=SOMETHING. Is there any way to do this with List views? What about with list views ...
Benj's user avatar
  • 11.2k
6 votes
2 answers
3k views

Prevent Username from being logged into multiple sessions and/or IP addresses Concurrently

Has anyone fielded a request to prevent a username from logging into multiple sessions at once? The problem is that currently Salesforce does not have declarative way of preventing logins, of the ...
Justin J Carlson's user avatar
4 votes
2 answers
4k views

How to publish a connected app (the replacement for Remote Access settings)

So I am trying to setup a remote access piece for using OAuth for a rails app. Remote Access in this org seems to have been removed and replaced by the new Connected Apps feature. When I create a ...
pbattisson's user avatar
  • 3,308

15 30 50 per page