A Salesforce ID is the primary key field for any object. It is considered a primitive type in Salesforce and as such can have an sObject cast to a type of Id.

learn more… | top users | synonyms

3
votes
1answer
15 views

Issues with a Query within the main Query using DatabaseDotcom Ruby gem

I'm having a issue with pulling the data out of what would be a array of object data in my SFDC query. Im using the databasedotcom gem. Code def self.data_query #@client is defined at a class ...
1
vote
2answers
148 views

Salesforce1 Navigation with Apex

I'm currently working on the navigation between two custom Visualforce Pages inside the Salesforce1 Mobile App. I'm prefer to do the navigation via Apex PageReference. public static void navigate { ...
0
votes
1answer
35 views

Matrix Report showing a row with Blank value

I have matrix report where in I have only two rows, One with filter value 'Yes' and other is '-', I am trying to filter the report only with 'Yes' value, but this is not working. Also when I select ...
1
vote
1answer
25 views

Email notification under one name

Is it possible to receive email notifications in chatter under one common name? Currently we have a chatter group with 10 members in it. We want that whoever posts in it, the email notification that ...
7
votes
3answers
203 views

Is there a way to change a Salesforce ID?

Salesforce generates and manages the 15-18 character Salesforce IDs for objects in their system. We are getting a super weird error where our system can't handle an ID coming in from a customers ...
8
votes
2answers
257 views

How to pass a variable to the SOQL where clause?

I am using Salesforce API with C#. In the query that I am writing I am not sure how to pass a parameter to the select statement. My query works when it looks like this: SOQL = "select AuthorId,Name, ...
0
votes
1answer
37 views

Invalid Cross reference id due to batch size

I am trying to update a set of users with size 200. But some of them are not getting updated due to "Invalid Cross Reference ID" message. But when I change the batch size to 1, all of them are ...
1
vote
4answers
226 views

How can I convert a 15 char Id value into an 18 char Id value?

What is the formula for calculating the additional 3 characters needed to append to a 15 char Id in order to form its equivalent 18 char Id? I have a situation where I need to compare 15 char Ids ...
2
votes
1answer
37 views

List of objects related to another list of objects

List<Id> quotaIdList = new List<Id>(); List<User> quotaOwnerList = new List<User>(); List<Order__c> orderList = [SELECT Id, Sales_Director__c, ...
2
votes
3answers
222 views

Maps: adding more (related) sObjects than key values using PUTALL method

Here's the scenario: you've loaded a bunch of account IDs as keys into your map. But now, instead of loading account records as the sObject values, you're going to load a related object, such as ...
1
vote
1answer
272 views

Problem with my trigger: Upsert list must not have two identically equal elements

I have a custom object same as opportunity and order line item same as opportunity product. trigger is when i add opportunity line item system will add order line item with same values.trigger ...
1
vote
0answers
17 views

Imoport Data Through Data Loader after converting relationship from lookup to master-detail

i have 1 cutom object with 10000 records, now i want to customize this object & i want to connect this object with 1 object with master detail relationship, so i have to 1st create lookup with ...
2
votes
1answer
52 views

When Merging Duplicate Contacts, is the Id of the Non-Master Record redirected to the Master Record?

When two contacts are merged, does the Non-Master Record Id get added to a list somewhere? It seems like it should, to ensure that Id does not get used again, redirect that Id to the Id of the ...
-1
votes
1answer
69 views

How to add a custom row(header) to a List component of Sencha

I have a Page that renders a list of records from a store. I am using "List" component for displaying it. The list would display one account, one contact and one opportunity in each row. I need to add ...
5
votes
2answers
92 views

Are SObject Id's sequential & should they be used for defining batches in a large data retrieval?

Are Salesforce ObjectIds (15/18 char) guaranteed to be sequential, based on create date? In other words, would the following queries return the same sequence of items?: 1. Select Id from Account ...
1
vote
1answer
100 views

My salesforce - sencha app is not resizing to fit the screen size

In my mobile two of my views are resizing and looking prefect but third one is not resizing. Only half page is viewable and remaining is not viewable. Any help? I have extended "Ext.Container" for ...
1
vote
1answer
38 views

Mapping error in webservie

Below is My webservice it is working for account to opportunity insert, when i inserting a quote records it showing an error Insertion is fail error message requried field is missing opportunityId ...
1
vote
1answer
385 views

WSDL SOAP UI salesforce

Could any one post the step by step process of integration of salesforce with other database. for example:generate Enterprise WSDL---soup Ui....... Can we give an URL to the other platform user so ...
1
vote
1answer
114 views

What format is “data” in, when it is being transmitted from sencha proxy to Visualforce controller method and Vice Versa

I believe that data is coming in and going out as JSON in proxy. But how is the "data" in VF controller? I dont have clarity. Please help. Visualforce controller gets a "List" of data from proxy and ...
6
votes
1answer
401 views

Is it possible to insert multiple records in Salesforce using cURL at the same time?

I am using cURL to insert data into salesforce. It works with single record but I need to insert multiple records at a time. Is it possible to do so and is it possible via a REST interface?
0
votes
1answer
62 views

I am generating letter from visualforce page in french-

I am generating letter from visualforce page in french à is changing into the character of à . like the same way two to three characters are getting changed while generating the letter .can some ...
1
vote
3answers
587 views

AfterUpdate trigger operation fails; Record is currently being modified by another user

ERROR 1 : Subject: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.QueryException: Record Currently Unavailable: The ...
2
votes
1answer
50 views

chatter files-lookup relationship

Can we create a lookup relationship to chatter files? i have file id with with me and was trying to store it in an object.so thought of creating a field which has a lookup relationship to chatter ...
3
votes
1answer
1k views

Can anybody explain the UNABLE_TO_LOCK_ROW error?

Error Message: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 ...
2
votes
1answer
251 views

Adding Custom Objects + Master-Detail Relationships then Rolling Up Objects That Already Contain Data

Is it possible to add custom objects that have master-detail relationships with other objects that already contain records in Salesforce? EXAMPLE: I've uploaded all of my data into the ...
2
votes
2answers
197 views

Error on apex trigger how to specify id in this program

Apex trigger quotepotential caused an unexpected exception, contact your administrator: quotepotential: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on row ...
2
votes
2answers
123 views

Apex trigger-need code optimizing throwing error in deploying in production

trigger quotepotential on Quote_line_item__c (after insert,after update) { list<Quote__c> qu=new list<Quote__c>(); for(Quote_Line_Item__c Qli:trigger.new){ Quote__c ...
1
vote
1answer
68 views

Apex record owner able to delete the record

VF PAGE: <apex:page standardController="Contact" extensions="deletecontact"> <apex:form > <apex:pageBlock > <m>Please make sure that you have removed links to this contact's ...
3
votes
1answer
235 views

Convert Date to milliseconds and milliseconds to Date

I am getting date into JSON as below : date=1382166999 It seems that date has been returned in milliseconds format. Can anyone please suggest the way to convert it into normal date format and vice ...
1
vote
2answers
137 views

Lead conversion apex error

Error:Apex trigger leadupdatecontact caused an unexpected exception, contact your administrator: leadupdatecontact: execution of AfterUpdate caused by: System.DmlException: Update failed. First ...
6
votes
1answer
110 views

Toggle Comments shortcut key

I am looking for the shortcut to be able to toggle comments in Force.com IDE. I use it often in the regular flavour of eclipse and other IDEs. Looking at the preferences page, it seems like I should ...
14
votes
4answers
498 views

SOQL where clause use 15-character ID?

Can anyone confirm this: in a SOQL Where clause, when comparing an ID field to a 15-character string variable, the comparison works. I didn't expect it to work, but it does and I am surprised. I ...
14
votes
1answer
648 views

How do I build a SOQL query for records in a list of IDs?

Can some one correct my soql..I need to export the records in dataloader like where id in ('123123123','123123fsdf') Select Id,Syndication_Documents__c FROM ContentVersion where ...
3
votes
1answer
1k views

Get the ID of a lookup field for Onclick Javascript Button

I am trying to get the ID of a lookup field so I can populate a field on a new record that is created when an Onclick Javascript button is clicked. Basically I need the ID of Birth_Record_c.Dame_c ...
0
votes
3answers
572 views

Type System.StringException: Invalid id: N/A Error when trying to make a list of ID's in a custom object controller

So essentially I'm trying to write simple script that, on record creation, will cause users referenced by the record's lookup fields to auto-follow the record in question. To this end, I'm creating a ...
1
vote
1answer
157 views

Standard fields in Custom Object

How many Standard fields do we have for a custom object ? Is RecordId is also a standard field for the object? Please help
1
vote
1answer
115 views

Querying DashBoard Data

I'd like to query the data of dashboard particularly the stored 'ID'. Is it possible to get the stored dashboard data ID through SOQL query?
3
votes
1answer
1k views

How to get salesforce Ids for fields from apex using Schema methods?

I tried this approach, but the Salesforce Id is not being returned by getDescribe method. Schema.DescribeFieldResult field = Schema.SObjectType.Account.fields.Name; system.debug(' Account field, ...
1
vote
1answer
40 views

Sharing / Migrating Libraries files form 1 salesforce env to other.

Is their any way for Sharing / Migrating Libraries files form 1 salesforce env to other. I have moved some class and Vf page from one env to other other and these class are using Libraries file.
1
vote
1answer
173 views

QuoteLineItem.product_Code__c is a field that is not writeable in Test Class

I'm creating a test class right now and one of the things I need to test is whether the ProductCode of a quotelineItem for a certain Quote starts with 'MA' or not. However, when I create a new test ...
1
vote
1answer
206 views

Extracting Attachment Data from SalesForce, If Attachement ID's are given in hundreds

I have a list of Attachment ID's with me given by the client, I want to extract the Attachment-Data with the given ID's(provided by client). How can i do this...is there any tool or app in SF through ...
4
votes
2answers
600 views

How to updating parentID on Attachments Salesforce

Initially I have a task of moving Attachments from one SF to another SF, but for the parentID on which I have to associate Attachments are not there with me. So what I have done is, created test ...
1
vote
1answer
589 views

Can we have group header for two apex:columns while using pageblock table?

My requirement is to get a common header for two apex:columns. I am iterating over pageblocktable. I know i can use apex:facet for individual apex:column but i dont what to repeat the same header ...
5
votes
4answers
1k 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.
2
votes
1answer
476 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 ...
6
votes
2answers
150 views

Check if a .txt file of IDs all exist in Salesforce

I receive a .txt files of type ID, e.g. 003U000000PL9LN, 001U000000PL9LM, a1fU000000PL9LO. I need to check if these IDs correspond to valid objects within Salesforce. I have a List of IDs in Apex. ...
0
votes
2answers
226 views

Insufficient Privileges for partner portal user

I have created a Vf page and created a tab to view Vf page. But when i try to go to this tab i am getting message - (Insufficient Privileges. You do not have the level of access necessary to perform ...
0
votes
1answer
385 views

Get Started With salesforce api in .net mvc

Am in need to use salesforce API as my new project requires salesforce integration. Am very new to this and gone through some tutorials and set up till : sign up to sales force developer portal. ...
2
votes
1answer
321 views

Getting object name using object ID

My requirement is how to get the object name using Object ID. First 3 places of the record Id depends on Object name. Is there any method to getting the Object name to pass the record Id...?? If ...
0
votes
1answer
37 views

If I create a new set of roles in a developer sandbox will the role ids be the same when I push them to another environment?

I can't test this myself, as I don't have access the other side of the deployment connection. Thanks!