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.

133 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
7k views

ContentDocumentLink Apex after insert trigger error

Edit: I've built an after insert trigger on ContentDocumentLink. On cropredy's direction, I've bulkified my code and I think improved it generally. It "works" in that it accomplishes my ...
tim shores's user avatar
5 votes
1 answer
1k views

What are Best Practices for Upserting Objects with Foreign Key Members (i.e. References to Other Objects)

I want to upsert objects through the .NET-ForceClient into our Salesforce, more specifically, I want to insert or update an object that contains a reference to another object. As a simple example, ...
Christian's user avatar
  • 205
4 votes
1 answer
247 views

ios - can't insert a new record to remote using smartsync sync up

I'm developing in native iOS. I use SmartSync to sync up local soup to salesforce server. It works fine when updating to remote, when the record to be updated exists in remote. But it doesn't work ...
Steve's user avatar
  • 41
4 votes
0 answers
1k views

Salesforce Bulk API v2.0 INVALID_SESSION_ID

Following the Salesforce Bulk API v2.0 documentation at: https://developer.salesforce.com/docs/atlas.en-us.api_bulk_v2.meta/api_bulk_v2/walkthrough_upload_data.htm https://developer.salesforce.com/...
Sebi's user avatar
  • 203
3 votes
0 answers
975 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" ...
lalitha r's user avatar
3 votes
0 answers
3k views

Exact Target - Individual Email Result object - set Lookup to IER records in Salesforce

Apparently Exact Target "uses" Stack Exchange for support issues. More specifically, they have no developer support, and their API is "as-is", and either way I believe I have this isolated to a non-...
AMM's user avatar
  • 4,644
