All Questions

1
vote
2answers
615 views

Disallowing Login from Connected Apps

I have two connected apps in my developer org. One is for Android and other for iOS devices. What I want to know is why a user can have multiple login sessions in different devices (or same). Is there ...
5
votes
1answer
2k views

Can anybody tell the difference between REST and RESTful services?

it has been 2 days i gone through more than 20 to 30 articles without a solution. this is my need, Current Scenario: i have a Drupal website, it has two interfaces, where the user can access ...
2
votes
1answer
69 views

Calendars malfunctioning in Spring '13 release?

In the sandboxes i've tested that have the Spring '13 release, I think there's a bug when the user creates an event in either the public or personal calendar. I navigate to the calendar, double click ...
2
votes
1answer
3k views

How List all the Properties of Validation Rules through Metadata Api

I need to list all the Properties of Validation Rule like Status, Description, Error Message, Error Formula inside the Salesforce through Metadata API. As per my understanding, we can retrieve only ...
3
votes
4answers
1k views

RegExp to extract namespace prefix from SObject name

I want to get a potentially empty namespace prefix from arbitrary sobject names by using Regexp. All following cases should be covered: 1. StandardObject 2. CustomObject__c 3. ...
1
vote
3answers
4k views

INVALID_CROSS_REFERENCE_KEY, Can not select a person account: [AccountId]

