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

2
votes
1answer
35 views

invalid ID error using SOQL to get field from related record

I am getting an invalid ID error in my VF page on the below code and I don't understand what I am missing. In my controller's constructor I am running the below code: ...
0
votes
1answer
41 views

my query not working?

I am querying the products from a particular price book as below.i want to select product code, product name, product family and list price.To show all these columns in my table. (Select ...
0
votes
1answer
8 views

How to assign select option values to picklist field

I want to assign selectOption values to picklist field. like: public String[] selectOptions{get;set;} Object obj = new Object(picklistfield = selectOptions); can I do like this? Thanks
0
votes
0answers
21 views

History tracking for more than 20 fields [duplicate]

How can i track history for more than 20 fields for a custom object? Are there any ways to achieve it? Please suggest some good options to track the changes for more than 20 fields.
3
votes
0answers
27 views

Re-parenting Master-Detail relationship in managed package

I have installed a managed package in my org and unfortunately one of its master detail field(of one object created by managed package) is not allowed for re-parenting. i.e., "Allow reparenting" ...
2
votes
1answer
33 views

Assistance with a query

One of my query is failing and giving Apex CPU time limit exceeded The field we are using in custom formula in Contact created to retrieve the domain from the standard Email field to possibly reduce ...
2
votes
1answer
24 views

Non editable field permission setting

How to set this type of field(e.g. Account number) permission where permissions(Visible and Read-Only) are non-editable(greyed out) using any profile?
0
votes
0answers
43 views

Download an Attachment in VF page, Chrome issue

I have created a VF page which displays the attachments of a case. I have added the below piece of code to view or download a file. <a href="/servlet/servlet.FileDownload?file={!attachment.id}" ...
2
votes
2answers
40 views

Need help with Salesforce Process Builder

I want to add lead in the campaigns automatically based on lead source. For that I am using process builder and object I am choosing is Lead source = web and the Immediate action I am choosing is ...
2
votes
1answer
19 views

Not able to query RoleInTerritory2 field from UserTerritory2Association in Apex class

I want to query the RoleInTerritory2 field from UserTerritory2Association sObject. I am logged in as System Admin profile but still not able to query this field. Starnge thing here is that I am able ...
0
votes
0answers
19 views

Getting first and last created SObject id after instance split

Production org recently went through instance split. Before instance split I was able to find out first id created for any sobject and last id created for any sobject by simply making a query(Created ...
0
votes
1answer
21 views

Need Help in Making Dynamic Sooql using Like Operator

I am trying to create Dynamic Soql Query using Like Operator given as below: String tempInput ='\'%' + inputValue2 + '%\''; soqlRAD2 = soqlRAD2 + ' and ...
0
votes
0answers
46 views

excel not downloading in safari browser and IE

I am downloading data from a visualforce page excel ,it's working in chrome and firefox and not working in safari and IE Any suggestions would be helpfull code snipett <apex:page ...
0
votes
1answer
44 views

Downloading from visualforce page to excel?

Hi i have page which contains the contacts information ,these information is displaying in pageblock .This data is exported to excel when i click export button ,the data is exporting but the issue is ...
0
votes
0answers
30 views

Remote Action not working in safari browser?

I have remote Action in javascript which is working in all browsers but not in safari browser. Here is the code snippet below . i have table with delete action,when i click the delete link ,it will ...
1
vote
0answers
29 views

APEX , sobject based on multiple IDs

There are 4 custom objects (starting with CO_) in the below for loop which are all inter connected and this code is working as expected. prodId is the Salesforce ID of CO_Product__c which is passed as ...
0
votes
0answers
20 views

Records Using External Id for SF Dataloader

SF: Professional Packages: Workflow/API Hello everybody, We want to treat an External ID from our ERP like an Salesforce ID to Modify an Record according to this external one over the Salesforce ...
0
votes
1answer
13 views

Accesing Opportunity Object ID

I am trying to access the object id of Opportunity. Is there a way I can do this from within a Visualforce page? Just to be clear I am looking for the id of the actual object not the ids of it's ...
0
votes
0answers
14 views

How can I find the Id of and object in Pardot?

I am specifically looking for the Campaign Id and Email Template Id of specific objects, but cannot find documentation on this anywhere.
0
votes
1answer
35 views

Solution Object Record type setting not working

We have a requirement to create different record types under Solution object and give access to specific profile to those record type. Setting as of now : Profile A - Object access (RCE) , Record ...
0
votes
3answers
41 views

Current data storage usage issue.

I have an old salesforce org that I have kept alive with one license remaining. I have deleted all further data except Account , Contacts, Opportunity. After Deletion of the data I calculate Current ...
2
votes
1answer
46 views

Query REST API for type given ID

I have a Salesforce ID given client side. I'd like to retrieve the object's information, but I don't know what type it will be. How can I query the REST API for the object's type given the ID?
0
votes
1answer
24 views

Data Overage in Old Salesforce Org

I have an old salesforce org that I have kept alive with one license remaining. The org was previously used for an inventory system and has a lot of data storage taken up. This has caused some red ...
7
votes
1answer
626 views

How to get an 18 digit ID from 15 digit ID using SOQL

I have a 15 digit Sfdc ID, but I do not know which object it belongs to. How can I find out which objects it belongs to and the convert it to 18 digits - all using SOQL? P.S. I was annoyed at ...
0
votes
1answer
82 views

additional last 3 digits of Id obtained from SOQL query

This is a follow up from my last request - use custom settings for setting Status field of different Case Record Type Use case - I have a piece of code, which will look at record type of current ...
1
vote
1answer
25 views

Related to feed Items

Here I am uploading data From Audit trail to Feed Items through a trigger ,but during inserting records in Feed Items Trigger Throwing error like "Entity is not api accessible" this,can anyone give ...
1
vote
1answer
67 views

Need to write Test method for Pagerefernce returing method

I am trying to write a test for the given Main method which is returning simple PageReference.. Public PageReference CancelProcess(){ PageReference pg=New ...
-1
votes
1answer
72 views

Need to write Test Class…for get Methd

I am at beginning level in salesforce.. I need to write test class for a class in which i have confused how to go with get method code coverage..Can anybody help.. Please see my class method as ...
0
votes
1answer
40 views

Need Urgent help in Creating in calling Standard Approve/Reject approval link page into Custom Link

I am trying to call Standard Approval "Approve/Reject" page in Order Object related list through Custom outputLink in VF page. Here in the URL i am trying to create: <apex:outputLink value="+ ...
1
vote
1answer
44 views

related to site and visualforcepages

Hi is it possible to get images from go daddy to visual force pages.if it possible can you explain clearly how the process is.
0
votes
1answer
21 views

What should i do to create Detail object the same time as master object [duplicate]

//my apex page I need to create Estimates__c object and Estimates_line__c object the same time.And my Estimate_line__c object is a detail class of master-detail ...
0
votes
1answer
338 views

How to avoid duplicate Records in Sobject list during Bulk Insert in After Insert Trigger

I have a after insert trigger on Account which inserts another object (Places) after checking Account Shipping fields with address fields of existing Places records. If nothing is found it inserts new ...
1
vote
1answer
61 views

How to get Contact Id provided an email address

I would like to perform some operations on Contact using the corresponding REST api. So, I need the contact Id. However, I would like to retrieve the contact id from the given email address. Is it ...
0
votes
0answers
63 views

Consume Salesforce Analytics Cloud External Data Rest API using Ruby on Rails

I am new to Ruby on rails and Salesforce. I want to upload some external data to Salesforce Analytics Cloud, but I do not have any information about their respective api's. The only information ...
2
votes
1answer
122 views

making visual force page public-> not working (authorization error)

I have 2 visualforce pages : refugee_main_tfi refugee_dash_tfi To make them available to public ( without salesforce login ) I have created a site and added these pages through "Enable ...
3
votes
0answers
113 views

From Salesforce how to invoke ext webservice using SAML assertion?

We have salesforce connected to SAML SSO(OKTA) and OKTA is IDP for salesforce. We have a Java legacy system which provides a Web service and it is also part of SSO. Legacy application expects SAML ...
2
votes
2answers
47 views

Does salesforce assign Ids of deleted Records to new records?

For ex: If I create a new Account, does salesforce algorithm always generate a new record Id or it looks for any of the old deleted record and assigns that Id?
4
votes
1answer
63 views

Formula Field Changing the Date to Today

I have made a formula field to populate the date to today when a checked box is true and get locked its changing everytime its edited and saved. Like if the checkbox was true on 8/7/2015 It changes ...
2
votes
3answers
138 views

Entity Id Across Multiple Orgs

I have created a package and in it I have two custom objects foo__c and bar__c. My question is can I assume that their entity id (the first 3 digits of their id) is the same across all of the Orgs ...
0
votes
1answer
62 views

Same test class works in one sandbox but not another

I have one test class which is working fine in one sandbox but same test class is getting failed in other sandbox. Below method is not working in Sandbox which may be cause of error. Error: ...
3
votes
1answer
431 views

Can i get the Lead ID once it has already been converted?

My BI colleague asked me to put if I can 2 new fields on account, both related with the lead that this account was before conversion. One is the Creation Date and the other is the ID of the lead. I ...
1
vote
1answer
47 views

Get id from page

I am making a custom controller which is used to create a user from the account information but i am unable find id. How can i get account id to use in my controller. is there a method in salesforce ...
2
votes
3answers
98 views

How to Update blank value in particular field with use of Data Loder?

I want to update field by Blank value where Nick Name = "abcdefg" in Products.
2
votes
1answer
121 views

Visual Workflow - Duplicate IDs in Collection Variable

My flow is failing to trigger due to this error: "Sandbox Encountered unhandled fault when running process Data_com_Get_Contacts_Constraint/301J00000000idC exception by user/organization: ...
0
votes
0answers
299 views

INVALID_FIELD:Foreign key external ID: 0032000001ucgknaah not found for field Sandbox_Migration_Id__c in entity Contact:--

I am facing a weird behavior with talend. I am trying to migrate events using talend bulk components. I have migrate 99% of the data, but for the few left records, i get the following error: ...
2
votes
0answers
96 views

Am I doing it right with this function sforce.interaction.searchAndScreenPop

We are new to SalesForce integration and we are up to integrate our company softphone with salesforce. We are using the sforce.interaction.searchAndGetScreenPopUrl for popping up the matched object. ...
2
votes
0answers
117 views

Unable to retrieve related records in Test Class using SOQL

The following SOQL in test classes gives a list of contacts but it doesn't lists any related account fields. List<Contact> contacts = new List<Contact>([Select Id, Email, AccountId, ...
1
vote
1answer
75 views

How to I identify the id's of opportunity fields other than the default ones so that I may fill these using a macro from Excel?

So the nature of my work means that I need to keep a record of our opportunities on an excel spreadsheet, and then these are then to be transferred to Salesforce so that management have a clear ...
1
vote
1answer
74 views

want to auto click the link when a field update happens picklist value is “sent customer”

want to auto click the link when a field update happens picklist value is "sent to customer". I have a link from website that when i click on link it will change status on website. what i want is ...
0
votes
1answer
25 views

Querying for Members in specific Campaigns

I am trying to find campaign members for campaigns executed in last 2 years (not via Apex), in order to migrate this data. Using Jitterbit. I have tried couple different queries (from developer ...