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

0
votes
0answers
10 views

We are having an Integrated process where we use Salesforce API merge operation

This Process will send requests to Salesforce for merging the records using API calls. When tested in a test environment we were getting the result as expected, records which a sent in request are ...
1
vote
0answers
13 views

Exact Target - Individual Email Result object - linking Lookup field to IER records in Salesforce

Apparently Exact Target "uses" Stack Exchange for support issues. More specifically, they have no developer support, and their API is "as-is", and either way I believe I have this isolated to a ...
0
votes
1answer
39 views

Is there anyway to check if an access token is valid or not?

I got an access token from Salesforce and now I want to check if it's valid or not. How can I do this? Updated question. I have a client application and a server. The client requests an access token ...
0
votes
0answers
19 views

Oauth WARN [HttpMethodDirector] Unable to respond to any of these challenges: {token=Token}

I'm just a beginner with Salesforce Oauth. When I try to get the access token with username/password flow everything seem good. This is out put: > Status-Code: 200 Auth response: { "id": ...
0
votes
1answer
34 views

Get SFDC sessionID via access token

As the title. I'm using username/password flow to request an access token. So how can I request a SFDC sessionID from that token?
1
vote
1answer
57 views

How to generate the unique number for a record

I have to generate a Unique number for every record in a object.I can't use the Auto-number and SFDC ID of the record. It's a kind of External ID that external System can use to identify the ...
0
votes
2answers
36 views

Question on trigger to roll up on formula field on detail object

Consider me a beginner in Apex and Programming in general, so i am sorry for what may be a fundamentally dumb question. I am writing a trigger to roll up a formula field, Elapsed_Time_days__c, in a ...
0
votes
0answers
18 views

Salesforce Package Upgrade for Profile permissions

I have a managed package in which I have a custom profile with some pre defined permissions. Now I have created a new release of my package where I have included a new Custom profile. What happens is ...
2
votes
1answer
39 views

Update Salesforce data using Apps Script

[{"message":"The Id field should not be specified in the sobject data.","errorCode":"INVALID_FIELD"}] That's the error message. Any other way to do it? My Code: function update() { var ss = ...
1
vote
1answer
85 views

Is there any reason to log old IDs?

Recently did an org-to-org migration where the first org's ord-id and other IDs will never be used again; went from one trial, to another trial; second trial was converted to a non-trial account. Is ...
1
vote
3answers
432 views

Autopopulate Lookup Field with Account ID using an Apex Trigger

We have a custom object called Internal_Submission__c with a lookup field called Company__c, I need to have this lookup field autopopulate via an an Apex trigger which would take the AccountID from ...
3
votes
1answer
47 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
630 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 { ...
1
vote
1answer
138 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
40 views

Chatter 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
234 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
769 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
81 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 ...
5
votes
6answers
1k 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
55 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
1k 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
834 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
26 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
173 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
96 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
132 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
176 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
39 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
912 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
126 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 ...
7
votes
1answer
762 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
78 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
1k 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 ...
1
vote
1answer
302 views

Query regarding trigger?

I am having following requirement: To get list of all the users for whom profile has been changed. Then query on FRUP (It is a custom object) to retrieve all the records which are associated with ...
2
votes
1answer
66 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 ...
4
votes
1answer
3k 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
409 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
355 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
158 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
82 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
472 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
156 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
213 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
720 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
2k 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
2k 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
1k 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
340 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
169 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, ...