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
31 views

Create Junction object with External IDs

I have the following Objects and fields. Object A: External Id (a_ext_id) and other fields Object B: Extrernal Id (b_ext_id) and other fields Custom Junction Object C: External id (c_ext_id) and ...
0
votes
0answers
11 views

How to get Current Location name using Leaflet

Sir I am able to get Lat and lon value but i need to get current location name I getting problem Here.I need it in salesforce Lightning.
0
votes
2answers
44 views

How to open div as a popup window button click [on hold]

Open a div after a click on Add new Contact and I try to call my controller method after click on Add new Contact Button Its Not Work <div class="tab-pane" id="contact" > ...
0
votes
1answer
34 views

How to get Value of Button which id is bind dynamically in lightning salesforce

I try to get button value by document.getElementById(btnid).value but its return id <input type="button" class="btn btn-primary mb10 addtarget seemore" onclick="{!c.c_UpdateUserTargetList}" ...
0
votes
1answer
34 views

I am facing a problem with decryption

My scenarion is i am encdoing the value generated from Crypto.generateDigest method and encdoing it with EncodingUtil.base64Encode .Now i am not able to decrypt it again .Can u any one help on this ...
0
votes
0answers
18 views

How Would I Imitate “Lookup Via” At DataLoader.io In Code? (Bulk DML, but allows record-matching on non-external-Id fields)

I think this might be an API question, but I'm not sure. My Contact table looks like this: LastName FirstName Email Formula_LowerConcat__c ERPId__c Id Smith John ...
1
vote
0answers
12 views

salesforce send email by url /_ui/core/email/author/EmailAuthor

I need to send emails in salesforce through URL/_ui/core/email/author/EmailAuthor?p3_lkid={!Purchase_Order__c.Id}&retURL=%2F{!Opportunity.Id}&template_id=00X70000001GUTz. I know that the ...
0
votes
0answers
29 views

Is it possible to craft an URL containing multiple salesforce IDs that will present them as a sumamrized list for a user to click on?

We have data from several sources that are being associated with salesforce IDs. We'd like to be able to pass a salesforce search or report page a set of salesforce IDs and have it display a short ...
2
votes
3answers
182 views

Duplicate ID error - Don't understand other explanations

I've been working at this project for two days now. I've read this: List Exception Duplicate id error And this: Avoiding 'Duplicate ID in List' Error in Update Trigger I try to resolve it as ...
1
vote
1answer
30 views

How to find the difference between two dates

Hi friends i'm new to development, and I have a requirement to write a sample query to fetch data in cases for a particular record type. I fetch accountIds from cases. Then, I fetch opportunity id's ...
1
vote
0answers
36 views

Case is not creating in salesforce using email to case functionality from user with @sfr.fr e-mail addresses

when user send email to salesforce using email to case functionality it should create new case. But for certain usres its not creating case in salesforce. For example When user send mail to xyz@test....
2
votes
1answer
21 views

Explicitly change the context of User while scheduling a batch

I have a requirement where I schedule a batch to run via trigger on insert and update event. However, the batch schedules in the context of the User who makes the changes. Because of which the ...
8
votes
3answers
198 views

Converting uppercased 18-digit Id to valid Id

I am currently facing an issue where an external system passes back an 18-digit Id that our platform has previously sent to them. However in the process the capitalization of the Id has been removed - ...
0
votes
1answer
28 views

Need help with a trigger test

I am extremely new to salesforce and am having trouble working on a project for work. I need to test my trigger for adding a discounted quote to an opportunity based off of the original quote amount. ...
3
votes
1answer
42 views

Check if a record exists without knowing its type

I am trying to have a custom object link to other objects without specifying a type. By that I mean I want to make something like an "OtherObject" lookup without specifying the type, so that I can ...
3
votes
2answers
24 views

Invalid Cross Reference Id Error due to rollback

I am facing an error when I am using savepoint and rollback while saving a record: Here is my code public PageReference saveRecords(){ //Boolean to signify if all DML operations during save are ...
0
votes
1answer
54 views

Error “ Invalid Type : sobject 'Custom_Object' is not supported ” when trying to create using API

We are working on using SOAP API of Salesforce to create some custom object records. It is working fine in our Developer and Test envournment. However, as soon as we deploy this on production we get ...
-3
votes
1answer
34 views

How to display object ID on standard page without any use of custom development

I have a requirement in which I need to display ID on standard page textbox without using formula field, So please some one help me out so that I can achieve that. Is there any way that I can set it's ...
1
vote
1answer
41 views

how to remove members of a list from a set

I have a Set made up of group members - but it includes members who are managers of group members. I thought I could iterate over the set and for each member of the group query the user object ...
1
vote
1answer
61 views

Manipulate Dynamically Generated Elements in Lightning

The below code dynamically generates <td> and <ui:inputText>. I want to access the <ui:inputText> and change its value in the helper. How can I achieve that? <aura:iteration ...
1
vote
1answer
34 views

Issue in identifying objects in salesforce application functional flows

Currently I am doing a POC on salesforce automation using Serenity BDD framework with Selenium Webdriver. While automating ,the objects inside a iFrame is not working to complete end-end flow. I am ...
0
votes
0answers
27 views

Issue with Custom settings space

My sandbox says the below message when i open custom settings. "You are currently using 0 MB of custom settings data in your organization, out of an allowed limit of 0 MB". And I cannot save any ...
0
votes
0answers
19 views

Customize Contact to Case association in Email-to-Case functionality

In Email-to-Case functionality Contacts are automatically associated with Cases if matched email address is found in a Contact record. I want this functionality to be customized, so that if Contact's ...
12
votes
2answers
90 views

Any documentation or insight on the “empty id string”?

This answer (from Nathan Pike a Salesforce developer) mentions the idea of an "empty id string" that can be appended to the 3 digit key prefix. I've wanted an ID that matches nothing but is ...
0
votes
1answer
18 views

calling generic method into other method [closed]

I have written two generic methods for custom approval process now i want call two generic methods into normal methods here is my code and i am facing problem when passing Approve or Reject values ...
2
votes
1answer
68 views

How to use set<ID> in where clause for text field - no results found

I am Using a simple Soql Query Like below: Set<Id> Testset = new Set<Id>(); List <BR_Channel__c> channel = [select id, BR_District__c from BR_Channel__c ...
-1
votes
2answers
38 views

get the value of a field in the pageblocktable

I called the value of the field with this code <apex:column headerValue="Teacher" id="tname" value=" {!schedule.tlname}, {!schedule.tfname}" /> now how can I get the value of ...
2
votes
1answer
53 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: system.debug('...
0
votes
1answer
46 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 p....
0
votes
1answer
16 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
62 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
38 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
47 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
69 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
114 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
41 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
24 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
69 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 BR_Opportunity__r....
0
votes
0answers
140 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 controller="...
0
votes
1answer
105 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
51 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
37 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
25 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
24 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
19 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
44 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
74 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
56 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
28 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 ...