All Questions
132,635
questions
0
votes
2
answers
98
views
Public Tag on Account not Globally searchable
I am using Public tags on Account. But, Later, I found that it is not globally searchable. Please suggest me the way out.
8
votes
2
answers
2k
views
User Trigger while changing the Chatter Profile Picture
The chatter profile picture url is saved in the User FullPhotoUrl field.
If we try to modify the picture/upload a new picture in the chatter profile image, the trigger in the user object is not ...
6
votes
4
answers
2k
views
Ant Migration Tool deleting objects with Rollup Summaries
I attended the Dreamforce '12 session Team Development and Release Management for ISVs and one segment of the session was about the tools FinancialForce use for blanking an org before deploying a ...
4
votes
5
answers
710
views
ActionFunction on a Sites page with a guest login
I have two very similar VF components with actionFunctions in them. Thee components are conditionally rendered using a formula to see if the user is logged in and are not shown if the user is a guest. ...
11
votes
3
answers
3k
views
Workflow - Outbound Message lost?
If someone could oblige:
When you spawn an Outbound Message (my workflow literally says "on every edit", if the last name is not blank...), and it is supposed to hit a URL and send 3 fields (...
4
votes
2
answers
5k
views
How to identify Bulk Data Load Jobs in the log files
I am trying to dig into our logs and see what is really happening behind the scenes when we bulk data load data into SFDC, but I can't seem to id the operation name in the logs connected with the data ...
0
votes
4
answers
1k
views
How to know where the requests come from to my VF page?
I have a public contactus page(VF page that is hosted using SF sites). I am displaying that contactus page on multiple websites using iFrame. Now the question is that i want to know where the requests ...
3
votes
1
answer
587
views
Color-coding lookup values
When working with picklist options, you can assign charting colors. Is there a way to do this for Lookups?
Example:
Our Opportunities have a Lookup to a custom object, Program, which internally has ...
7
votes
4
answers
175
views
Autoinstall Packages
Has anyone worked out a clever way to auto install/uninstall packages from their orgs? I know this isn't natively supported but is a real pain point for iterating.
I have soap api driven calls to ...
1
vote
2
answers
963
views
Is there workflow API?
After a flow starts in SF, is there any API for external application to get/set the flow status?
0
votes
2
answers
4k
views
Lead Convert & Attach to Existing Contact Overwrite E-mail
Found out that when a user converts a lead with an Email address of [email protected] and attaches it to a contact with an email address of [email protected] -- The email field isn't updated on the ...
3
votes
2
answers
481
views
Is it possible to include a partner/client (or other non-internal employee) in an approval process? If so, how?
If it is not strictly possible, is there a standard practice for integrating an external element into an approval process/workflow?
5
votes
2
answers
8k
views
Greyed out fields on object settings in permission sets
I am trying to give edit permissions for my partners on a custom object, but on the same time, I need them to have READ only on some of the fields that they see.
The custom object includes a text ...
4
votes
3
answers
322
views
Database.com licenses in a Salesforce org
It seems it is possible add Database.com users into a 'normal' Salesforce.com org (i.e. a standard EE or UE org) to allow large numbers of users cheaper access to API and OAuth based authentication.
...
1
vote
1
answer
444
views
Trigger SOQL on Parent/Child/Optional Child situation (Too many SOQL Queries)
The following is a part of an AFTER trigger that I have written.
It works fine - on 1 record... but when you get a few more than 1 I am getting the Too Many SOQL Queries error.
The first select (...
7
votes
1
answer
2k
views
Assign sharing reasons from Dynamically from APEX
Was wondering if there is way to assign the Sharing Reason aka Rowcause Dynamically. Well tried to implement using this "Schema.MyCustomObject__Share.rowCause.My_Sharing_Reason__c" but here I have to ...
3
votes
1
answer
1k
views
Code Coverage question
I saw for the first time in one of my orgs where there is a 29% (61/208) what does that number in the brackets say ?
I have never seen it in any other org. Is this a new release for winter 13 or has ...
0
votes
2
answers
553
views
How to populate a lookup based on a Id
Is there a way I can lookup an User based on Id/ name
I want to achieve the following
1) Object A has User lookup when the User lookup changes I am using a formula on related object to Object A to ...
3
votes
3
answers
4k
views
Accessing chatter user profile picture from sites
I have to access a chatter photo in Sites VF page using partner portal.
I know that chatter photo cant be accessed by partner portal users. Is there any work around?
I saw this link which says that ...
5
votes
3
answers
2k
views
How do I Login as a Contact's Portal User to Force.com Site that uses Customer Portal for authentication?
On the Contact detail page there is a Work With Portal -> Login As Portal User button when the Customer Portal is enabled. I have a Force.com Site that uses Customer Portal for authentication. ...
1
vote
1
answer
304
views
Accessing records via URL in Visualforce and sites
I have a requirement to show the records to the user using my visualforce page in sites based on the url string.
Say for example my custom object name is position.
If a user enters : https://...
3
votes
1
answer
381
views
Changing the position of login information in password reset / New user email template
If I create a new user for my portal through my force.com site (Develop -> Sites),
it triggers an email to the user with the username and password appended at the end.
I have to change the position ...
1
vote
2
answers
341
views
Track the reading of emails in a case - notification/escalation
We would like to track the time it takes for an agent to open an email reply to a case. If an email is unopened for a length of time we need to send out a notification or escalate the case to a ...
10
votes
5
answers
15k
views
How do I support scrolling and lock/freeze the header row of a pageBlockTable?
The following example code adds a scrollbar around the table if the number of items results in a table that has a height that is greater than 500px.
<apex:outputPanel layout="block" style="...
5
votes
3
answers
13k
views
Measuring Size Of output JSON of REST API?
I need to get my size of the JSON going as response.I am using recent REST API's of salesforce using apex annotations like @HTTPGET .Can someone please point me out how will i see the size of output ...
10
votes
4
answers
21k
views
How to check a string has only numbers?
I need to check if the Lead Postal code has only numbers in my Apex code.
Postal code can have alphanumeric.
1
vote
3
answers
9k
views
Why is my reference field returning null my test code?
I am trying to test some code that is working in the sandbox. The code, shown below, uses a reference to obtain the BusinessHoursId field of the Milestone's Case object (m.Case__r.BusinessHoursId):
...
21
votes
5
answers
4k
views
Is it possible to have different password policies for different users?
Can I have a certain profile to have a password change policy of 1 year, and other profiles (or the rest) as change every 60 days?
I know you can set it for the entire organization, I need to specify ...
1
vote
1
answer
2k
views
Isnumeric() method not found
I have used isnumeric() method to check for the strings with only numbers.
While deploying to production i am receiving the following error 'Method not found '.
1
vote
1
answer
5k
views
Invalid Type for Exception error
I want to test that an exception is being thrown in one of my apex classes. This is the beginning of my class that I want to test. It declares a custom exception class and throws that exception from a ...
-1
votes
1
answer
3k
views
How to Get / Update an existing attachment using C#
Is possible to Get / Update an existing Attachment using C#?
If it is can any one share some sample code or resources?
3
votes
1
answer
183
views
Resources for Salesforce Touch development
I am learning to create apps with Salesforce Touch, can anyone recommend any resources to help me?
5
votes
3
answers
563
views
Field Describes in a Trigger causing scalability problems
I have a trigger (simplified sample code below) that is using field describes to determine what fields were changed to conditionally update some other field on the same record. The problem is that ...
5
votes
2
answers
444
views
MIXED_DML_OPERATION, Not Allowed: Original Object CronJobDetail
I'm trying to get around the MIXED_DML_OPERATION. I touch some custom sObjects, custom settings, and than schedule a CronJob via System.schedule
The API Version of these classes is v19, and it's my ...
3
votes
1
answer
422
views
import converted lead with depending objects (meetings, calls, emails, notes)
I am trying to import a converted lead using REST/SOAP API-s. While I am able to create already converted lead, I am not able to attach all its depending object like notes, meetings etc because lead ...
12
votes
2
answers
3k
views
Is this somehow not a bug in the DateTime object exposed by JSONParser getDateTimeValue() method?
I opened a case with Salesforce (#08078994), but their Support Engineer has claimed repeatedly that, "I have reconfirmed and there is no issue with Date Time methods. The issue which you are notifying ...
1
vote
2
answers
128
views
OneApp Profile having View All access to Accounts
I am attempting to allow a group of Force.com OneApp users to be able to Modify All on a custom object that is the child in a Master-Detail relationship with Account. The security access on our ...
8
votes
4
answers
15k
views
How do I get a selectList in my VF page for a custom case controller to work?
I have a VisualForce page that uses a custom controller. This is my controller:
global class CompanyCasesQuery {
//constructors and variable declaration
global List<Case> results {
...
4
votes
2
answers
488
views
How to "diff" components included in managed package versions
I'm trying to get a "diff"-like view of all components added in subsequent releases of a managed package. I know that the PackageVersion type, and its related types, are available through the Metadata ...
3
votes
2
answers
1k
views
Required fields missing in trigger error. Why?
I have created a trigger to add a custom Milestone__c object to a Case on case creation.
I have assigned values to the two required fields, which are Case__c and Start__c, but I am still get the ...
1
vote
2
answers
1k
views
Inbound Email Test Error - 'Invalid type: EmailDemoReceive'
I've successfully set up an inbound email to load a particular set of data, however when writing the test case i'm getting the invalid type error on the following line:
EmailDemoReceive edr = new ...
7
votes
2
answers
11k
views
If I include 'Email Template' in Package.xml why doesn't it download?
I am trying to use the ant retrieveUnpackaged call with the SFDC Migration tool to download some email templates.
I pulled the package.xml from the Force.com IDE and for whatever reason the Email ...
4
votes
4
answers
428
views
Can I transfer a Master-Detail from Lead to Account?
We have custom objects that are used to capture test scores for people who apply to our programs, such as GMAT. Currently, these have a Master-Detail relationship to Accounts, but I would like to ...
2
votes
1
answer
819
views
Why isn't the LinkedIn icon included in the social:profileViewer component?
I'm using the component to replicate the social network icons beneath a Contact profile. I just realized that one of the icons, LinkedIn, is missing and I have no idea why.
I suspect the answer to ...
0
votes
3
answers
7k
views
GROUP BY Clause SOQL
How do I create a SOQL GROUP BY using custom field?
For example:
SELECT id, name, Cultura__c
FROM SC_VPM__c
GROUP BY Cultura__c
This returns an error:
MALFORMED_QUERY.
1
vote
1
answer
659
views
Escape parentheses in Formula inside a VF page
I am trying to use the following formula inside a VF page.
<apex:outputField value="{!RIGHT(currentCase.AssetId,LEN(currentCase.AssetId)-(FIND(')-', currentCase.AssetId )+1))}"/>
This returns ...
1
vote
1
answer
1k
views
Mail merge templating functionalty rebuild for custom object
I want to build more or less the same functionality as the mail merge. I was wondering if there are any standard methods or classes that can aid me. I've made a custom object named "correspondance" ...
1
vote
4
answers
1k
views
Authenticating VF page with 3rd party website
I'm wondering what the best practice is here.
The use case here is the migration of a web application to Force.com as a managed package.
It's desirable to keep dev. costs to a minimum here, so we're ...
23
votes
4
answers
24k
views
whatId when using custom object
I am having an html email template which uses certain merge fields from a custom object. Now I am using following apex code to send certain emails to users.
Messaging.SingleEmailMessage mail = new ...
36
votes
4
answers
17k
views
Custom Exception with a constructor that takes parameters
I'd like to extend Exception to create a custom exception class that takes several arguments in addition to the standard string message.
I've found examples showing basic inheritance (An Introduction ...