All Questions

1
vote
1answer
250 views

Adding email to a package

I am trying to create an unmanaged package. When I try to add it, I get: "My Personal Email Templates" and "Unfiled Public Email Templates" cannot be added to a Package and are not shown in this ...
8
votes
3answers
3k views

Custom REST Service HTTPS error

I am building an apex REST service to be hosted on a public site using the approach outlined here (basically hosting a REST service on a site allows you to perform actions against it without ...
0
votes
2answers
727 views

Getting handle to data in finish method of batch job

I have a batch job which gets a number of users in the start interface. So I implement the following APIs global Database.QueryLocator start(Database.BatchableContext bc) global void execute(...
8
votes
1answer
3k views

Enabling Single Sign-On for Sites using Salesforce as the Identity Provider

I was wondering if anyone has had success in trying to enabling single sign-on for sites using salesforce as the Identity Provider. https://login.salesforce.com/help/doc/en/sso_sites.htm I have used ...
5
votes
3answers
496 views

Is the most common use case for custom settings lost in managed packages?

Background Public custom settings included as part of a managed package can be maintained by users of the target org if they have the Customize Application permission, which seems somewhat heavy ...
2
votes
1answer
2k views

pre-populating apex:inputFile tag with attachment file

I'm using an apex:inputFile tag on a VF page to import files that are added as attachments to records. If the user returns to this VF page is it possible to show the apex:inputFile prepopulated with ...
6
votes
2answers
5k views

Apex bypasses field-level security?

Can an apex code, invoked by a non-admin user, perform an update on a field that has a field-level security of visible and read-only for non-admin profiles? If so, what is permitted/restricted by the ...
0
votes
2answers
450 views

Approval Emails sent from salesforce

Is there a way to get the log of all the Approval emails sent from Salesforce. I tried to get the log of all the emails sent out by requesting for email log, but for some reason feel like the data is ...
10
votes
1answer
8k views

Setting new user passwords in Apex

I have a method that creates a new user and sets a custom password, everything works fine to the point where I try to log in with the new user and get an error that the login details are incorrect. ...
4
votes
2answers
1k views

How do I deploy a changeset from Sandbox to UAT sandbox to Production?

I want to create a deployment chain where I configure a changeset in a DEV sandbox, deploy to UAT (where it can be tested but not changed) and finally deploy that same changeset from UAT to Production....
3
votes
1answer
229 views

Adding a VF page to setup area

As we all know, setup area contains all links in sidebar and shows relevant content in right side when we click on a link in left side. I want to add my link to left sidebar. Can I do that? Any ...
1
vote
2answers
2k views

Can we query hidden fields in apex?

There is a field named "Email Opt Out" in the contact object. Can we query this field and put in the filter condition if the "Email Opt Out" field does not have both "Field-Level Security" and "Field ...
2
votes
3answers
5k views

System.QueryException: List has no rows for assignment to SObject

following apex code public String getLastUpdatedAt() { String timeStr; DatadoctorStatus__c last = [SELECT LastUpdated__c FROM DatadoctorStatus__c ORDER BY LastUpdated__c DESC LIMIT 1]; if (last == ...
4
votes
3answers
6k views

Avoiding the password notification to be sent to the User on creation

When i create new user through salesforce UI i dont want the password notification to be sent to the User .Is this possible ?I know one solution is to uncheck the generate Email Notification and new ...
0
votes
1answer
819 views

ActionFuntion Rerender in VF page leads to sudden “Insufficient Privileges” - even as Admin

To make a VF component appear to load faster I used an actionFunction to load it only after the rest of the pages has loaded (jquery's document.ready). After doing this my component showed an "...
0
votes
2answers
433 views

Updating a User custom field

I have added a custom field of type String to the User standard object. I'm trying to update it from a controller but even though I see the update succeeds in the Debug Log the value is not actually ...
3
votes
1answer
260 views

Lead/Account relationships

Ok, so it's pretty obvious that these guys are extremely intertwined. The question I have is: How can I, using the API and PHP, query the lead and account and get the PersonContactId if it is a ...
2
votes
2answers
7k views

How to use output text date format to respect locale [duplicate]

Possible Duplicate: Visualforce Locale specific date format Is there anyway to get the <apex:outputtext> tag to respect a user's locale when printing out dates? Example Controller: public ...
32
votes
5answers
16k views

Object Deploy fails with: “duplicate value found: <unknown> duplicates value on record with id”

When I try to redeploy an object that exists in source and destination orgs, the deploy fails with the cryptic and useless error message: duplicate value found <unknown> duplicates value on ...
2
votes
0answers
448 views

Invalid sObject type 'DataDotComEntitySetting'

We have Data.com, namespace jigsaw_clean, v 2.16.2 installed and I am encountering an sObject type error when I try to do a simple DML statement in a unit test script. The test method instantiates a ...
4
votes
1answer
139 views

Expose filtering to users of a joined report

Is it possible to expose the filters on a joined report to the end user without forcing them to customize the report? My use case calls for the someone to be able to filter by a date field on each of ...
1
vote
2answers
69 views

Is it possible to create a view of contacts that's based on global tags from the accounts to which they belong?

I need to notify people at a set of accounts that a product they've purchased has been updated. This is not the long term solution that I want, but what I did for the time being was put global tags ...
0
votes
1answer
74 views

Values in OpportunitiesHistory do not seem to be there

My test does: Opportunity opp2 = opps.get(1); opp2.probability = 40; upsert(opp2); opp2.probability = 30; upsert(opp2); System.debug('****opp2History=' + opp2.OpportunityHistories); I was ...
6
votes
1answer
187 views

Klout installation not auto populating std fields in Salesforce for Social Media App

Salesforce for Twitter and Facebook (v4.6), includes a Klout score and Klout number field. If I manually entered Klout number in as 59 the app will then auto populate the Klout score. Should this be ...
1
vote
4answers
1k views

<apex:inputText> changes ID and Name

I have a simple form where I need the input box to have the name and id in it. http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inputText.htm As the docs says, this: <...
1
vote
1answer
146 views

Salesforce sites license and oauth

I could answer this question by spending a day doing it, but has anyone tried using oAuth to log in a sites user? My concern is that since usernames are not globally unique, but only unique to that ...
3
votes
2answers
577 views

Where can I check the value of $Setup variables?

I have this code: <link rel="canonical" href="{!$Setup.websiteSystemVariables__c.Main_URL__c+$CurrentPage.Name}"/> I want to check where the $Setup.websiteSystemVariables__c and $CurrentPage....
1
vote
2answers
352 views

Detecting chatter on a visualforce page

I have a VF page which uses standard controller (custom object). Basically I am overriding view action for a custom object. Now I have a section on this page which I want to show only if chatter is ...
3
votes
4answers
7k views

Track Salesforce Report Usage

For orgs with sensitive data reporting can be a double-edged sword in that it can make it easy for disgruntled employees to walk away with a lot of data. We'd like to try and limit this by monitoring ...
1
vote
2answers
1k views

VF controller system context versus Sites Guest User object permissions

I'm trying to clarify VF controller context versus Sites Guest User permissions on Contact record. From everything I've read, a VF controller using "without sharing" operates in the system context. ...
1
vote
1answer
890 views

APEX Access to Default Case Owner and Automated Case User

Is the user/queue set as the Default Case Owner and Automated Case User accessible via Apex? I'm creating a visualforce extension where I want to assign either the Default Case Owner or the Automated ...
1
vote
2answers
109 views

Is there a better name for what I'm calling a Vanity Lookup?

Here is an example from a 3rd party managed package of what I am currently calling a "Vanity Lookup" because it is totally redundant from an OOD/ERD perspective and I assume it is only for convenience:...
2
votes
1answer
171 views

How to enter opportunities in NPSP's opportunity tab?

I am using the Non-Profit-Starter-Pack (NPSP) with the 1-to-1 model. I want to create an opportunity from the opportunity tab. I tried to insert a field for contact here, but cannot find it when ...
4
votes
1answer
603 views

Authentication approach with Salesforce in Mobile App

Here is my case study: We are developing a mobile app. The mobile app interacts with two salesforce orgs i.e. Metadata org : Having all the customer metadata required by mobile app for each customer....
20
votes
2answers
2k views

Managed Package Integration without Extensions or Dependencies

Suppose I am developing a managed package and I want to build some additional packages that can integrate to it. Let's call the main package Package A. I want to create a separate package (Package B)....
7
votes
2answers
3k views

Pass parameters to constructor when using System.Type.newInstance()

I have created an Apex InterfaceFactory that the user can use to get an instance of a specified implementation of an interface. For this I use the System.Type class. The actual name of the class can ...
4
votes
3answers
5k views

custom sites domain name redirecting to salesforce login screen?

I set up salesforce sites to work with our customer portal and added a custom domain name to it but for some reason in any browser that I am logged in to salesforce the domain name just redirects to ...
1
vote
1answer
1k views

Custom convert lead button using code

I used this link to help me create a custom conver button on the lead so that way I could default check "Do not create new opportunity upon conversion". The button is created and from what I can tell, ...
4
votes
2answers
3k views

Checking the way to stop duplicate names - validation rules or triggers

I have a custom object with name and a lookup to contact among other fields. The need that i have is that i need to make sure that only record name should not be duplicated for a contact. There can ...
8
votes
1answer
620 views

How do I stop apex code being run at the same time?

I'm not sure if anyone is able to answer this question (I've been to Salesforce Support already who weren't any help on this issue) but I thought I'd ask it anyway and see if anyone has any ideas how ...
0
votes
1answer
4k views

SOQL return type: List<sObject> vs. sObject

I've been working with Apex for a couple of months now and I still haven't figured this out. When does a SOQL query return a List of objects (even though it's just one object in the list) and when ...
3
votes
1answer
3k views

Passing parameter to controller extension?

I wish to create hyperlinks to a specific visual force page which displays a list of opportunities. The data in the page will need to be different. In some cases it will be all open opportunities ...
3
votes
0answers
361 views

Call center Implementa​tion in Visual force page

I have a small requirement , Actually My client using Avaya Call center Application in Salesorce (like a soft phone), With this Call center Agents are getting the calls from the customers through ...
2
votes
1answer
3k views

Bulk API Unescaped Quotes

I am trying to read the result from my Bulk API job I have successfully submitted to Salesforce. When I call my CSVReader.nextRecord() I get the following error: Exception in thread "main" com....
1
vote
5answers
6k views

Trying to write a trigger to update a parent object from child

I have a child object to my contact called Rating. On this object we have ratings for products and overall ratings. I need a field on the contact called NPS_Rating updated with the newest overall ...
2
votes
2answers
9k views

Rest API Parameters are not getting passed to method

I defined rest API method as follows - @RestResource(urlMapping='/verifyaccount/v1/*') global class VerifyAccountService { @HttpPost global static String VerifyAccount() { ...
1
vote
1answer
1k views

Complicated Query with many subqueries

So I have a rather complicate query that I am trying to do all in one step which may or not be possible To try and explain I have custom objects called "paths" and paths are specialized content ...
13
votes
1answer
1k views

Is it possible to use Facebook SSO with portal users?

I know you can use Facebook as an identity provider but it seems to be limited to "regular" users. Can you also use Facebook as an identity provider in the portal? How does it match back to a user ...
2
votes
1answer
538 views

How to link account to pricebook

I'm working on an application in which it should be possible to link an account to a pricebook. Because for different accounts, different prices may be appropriate. Is there a way to directly link an ...
2
votes
1answer
119 views

Tapping into the Org's limits

How can I tap into my org's limits/usage programmatically? I know of the Limits class but that seems to only show me usage for the current execution 'thread' I would like to tap into the org wide ...

15 30 50 per page