2 votes
0 answers
128 views

Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {http://soap.sforce.com/2006/04/metadata}metadata element

I'm trying to update CustomField using Salesforce Metadata API version WSDL 39.0 and 46.0 When I try to update CustomField namely InlineHelpText it updates in Dev Org correctly without any exceptions. ...
Marian Mazurak's user avatar
2 votes
1 answer
407 views

Cannot update lookup reference by External Id, if current reference is not null

Scenario: Product__c product = [SELECT Id, ProcurementGroup__r.Number__c FROM Product__c LIMIT 1] product.ProcurementGroup__r = new ProcurementGroup__c(ExternalId__c = '123'); update product; I am ...
Ivan's user avatar
  • 21
2 votes
1 answer
286 views

Inline edit - record not updating [only last record updating]

whenever i used to edit these records by inline edit function - only the last records getting updated, rest of the records not updating. visualforce code: <apex:page sidebar="false" ...
salesforce's user avatar
2 votes
1 answer
852 views

Liveagent: how to pass a variable through chat

An Operator is chatting with a client, Alfredo. In order to be contacted again by the same user the Operator needs to pass his ID throught the chat. If he simply passes his ID http://site-visible-...
Andrea Ianni's user avatar
  • 1,161
2 votes
0 answers
2k 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: ...
Alex's user avatar
  • 91
2 votes
0 answers
173 views

Code coverage is 70% and I get a DUPLICATE_VALUE issue

Code coverage is 70% and when I dive into the problems I get a duplicate error. Please help I am new to writing triggers. Thank you ahead of time! Problem on several Lines Message: [object ...
Nate's user avatar
  • 137
2 votes
1 answer
105 views

Import Data Through Data Loader after converting relationship from lookup to master-detail

I have 1 custom object with 10000 records, now i want to customize this object & I want to connect this object with 1 object with master detail relationship, so I have to 1st create lookup with ...
Jenish Shingala's user avatar
2 votes
0 answers
186 views

Closing task on lead without going to task page

I want to close the task on lead list page without going to task page an close. I just want to close the task by clicking cls link in front of created task. Please guide me, how can i do this.
AnuRaj's user avatar
  • 2,472
1 vote
0 answers
109 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
  • 269
1 vote
0 answers
347 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
1 vote
0 answers
1k views

Dynamically assign sObject field details in LWC

I have created a inline editable LWC. This solution is dynamic i.e. to add a new field on the table , i just have to add on field set and based upon field type and access, it will be displayed in the ...
Salesforce Development's user avatar
1 vote
0 answers
122 views

How to differentiate when user clicked on New or Save & New button in salesforce Lightning controller?

I have overridden the standard new button using lightning component. In spite of this, when user is clicking on Save & New button on the edit screen, it is navigating the lightning component. I ...
Subramani's user avatar
1 vote
0 answers
472 views

Marketing Cloud, GDPR & Salesforce Individual Record

I'm planning a Salesforce & MC implementation and the client would like to include GDPR compliance. We will be building a custom subscription centre (possibly using Formstack as I think I prefer ...
Foweyboy's user avatar
  • 119
1 vote
0 answers
45 views

Pass values of javascript variable to APEX controller

VF Page: <apex:form id="fm"> <apex:actionFunction name="searchbox" action="{!searchbox}" rerender="pb"> <apex:param name="x" value="" assignTo="{!IsEmailValue}" /> ...
user3214361's user avatar
1 vote
0 answers
670 views

SalesForce - The applicationId is not a valid UUID

I have implemented successfully the SF SDK (ver.6.2.2) on a native Android application and everything seems to be working until we decided to generate our release build. On the debug build we don't ...
Stoycho Andreev's user avatar
1 vote
0 answers
261 views

Getting 403 : Forbidden when using POST HttpMethod

I have trying to integration between NetSuite and SFDC using OAuth Token. I have successfully called GET API Request from APEX Class but whenever I am trying to call a POST Method it would always give ...
bhavsar japan's user avatar
1 vote
0 answers
42 views

what happens behind the scenes of salesforce Asynchronous Apex?

Asynchronous apex will follow some kind of threading mechanism in behind the scene like Java or exactly how it will work. Your explanation would be great help for me.
Pulikunta Fazur's user avatar
1 vote
0 answers
390 views

How to create, package, and install Canvas application in Salesforce Lightning org?

I am creating a canvas application in Salesforce Lightning, in which I am using just a link of my website to show that website in canvas to have my website looks like working in Salesforce Lightning. ...
Khawaja M. Awais's user avatar
1 vote
0 answers
169 views

Two Factor Authentication without login flows,Authenticate app and free of cost

Hi I have to know is there is any Two Factor Authentication approach for sales force,which doesn't contains any login flows,Authentication app and with free of cost for third party applications like ...
Subba Salesforce's user avatar
1 vote
0 answers
83 views

basis of the ordering of list returned by component.find()

I am using component.find(aura_id) to get the component. I have multiple components with the same aura_id So I am getting a list. My question: What is the basis of the ordering of list returned by ...
Indra Vikas's user avatar
1 vote
0 answers
673 views

Lightning Component - Overriding 'New' Standard Action with skipping record type selection page doesn't work

Looks like Record Type Selection page doesn't work consistently for all objects when New button is overridden. For e.g. it works fine for Account (i.e. record type page is skipped), when new button is ...
Prat's user avatar
  • 21
1 vote
0 answers
101 views

Cognito Field Matching

I know there is Zapier integration between Cognito forms and Salesforce, however does anyone know if there is a way to do matching between a field on a Cognito form and a field in a Salesforce object ...
Mark's user avatar
  • 29
1 vote
0 answers
165 views

Auto complete field selected value not getting passed to controller class

JQuery helps good to select a value from auto complete field but it is not passed to the controller. So, my search result query is not getting modified properly as desired. I can't get where I do any ...
Testing_SFDC's user avatar
  • 2,930
1 vote
0 answers
265 views

How to get the Default Account and Profile Id in apex while community is running?

I have two active communities. Both community have different settings. I have set default Account and Profile Id in Community Settings. I also enabled Auth. Providers to Login via Gmail/LinkedIn. Now ...
Sunil's user avatar
  • 121
1 vote
1 answer
442 views

Owner couldn't edit the record he created

I have a custom object Named Education__c. The OWD setting us private and on the profile I have given only Create and Read Permissions. So, when User X creates an Education Record, he is becoming the ...
lalitha r's user avatar
1 vote
0 answers
82 views

When Converting Lead to Account, is it possible to update the parentId of a query?

When I create a list on a Lead, and then I convert the Lead to an Account, the list I created can not populate in my custom VF page because my logic is pulling the parentId. Is there a way to update a ...
Olivia's user avatar
  • 3,369
1 vote
1 answer
451 views

How to create a data extension with everyone who has ever opened or clicked on an email?

I'm trying to create a data extension with everyone who has ever opened or clicked on an email in it... The challenge is, that we used to have a SFDC + ExactTarget integration prior to migrating to ...
Adam's user avatar
  • 11
1 vote
0 answers
604 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 ...
CharlesDou's user avatar
1 vote
0 answers
344 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....
Anjana Jayaseelan's user avatar
1 vote
0 answers
116 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 ...
Shreekant Sahu's user avatar
1 vote
0 answers
378 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 ...
global4g's user avatar
1 vote
1 answer
155 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 ...
Nick Petzold's user avatar
1 vote
1 answer
232 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 ,...
Teja's user avatar
  • 1,412
1 vote
0 answers
98 views

Getting Salesforce user Information Using Identity Service

Using OAuth2 and REST with a custom created Remote APP, I am not able to get user Information using sales Force.com Identity Service by using jqury ajax call, however when i use postman of chrome to ...
mallikk's user avatar
  • 11
1 vote
0 answers
365 views

Data Loader : the operation has fully completed there were 0 successful inserts and 2 errors

I have problem when I insert file .csv via data loader after mapping I get : the operation has fully completed there were 0 successful inserts and 2 errors I don't know what's the problem exactly. ...
imma's user avatar
  • 11
1 vote
2 answers
60 views

How do I create a report that shows a graph of leads by inventory size?

How do I create a report that shows a graph of leads by inventory size? I would like to know how many leads we have with an inventory of 1, 2, 3 etc or how many leads with inv. size between 1-10, 11-...
beth's user avatar
  • 11
1 vote
0 answers
182 views

Rails form that saves data to Salesforce and local DB

I have a user registration form that requires certain fields to be saved to different locations. Fields such as email and name need to be used to create a new salesforce object (Account). Email, ...
Questifer's user avatar
  • 111
0 votes
0 answers
19 views

Obtaining Flow ID from a Bash script

I need assistance with my Bash script for creating a link to a flow in Flow Builder that I want to open. I am encountering an issue where I am getting a null value from the $response variable. I would ...
elvi's user avatar
  • 1
0 votes
0 answers
64 views

How to replace the ID with the name in the URL of page designer's pages

I need to get in the url the name value instead the ID. for example I need www.mysite.com/page-name.html instead of www.mysite.com/page-id.html I've a multi-language site and I must have two different ...
Francesco's user avatar
0 votes
0 answers
56 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
0 votes
0 answers
210 views

Count # of Files related to an Opportunity (ContentDocument VS ContentDocumentLink)

I need to count the number of PDF files related with an Opportunity. Because DLRS dont allow to traverse across objects I had no other choice than to choose to write a trigger. I am novice when it ...
Lut's user avatar
  • 269
0 votes
0 answers
105 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,827
0 votes
1 answer
35 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
1k 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