My test class for inserting contact is static testmethod void invoicetest(){ string strrecord = [select id from RecordType where SobjectType='Account' AND IsPersonType=True limit 1].id; ...
7
votes
4answers
10k views

How do display an input type=“number” using VisualForce

I am trying to use HTML5 new number control using type="number" with one of my custom fields. I have problem to set the proper ID of the field so the controller will get it properly and store it. ...
2
votes
1answer
2k views

How to Automate Translation

We need a way to copy English translations of picklist labels into other languages. Given a picklist on the Opportunity object with values Y and N translated as follows: Value EN_us DE ...
3
votes
1answer
3k views

Deploy Selected Classes with Ant

Supposing you want to deploy only selected classes using ant from the force.com ide to various orgs. This can be tricky because you need to ensure both your package.xml and your payload (either your ...
0
votes
2answers
2k views

How to send Weekly Email to email-fields of records?

I have rejected Workflow Rules, since email alerts can't be sent at the exact same time every week. I have rejected schedulable Reports/Dashboards since emails can't be sent to email fields of records ...
1
vote
1answer
1k views

How to Customize the Email template on chatter posts

I want to customize the email template sent on the chatter post of the record with the @user full name to have some fields from the record. Is this possible, or how can I achieve this? Please help. ...
7
votes
2answers
721 views

Is a list from a subquery modifiable?

I am trying to modify a list of sobjects that I get from a subquery but it appears that adds to the list are simply silently ignored. sample code: Account acc = [select ID, (select ID from Contacts ...
40
votes
9answers
35k views

Disable commandButton after first click to prevent double submission

I have an apex:commandButton on a visualforce page that invokes a method on the controller. There is currently no rerender value set for the button. Instead the controller method returns a ...
2
votes
2answers
989 views

How to build a Stackexchange-like search while typing in Salesforce

We have an internal defect tracker in Salesforce which should have much more of the charming features of Stackexchange. One feature that I love the most is the live-search for duplicates while ...
4
votes
1answer
3k views

Enhanced Lookup filters not returning correct values

I am setting up a suggested lookup filter on the Contacts of a New Case Entry page layout. The problem seems to be that only results from "Recently viewed Contacts" is returned (in the screen you can ...
2
votes
2answers
1k views

Field, attachment Encryption

Does Salesforce support encryption of attachments (does it automatically encrypt attachments), if not could it be implemented? If so how? Does Salesforce supports Encryption of Types other than Text (...
1
vote
1answer
490 views

Page Layout - Parent -> Child - > Grand Child

Is it possible to display Parent -> Child -> Grand Child -> Great Grand Child Details in Parent Detail Page Layout. Out Of the Box it seems only Parent -> Child be displayed. In case if this feature ...
0
votes
2answers
1k views

Unexpected Null Pointer exception in testing

My Test Class is global class Feedpost9 { // your methods here... static testMethod void testRest() { // set up the request object System.RestContext.request = new RestRequest(); ...
1
vote
1answer
194 views

How is the presence or lack of managed package version data in APEX and VF meta files controlled?

From time to time I noticed that my meta files for Apex and Visualforce get changed to include specific references to managed packages version information as shown below. However, my classes don't ...
0
votes
1answer
79 views

Login as portal user when using custom domain

Is it possible to use the "login as" feature for our customer portal users if the customer portal is build as a force.com site with a custom web address (www.mysite.com)?
5
votes
1answer
4k views

Pricebook and currency

We have set-up products with a USD and CND price. We have multi-currency set-up in SFDC. When I set an opportunity to USD and select products, it all works fine. But when I set the opp to CND, no ...
8
votes
4answers
2k views

Learning development with Force platform. Any good books?

I'm a bit familiar with Java and SQL, any good books to get on coding in Apex for salesforce?
0
votes
1answer
287 views

object Name being replaced with object ID

So, the relevant snippets of code are: function doFunction(choice) { switch (choice) { case "changename": changeName(document.getElementById("...
4
votes
1answer
2k views

Weird issue with inner class not being covered via Test Class?

I have a test class that is basically covering a class which has structure like public class classA { public class classB implements Triggers.Handler { public void handle(){ ---...
8
votes
1answer
5k views

Maximum length of Autonumber name field

I know that if you create a custom object, with an Auto-number Name field with a format, e.g. MYC-{0000} you will be able to create records from MYC-0000 to MYC-9999. The moment you create 10,000 ...
2
votes
2answers
652 views

Merge multiple user ids

I have a developer user id that was set up on force.com before my company was set up on Salesforce.com. I was invited to my company SF, but my email address is already in use - by my other account. ...
2
votes
1answer
1k views

What fires the activity reminder pop-ups in Salesforce?

Is it tied to a page load? If so, which pages? Or some other element inside the page? Sidebar maybe? Is it possible for a packaged app to interfere with the reminder pop-up function? I'm trying to ...
0
votes
1answer
140 views

Empty picklists when account is dragged to calendar to quickly create Event

There's a checkbox in Setup -> User Interface that allows you to drag Accounts from list views to calendar & quickly create events. When you drag them, a "balloon" pops up with all the fields (...
5
votes
1answer
270 views

Is there away to pull a users standard layout in edit mode and place it on a VF page?

I know there's a ways to do this using tag to view the detail page, but once you hit edit it will use salesforce standard edit page. I've also created a custom edit page but the problem I'm running ...
3
votes
1answer
1k views

SOAP XML node Sequence

So I recently had the task of logging in using the SOAP API. I constructed the envelope, and logged in fine with the following: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/...
0
votes
1answer
314 views

chatterfeed toggle not working post Spring '13

in my application I created a Javascript(posted below) to show and hide chatter feeds in the home page which was working fine till winter release.But post Spring '13 release the chatter toggle ...
2
votes
1answer
6k views

Call static method from the same class

What is the equivalent of this when calling a static method in Apex, besides the class name? For instance class A { public static void foo(){ this.bar(); //what to use here, instead of ...
12
votes
2answers
3k views

SOQL result ordering in the absence of an Order By clause

In the absence of an Order By clause in a SOQL query, what order will Salesforce return results in? Clearly if ordering is important then Order By should be specified, but I recently encountered a ...
10
votes
4answers
2k views

Converting the Salesforce Pod Id to ServerUrl/Name

Given a Salesforce Org Id, how can I determine the name and serverUrl to use with APIs?* For example, given the Org Id 00DE00001234ooT I can get the Pod/Server identifier from the first character ...
5
votes
1answer
3k views

Salesforce Developer Workbench Hosted Version OAuth Error - Remote Access Authorization Error

On attempting to log in to the hosted Workbench site https://workbench.developerforce.com with my force.com credentials, I am constantly getting an error that seems to be OAuth flow related. But I am ...
3
votes
1answer
8k views

Report Formula - Percentage per row per column (not entire table)

I cannot find ANY help with what proper references to use for this. If my report has only one column to the matrix (first screenshot), the following Formula works to product percentages per row in ...
1
vote
3answers
474 views

Markup in Richtext field seems to be trimmed/modified on save.

It seems to me that the markup inside of Salesforce richtext fields is somewhat stripped/trimmed when saving? My code relies on the fact that an image has an multiline alt attribute (which is valid ...
3
votes
3answers
3k views

IFrame into SalesForce

I would like to surface SalesForce into our on prem SSO application via Iframes. Currently we are hitting a snag whereby both VF pages and normal SFDC views do not support iframe rendering. Is it ...
0
votes
1answer
238 views

SOQL query produces different result with same input

In the process of writing a unit test on Opportunities, I'm inserting a custom object Journal_c. This custom object, Journal_c, has an after insert trigger associated with it. When running the test, I ...
1
vote
1answer
1k views

Force.com IDE - Deploy Entire Org. to New Org [duplicate]

Possible Duplicate: Copying metadata and code from one Production org to another Quick Question. I'm trying to deploy an entire org.'s metadata into a new one, specifically its sandbox, but ...
0
votes
1answer
2k views

Apex example Code to copy Account field values

I am new to SalesForce. My goal is to create a scheduled Apex function that runs once all 24hours that just copies Account.Field("field1").Value to Account.Field("field2").Value. Is there a good ...
3
votes
3answers
11k views

Generating package.xml for deploying with Ant from Eclipse

I'm using Ant to deploy from within Eclipse and facing a challenge of having to manually manage my package.xml files. Currently I am unhappy that I a) have to manually manage my package.xml entries ...
1
vote
3answers
11k views

possible to pass selected picklist value to controller via apex:param

Is there any way to pass the current value of a picklist to a controller via apex:param? I have my apex:param inside of a action:support onChange so when the user selects a picklist option it passes ...
2
votes
1answer
160 views

Required Picklist from Custom Object view

When you add an new field to an object in Salesforce.com, it is possible to check the "Required" checkbox to make it mandatory for every data insert/update. I know it is possible to make it required ...
30
votes
10answers
19k views

Get Site URL from apex

Is there a way to get the URL of a salesforce site from apex I need this to send the url in an email message, so the apex is run outside of the site context. I basically want to expose a link to my ...
3
votes
1answer
2k views

Rerender the column in the page block table on command button

I have a page block table whilch has two columns one with the data and the other with two buttons to move the records up and down. I am not able to rerender the column on the change. The code is as ...
3
votes
1answer
563 views

Render a tab for certain public groups

I have a custom page that overrides the default account page, dividing it into multiple tabs. I was wondering if there was a way to use the "rendered="{!IF($.........." to make the tab available to ...
0
votes
1answer
129 views

Building up URL to include package name in email template

I can put a hyperlink to an Opportunity in an email template by doing: <a href="{!LEFT($Api.Partner_Server_URL_140, FIND('.com/',$Api.Partner_Server_URL_140)+3)}/{!opportunityId}> link </a&...
1
vote
1answer
1k views

Need to show multiselect picklist field as checkboxes in vf page?Any suggestions plz

i Need to show multiselect picklist field as checkboxes in vf page?Any suggestions plz. and also want to save the value using controller.
0
votes
2answers
1k views

how to cover Id!=null part in test Class

public class democlass{ public string invoiceid{get;set;} PUBLIC DEMOCLASS(apexpages.standardcontroller controller){ invoiceid=apexpages.currentpage().getparameters().get('id'); **if(invoiceid!=...

15 30 50 per page