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
0 answers
5 views

Show Contacts based on account selected in recordEditForm

We have a aura component where we are allowing user to select contacts : <lightning:inputField required="true" fieldName="ContactId" /> With our new requirement, we have to ...
user avatar
-3 votes
1 answer
43 views

Avoid portal (060) id using [closed]

Is it possible to SOQL portal ID by Name (or any other field) to avoid id hardcoding
user avatar
  • 687
-1 votes
1 answer
58 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 ...
user avatar
0 votes
1 answer
70 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&...
user avatar
0 votes
0 answers
29 views

Salesforce <--> Salesforce Integration via Heroku

Trying a multiOrg Contacts sync from Salesforce to Salesforce via Heroku. Heroku Add-Ons: Heroku Connect - Org a Heroku Connect - Org b Postgres - Schema a (Org a), Schema b (Org b) Now I have ...
user avatar
0 votes
1 answer
19 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.
user avatar
  • 41
0 votes
1 answer
641 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?
user avatar
  • 157
0 votes
0 answers
5 views

Live Agent: Visitor Details available to Agent

I don’t want certain details about our customers to be displayed on the Visitor Details page. Specifically: IP address Location Network Browser Langauge Screen resolution Original Referrer I’ve ...
user avatar
2 votes
1 answer
33 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 ...
user avatar
0 votes
0 answers
25 views

Lookup relationship in salesforce to salesforce connect

I have set up a salesforce to salesforce sync using Salesforce to salesforce connect because i want to physically copy the data from either orgs. I am facing issue in record linking i.e for contact ...
user avatar
0 votes
0 answers
44 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
45 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 ...
user avatar
0 votes
0 answers
15 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?
user avatar
  • 33
0 votes
1 answer
36 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 ...
user avatar
  • 187
4 votes
1 answer
111 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" ...
user avatar
  • 5,165
0 votes
1 answer
293 views

Records not showing in the related list

As a system admin I am able to see the records in the related list for the parent object but for certain personas related list is not showing any records. I have assigned the correct page layout to ...
user avatar
0 votes
2 answers
701 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.
user avatar
-1 votes
1 answer
27 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 ...
user avatar
  • 1
1 vote
0 answers
136 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", ...
user avatar
0 votes
2 answers
298 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: ...
user avatar
0 votes
2 answers
473 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 ...
user avatar
  • 191
0 votes
0 answers
33 views

Anyone had success pulling sfUser data into Distributed Marketing

I have just started learning about sf Distributed Marketing, the documentation is sparse, and only really focuses in on the Contact and Lead data being pulled in sf. Has anyone had success pulling ...
user avatar
0 votes
1 answer
105 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 ...
user avatar
1 vote
1 answer
77 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" ...
user avatar
0 votes
3 answers
270 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, ...
user avatar
0 votes
1 answer
3k 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}&{...
user avatar
  • 163
0 votes
1 answer
107 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 ...
user avatar
  • 13
1 vote
1 answer
103 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 ...
user avatar
  • 11
0 votes
1 answer
44 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 ...
user avatar
0 votes
1 answer
242 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 ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
  • 157
0 votes
1 answer
87 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 ...
user avatar
  • 11
1 vote
1 answer
1k 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 ...
user avatar
0 votes
2 answers
180 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 ...
user avatar
0 votes
1 answer
147 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 ...
user avatar
0 votes
0 answers
48 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?
user avatar
0 votes
0 answers
21 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&...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
201 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/...
user avatar
0 votes
0 answers
99 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 ...
user avatar
1 vote
1 answer
103 views

Update field in salesforce - php sforce

I am trying to update a field in salesforce and for some reason it doesn't do anything. here is my code: class Salesforce { private static $mySforceConnection; private static $instance; ...
user avatar
0 votes
1 answer
47 views

Select other object's value in subquery

I have table UserPer which contains columns like uid1, uid2 ... What I want to do is like this Select uid1, (select name from user where id = up.uid1) from UserPer up How do I achieve this using SOQL?...
user avatar
0 votes
1 answer
54 views

Salesforce Unique ID accross Pods

First of all I know its a common question but I haven't found a concrete description yet. As we know Salesforce IDs have the following structure i.e 001-20-0-0000BQjF7-AAL 001 - Object Prefix (...
user avatar
0 votes
1 answer
741 views

How to navigate to URL in LWC embedded in Flows Salesforce

i am trying to navigate to a URl from LWC component , which is embedded in FLOWS. I have tried each and every possible to navigate to that URL, but i am not able to, although i have debug and there ...
user avatar
0 votes
2 answers
171 views

Remove Send Message Button From contact list view

Can you Please help me in removing SendMessage button from contact recently viewed List view(Standard List view)
user avatar
0 votes
2 answers
54 views

Java Devlopment: How to Map Detail Objects to Their Master Object in Master-Detail Relationships

I have a Salesforce project in which I will be automatically popualating custom SObjects from a Java app. This will be done by pulling data down from a database, parsing it (including a JSON payload), ...
user avatar
1 vote
1 answer
31 views

not checking for Id in FLS checks before query and DML [duplicate]

I am not checking for Id in FLS checks before query and DML. Is this a security review vulnerability in salesforce?
user avatar
0 votes
1 answer
898 views

How to get clone source Id for the records coming from database

Account acc0 = new account(name="acme"); Insert acc; Account acc1 = acc0.clone(); insert acc1; System.debug(acc1.getCloneSourceId()); //Producing expected result as the record(Acc1) is in ...
user avatar
0 votes
1 answer
77 views

Script-thrown exception installed Managed Package

I Have integrated PayPal in my Project and used in Community which has been build as Managed Package. Now I trying to install this Managed Package in Another Org. Installation was successfully done. I ...
user avatar
0 votes
1 answer
190 views

How does Salesforce ensure new record IDs for the same object are unique during simultaneous inserts?

Just curious. I know record Ids are not guaranteed to be sequential from the docs. I've also already read this post on what are IDs are composed of. But lets say 2 or more transactions started at the ...
user avatar
  • 13

1
2 3 4 5
13