Skip to main content

Questions tagged [salesforce-id]

A Salesforce ID is the primary key field for any object. It is a primitive type in Salesforce. Salesforce Ids come in 15-character and 18-character "case safe" varieties, which are treated as equivalent by all APIs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

Cannot get standardPricebookEntry's id

I'm trying to write an Apex trigger and class, to update a list-price of a Product in a Pricebook, once a checkbox is clicked on the product object. Here is all of my code: Class: public class ...
iluvcode's user avatar
0 votes
2 answers
944 views

Case thread ID - New format

I have different processes in case of emails, to unsure mails will always go to the right case even if they are sent for different mail, I added a formula field in case which resolves threadId. It is ...
Raphael D's user avatar
  • 616
0 votes
0 answers
40 views

Is there any way why salesforce would pass incorrect id to the url (sent through email)?

We have 2 different orgs with no installed packages shared. These orgs have formulas: "https://someurl.com?id="&Id. On the first org the field is on standard Opportunity sObject and on ...
Mariia Illarionova's user avatar
3 votes
1 answer
338 views

Curiosity about Id values - relates to hacking risks where Id values are guessed

Yes Id values that a user should not have access to should be blocked at the database level using sharing rules. But I'm curious about the starting value of an Id. From this tiny sample: First few ...
Keith C's user avatar
  • 136k
0 votes
1 answer
133 views

In the 18-character ID algorithm implementation, why did they reverse the 5-character chunks?

While reading further about Salesforce Ids, I came across this article detailing how three extra characters are appended to the original 15-character record Id in order to identify the casing of each ...
LTakita's user avatar
0 votes
1 answer
2k views

How to verify if a string is a Salesforce ID on LWC

I know we have a couple of options on the Apex side, but I would like to do that verification without calling the server, is there another option direct on the LWC side? FYI: I used to use the Id ...
Elivelton Walter's user avatar
1 vote
1 answer
1k views

Upsert with two external_id in APEX

I can upsert objects with one external_id like below: upsert objects external_id_a; But I want to upsert with two external_id like upsert objects external_id_a external_id_b; But It's wrong syntax. ...
Richard's user avatar
  • 33
0 votes
2 answers
214 views

How to pass field of id from List to set

