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
28 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 ...
user avatar
  • 2,615
0 votes
0 answers
38 views

How can I pass the Id of a record via email

At the moment we plan to use sites in salesforce to get some more information from the customers. We created some landingpages, in one of the landingspages the customer must decide how to process the ...
user avatar
  • 9
-1 votes
1 answer
44 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 ...
user avatar
  • 1
0 votes
1 answer
33 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 ...
user avatar
0 votes
0 answers
120 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 ...
user avatar
0 votes
0 answers
296 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 ...
user avatar
0 votes
0 answers
10 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
45 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
  • 683
-1 votes
1 answer
480 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
178 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
31 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
44 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
2 answers
2k 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
  • 185
0 votes
0 answers
15 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
63 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
31 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
69 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
16 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
54 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
  • 197
4 votes
1 answer
180 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,185
0 votes
1 answer
689 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
1k 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
72 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
203 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
451 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
696 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
1 answer
143 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
125 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
455 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
5k 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
208 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
179 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
57 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
318 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
50 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
  • 185
0 votes
1 answer
129 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
322 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
378 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
67 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
22 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
1 vote
1 answer
3k 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
276 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
264 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
134 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
60 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
60 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
894 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
221 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

1
2 3 4 5
11