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.

136 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
4k 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 ...
5
votes
1answer
904 views

Partner Account ID-Lead Object

There is Partner Account field on lead object. Salesforce help says, Description:ID of the partner account for the partner user that owns this lead. Available only if Partner Relationship Management ...
4
votes
1answer
177 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 ...
4
votes
0answers
430 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/...
4
votes
1answer
857 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, ...
3
votes
0answers
539 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
0answers
43 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. ...
2
votes
1answer
239 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" ...
2
votes
1answer
660 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-...
2
votes
0answers
1k 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: ...
2
votes
0answers
154 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 ...
2
votes
1answer
95 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 ...
2
votes
0answers
183 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.
1
vote
0answers
440 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 ...
1
vote
0answers
40 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 ...
1
vote
0answers
182 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 ...
1
vote
0answers
36 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}" /> ...
1
vote
2answers
2k views

Send Email is disabled or activities are not allowed. Enable Send Email and allow activities, then try again

I'm getting the following error while deploying the case page layout to another org vi Copado. Deployment Error: [QuickAction Case.Custom_Email] Send Email is disabled or activities are not allowed. ...
1
vote
1answer
80 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 ...
1
vote
0answers
162 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 ...
1
vote
0answers
136 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 ...
1
vote
0answers
32 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.
1
vote
0answers
221 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. ...
1
vote
0answers
141 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 ...
1
vote
0answers
60 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 ...
1
vote
0answers
561 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 ...
1
vote
0answers
64 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 ...
1
vote
0answers
148 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 ...
1
vote
2answers
716 views

master detail data upload through data loader from command line

I am facing a bit problem while uploading csv data in salesforce org by data loader from command line. I have master detail objects OBJECT 1: Customer__c - Age__c - CustomerExternal_ID__c ...
1
vote
0answers
150 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 ...
1
vote
1answer
45 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 ...
1
vote
0answers
61 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 ...
1
vote
1answer
253 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 ...
1
vote
0answers
405 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 ...
1
vote
0answers
314 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....
1
vote
0answers
81 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 ...
1
vote
0answers
123 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 ...
1
vote
1answer
134 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 ...
1
vote
1answer
166 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 ,...
1
vote
0answers
85 views

Getting sales force 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 ...
1
vote
0answers
229 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. ...
1
vote
2answers
56 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-...
1
vote
0answers
2k 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-...
1
vote
0answers
175 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, ...
0
votes
1answer
39 views

Trying to create a test class for Httpcallout but getting error Illegal assignment from void to System.HttpResponse

Could you please help me with this test class? I am using Genderized API to populate the custom filed on Lead name gender (Gender__C). API Link - https://api.genderize.io/?name=peter Get_Gender_Lead -...
0
votes
0answers
35 views

Update custom field on content version trigger

I am trying to update 2 custom fields on contentversion when a new contentdistribution is created. To do this, I am using an after insert trigger on contentdistribution: trigger ...
0
votes
1answer
69 views

Salesforce Apex error - Custom settings update - MISSING_ARGUMENT, Id not specified in an update call: []

I am new to Salesforce development and needs some help with the below code. Code Logic is to assign Service Writer (user) to account object in Round Robin. I have created a queue and custom setting to ...
0
votes
1answer
31 views

07:40:24:023 FATAL_ERROR System.StringException: Invalid id: a610V0000015C5DQAU

public void updateattendeecb() { System.debug(enteredText1); Id myId = Id.valueOf(enteredText1); list_attendees1=[Select id,Send_Email_for_Certificate__c from EM_Attendee_vod__c where id= :...
0
votes
0answers
27 views

Approval process with Assigned Approver (Manually Chosen)

Under the approval process, we have Assigned Approver (Manually Chosen and Unanimous approval required Related user). I have gone through the other document that for Manually chosen approval process ...
0
votes
1answer
18 views

query products from pricebook to React

I recently had a question on how to query a list of products from a pricebook and was told that i could use the below to do so [SELECT Id, Product2Id, Product2.Name FROM PricebookEntry WHERE ...