I have the following List from which I want to pass the UserId field into a set string filter ='select UserId from OpportunityTeamMember'; List < sObject > filterList = database.query(...
Thomas's user avatar
  • 2,310
0 votes
0 answers
111 views

Formula Limitations for IDs for "Create Record" in Screenflow?

I'm getting an issue with a formula field that references the correct account ID in a screenflow. This type of formula worked for an autolaunched flow. I converted the flow to screenflow and it now ...
GabbyTech's user avatar
1 vote
0 answers
288 views

SOQL returns no results when it should (:tempVar1)

When I run this query in my trigger (and similar on Workbench) Integer number_cdl = [SELECT count() FROM ContentDocumentLink WHERE ContentDocumentId = '0698c00000ArHhsAAF']; I get two records as ...
Lut's user avatar
  • 287
1 vote
1 answer
243 views

Mystery Permission Sets assigned to Guest Users?

To prepare for the upcoming Release Update "Remove Guest User Assignments from Permission Sets Associated with Permission Set Licenses with Restricted Object Permissions", I ran a SOQL query ...
Foo Bar's user avatar
  • 303
0 votes
0 answers
199 views

How to generate key prefix for "unstable" types

I use a mocking framework that exposes a method for generating mock record ids. The utility method uses getKeyPrefix() to mock an Id. This works for most object types but doesn't work for __Share ...
TemporaryFix's user avatar
  • 2,946
-1 votes
1 answer
1k views

Invalid Id while trying to insert custom object

I have a custom object that I could insert in the past, but for some reason it has stopped working and I can't seem to find the issue. I have a contact relationship object that I am trying to insert ...
Sam's user avatar
  • 1
0 votes
1 answer
40 views

Duplicate object : Apex class fail to deploy

This code worked for me for the creation of a new template as well as a section, but when I added the creation of a new question. I found a problem in the deployment, I will put all the code in order ...
salesforcedev's user avatar
0 votes
0 answers
2k views

Record trigger flow not working for case and email message object

I have working to convert the workflows into flow for the below scenario with Case and email message objects. But its does not triggering properly and am not get the result. Am not sure where the ...
ajmal khan's user avatar
0 votes
0 answers
3k views

Record triggered flow not working for email message and case object to update the owner ID

I have working to convert the workflow into flow for the below scenario. But Am not sure, Why its not triggering, where I done the mistakes and why its hanging to trigger the flow. Please see the ...
ajmal khan's user avatar
-3 votes
1 answer
50 views

Avoid portal (060) id using [closed]

Is it possible to SOQL portal ID by Name (or any other field) to avoid id hardcoding
pincet's user avatar
  • 919
-1 votes
1 answer
2k views

How could I pass IDs in before insert trigger?

I need ID from records from custom objects When I try before insert, I can't pass IDs (because newMap is null) and when I try after insert I also have an error "record is read-only" I can do ...
NonameJavaNoob's user avatar
0 votes
1 answer
665 views

Get custom object Id in standalone Aura Component

I have an aura component that is launched from a custom hyperlink made with form assembly and is not on the detail page of any records. From what I understand, this means the "force:hasRecordId&...
Austin Kelly's user avatar
0 votes
1 answer
229 views

Account id is not available to select in process builder

I've created a process builder on Account object. I need to select Id field from the immediate actions. That action is to launch a flow. But Id field is not available in the field picklist.
R_Cham's user avatar
  • 49
3 votes
2 answers
14k views

get ID of Create Records element in Flow?

I have a Create Records element in flow. I need the ID of the record created in this element, but I can't see anything like 'Store Id'. Is it possible?
CPS's user avatar
  • 365
2 votes
1 answer
412 views

What is the lookup field overhead vs text field with 18 character id?

I have a need to set a field, Account.Previous_Owner_Id__c, which will store the 18 characters Id of the User who used to be the previous owner of the account. Questions: If we create this field as a ...
usernameabc's user avatar
0 votes
0 answers
45 views

How to query soql using 18 character ID? [duplicate]

I have two IDs that are the same when comparing the 15 character version of each other (the only difference is capitalization). When I attempt to query the data for ID #1 I am receiving the data from ...
user avatar
0 votes
1 answer
400 views

Send a link that redirects back to the Detail page of the Object

I have created an trigger which is sent an email to the user every time a user is created and they are welcomed and reminded to complete the KYC Process. How should I send a URL in the body of the ...
sfdxnewbie's user avatar
0 votes
0 answers
22 views

lightning:unsavedChanges not works with console application

lightning:unsavedChanges not works while doing tab switch in console application. It works fine on tab switching in standard application. Any thoughts?
Sainath's user avatar
  • 33
0 votes
1 answer
158 views

how to redirect on a button click to create a child object with standard controller in VF Page

Hi I have a parent object detail page opened . I have added a VF component for displaying child object For Ex Approval__c parent object page has a VF component to add comments which is done through ...
user75937's user avatar
  • 299
5 votes
1 answer
985 views

Object Prefix - Third Character

I stumbled across this known issue, "In Winter' 22 release, On Knowledge articles whose recordID has the 3rd character as Capital , Category and Version comparision tabs shows GACK error" ...
Girbot's user avatar
  • 5,530
0 votes
2 answers
7k views

In LWC if we can dynamically add script and append it to header? [closed]

There is one use case of mine where I needed to dynamically append js to header. Is there any way we can append script tag with some js in lightning web component.
abhi saxena's user avatar
-1 votes
1 answer
966 views

How do I get records when Id's are in a text field of an object. These Id's are Ids of duplicate record and need to be eliminated using a flow

I am trying to extract IDs from a text field and trying to get records of the ID that are in the text field. Basically, the text field stores the IDs of duplicate records and only one of the records ...
GeeGee's user avatar
  • 1
1 vote
0 answers
504 views

Currency value is converting to integer from LWC to Apex

Passing the below object from LWC to APEX Method, in this Payment_Received__c value is 10.50, when i read this value in Apex method its print 10 [ { "Name": "10618", ...
SFDC_Beginner's user avatar
0 votes
2 answers
1k views

How do I use the Salesforce 18 digit id in my custom formula field?

So I had a business requirement of creating a certain type of field (I called it Account Link) that is basically a link to an account name or id. This was quite simple and this is how I created it: ...
coder123456689's user avatar
2 votes
2 answers
2k views

Is it not possible to search by Id field with SOSL?

Why can't I do this? FIND "0Hn8A00000093AvSAI" IN ALL FIELDS RETURNING Contact(Name, Id) If I put a part of the Name of the contact with that ID, I get that contact back. But when I put the ...
Bloke's user avatar
  • 217
0 votes
1 answer
405 views

LWC is not loading after chaning the previous labels in static resource

i have the static resource in the salesforce it has few files related to the d3.jsi changed the label names in the d3v4,js file after that i saved the modified d3v4.js file in the static resource,I ...
Prasanna Kumar's user avatar
1 vote
1 answer
323 views

having issue in lightning:input, using this button for uploading file, and want to set null in button without refreshing page after class response [closed]

.cmp <lightning:textarea name="description" required="true" label="Description" ...
Hassan Mansoor's user avatar
0 votes
3 answers
2k views

Can we Insert our own defined Record Id in salesforce object

Is there any way, which we can insert our own values in the record Id field in a salesforce Object? I know, when we insert any new record, the record Id is automatically assigned by the system. But, ...
Brindha Sharadha's user avatar
1 vote
1 answer
13k views

HyperLink in record triggered flow

I have requirement to append contact link as url in email action in record trigger flow I have used Custom label stored as base url like: test.salesforce.com Created formula: {!$Label.Base_Url}&{...
sarah's user avatar
  • 189
0 votes
1 answer
781 views

When do we need to mention Id explicitly in SOQL querry

I heard that although the Id field always comes implicitly in SOQL query result, there is a specific scenario where we have to include the Id field while querying records. Can someone please tell me ...
Aniket's user avatar
  • 13
1 vote
1 answer
932 views

SOQL query to retrieve contactid from object Users

A simple but stupid question here: I know we can query contactid from user as select contactid from user but why I can't see a field of 'contactid' from the object User, instead, I can only see ...
Kay's user avatar
  • 31
0 votes
1 answer
203 views

MALFORMED_QUERY: duplicate alias: Email

Gentelmen I know you have more than free time for challenges like this I have downloaded all metadata for reports and rep types I have found one specific fields that is in there Now I need to get all ...
Tommy J's user avatar
0 votes
1 answer
739 views

Insert a large file ( 9MB) from a LWC into a Case

I am trying to upload a file ( that has for example 4.9 MB) and my component throw an error, although everything is working fine with smaller files ( up to 3MB) ! I know I must update the logic in my ...
ismail kartit's user avatar
0 votes
0 answers
90 views

Why I cannot update the Account ID on this for loop?

for (Account acc : newAcc_lst) { System.debug('to15format Test 1-> ' + acc.id); Id to15convertString = acc.id; System.debug('to15format Test 2-> ' + to15convertString); String ...
CPS's user avatar
  • 365
0 votes
1 answer
395 views

What SSO (SAML) attributes from Salesforce can I use as a globally unique user identifier?

I'm using Salesforce as the identity provider (IdP) in a single sign-on application I'm developing in php. After the user logs into Salesforce.com to authenticate, they are redirected to my app and ...
Maddix's user avatar
  • 11
1 vote
1 answer
4k views

UNAVAILABLE_RECORDTYPE_EXCEPTION, Unable to find default record type: [] *Record Owner

When I try to convert lead It says "Error: ConvertLead failed. First exception on row 0; first error: UNAVAILABLE_RECORDTYPE_EXCEPTION, Unable to find default record type: []" Is there ...
Saffi Ullah's user avatar
0 votes
2 answers
1k views

Querying for users in a a Role based on Role Id instead of RoleName or DeveloperName

List<User> usrlst = [SELECT Id FROM User WHERE UserRole.DeveloperName LIKE : '%Customer_Support_Representative%' and IsActive = True]; The problem with this is that we changed the name of the ...
GroundToCloud's user avatar
0 votes
1 answer
869 views

Retrieving Record ID for each Opportunity in a list

I need to retrieve the record ID of all opportunities in a single csv list, and I am wondering if there is a way to do this either with python or Salesforce natively. Essentially I would need to loop ...
salesforceninja's user avatar
0 votes
0 answers
235 views

How to find out Org ID if locked out of Salesforce?

How do I find out our Org ID if we're locked out of Salesforce?
user95683's user avatar
0 votes
0 answers
29 views

How can I transfer id from comp1 to comp2 when comp2 loads after a button click on comp1?

Comp1 and comp2 are 2 lightning component and are not in any relationship of parent-child. I used application in comp1 to fire and it is handled in comp2. Event <aura:event type="APPLICATION&...
Tushar Saxena's user avatar
2 votes
1 answer
6k views

LWC Cannot read property 'recordId' of undefined

I built a LWC to try to display related placement record information in a table on the case record, where the cell background-color for each placement record to change based on the status of the ...
Varun Panchal's user avatar
1 vote
1 answer
859 views

Extracting Salesforce Id from a Lightning URL in an Apex REST endpoint

Creating an Apex REST endpoint to receive updates for Opportunities. The caller of the endpoint will send the full Lightning URL for an Opportunity. For example: https://example.lightning.force.com/...
nstuyvesant's user avatar
0 votes
0 answers
937 views

Best Practice: Using Id or Name in Filter Criteria and Formula Fields

We're working in an Org that uses Ids in Filter Criteria and Formula Fields to dictate logic based on Record Types. When you refresh a sandbox, it maps the correct Id to the correct record type id and ...
interesting-name-here's user avatar

1
2 3 4 5
11