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
1
vote
2answers
50 views

Convert base 64 to pdf and display it as PDF. Not required to save the pdf in salesforce, Directly display

When user clicks on a quick action, a soap webservice callout is made and in response we get base 64. I need to convert this base64 into PDF and display it online. I dont want to save the pdf document ...
0
votes
1answer
32 views

First exception on row 0; first error: INVALID_ID_FIELD, Invalid entity type for whatId

Getting Following error in the below code 23:27:13:030 FATAL_ERROR System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_ID_FIELD, Invalid entity type for whatId.: [...
0
votes
0answers
9 views

Pardot: Prospect activity tracking inside the salesforce

I am trying to get Pardot prospect activity into the salesforce system under a contact/Lead custom chile object. For example if any prospect open an email then that activity comes under Lead/Contact ...
0
votes
0answers
32 views

Parse Outgoing Emails (through Salesforce email composer) to change body's font style and embed a Signature

I would like to know if accessing outgoing emails before they go out of the system is possible. We want to get rid of default Salesforce signature and embed one of our own in all the outgoing emails. ...
0
votes
1answer
32 views

I'm Using lwc component at case record page to perform action on record and once user clicks on submit, it should reload the record page

The below code is working in standard app but not in salesforce console.I wrapped the LWC component into aura , but still it is not working /* eslint-disable no-console */ import { ...
0
votes
0answers
9 views

Unable to get Flow Formula References In Salesforce

Trying to replicate Condition 1 in by adding new condition but couldn't see any reference after myVariable.Current.CreatedyBy.
0
votes
0answers
31 views

Issue with User Credentials in Sandbox

Have you seen this issue before ? Create a User. Receives an email for SSO Login. Ignores the email. Resets Password for the User, Sets password. Open any other browser, puts username password, ...
0
votes
1answer
32 views

Get dynamic file name in CLI dataloader (import)

How to get dynamic file name with name example "NameFileFormatYYYYMMDD.csv"? My code looks like this <bean id="accountInsert" class="com.salesforce.dataloader.process.ProcessRunner" ...
0
votes
0answers
12 views

Auto Number Field Customization

I have a requirement of Creating an the Invoice Name in Formato of XYZ/0000/19-20. Now in this (000) is the auto number type which will be incremented for every invoice and (19-20) represents the ...
-4
votes
1answer
34 views

how do i use addDays() for opportunity closedate in apex

opportunity healthopp = new opportunity() healthopp.closedate=system.today()+1; . . but i need to use addDays(1) instead of system.today()+1 how can i use this?
0
votes
0answers
23 views

How to fetch whatId label in salesforce formula field [duplicate]

I have requirement where in WhatId should be able to display parent name(label) in formula field, i have tried using what.Name in formula field but it displays an error. The below code fetches the 15 ...
0
votes
0answers
18 views

IS there any way to update a record in salesforce using PATCH Method Rest Call

IS there any way to update a record in salesforce using PATCH Method Rest Call. Can someone help me how PATCH Method can be used in INBOUND REST API
0
votes
0answers
18 views

Salesforce Lightning - Actions/RETURL

We have alot of returl usage in buttons on related lists that default values when creating child records. I understand that in Lightning they are removing this function. I also Understand that you ...
-1
votes
1answer
34 views

How to find all the related Child Objects metadata - standard and custom [closed]

How to find all the related Child Objects metadata - standard and custom except system objects like AttachedDocumentLink, ProcessInstance etc. Below is my requirement On a custom VF page, user ...
0
votes
0answers
20 views

Session expired or invalid in salesforce scim implementation

Invoking the URL GET https://salesforce_org_url/services/scim/v2/Users Header Authorization:Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxx Expected Response Salesforce user details Actual Response Could not ...
0
votes
0answers
15 views

Product info with Quotes PDF

Hi i have task to create Quote email and PDF, there are few product info pdf documents, i need to merge the quote line info with existing product info pdf document or more than one pdf document. Any ...
0
votes
1answer
27 views

Hyperlink Function in Formula Field to pass parameter Values

I'm trying to pass a couple of parameters to the external website through formula field. Formula Field: IF( CONTAINS( $Profile.Name, "System Administrator" ), HYPERLINK( "...
0
votes
0answers
9 views

How to delete process instances of approval process in salesforce?

when record is submitted through approval process and in approval history there are two items one is submitted another one is approved. Now i would like to delete these two times. kindly suggest. We ...
0
votes
0answers
13 views

Migrating Quote object data between 2 SaleForce Orgs. AccountID giving error

I am attempting to migrate data (many objects) to a new SF org. I am using SQLServer as a staging area to map IDs and Talend as my ETL tool. When migrating the Quote object, I am getting an error ...
0
votes
1answer
34 views

Error While updating the Owner of the Case to queue Id

Hi I am having the scenario where i need to update the owner of the case to a particular queue. but i am getting the error as below : System.DmlException: Update failed. First exception on row 0 ...
4
votes
1answer
42 views

What is the best value to use for an Id of a specific SObjectType that matches no records?

With reference to the very informative What are Salesforce ID's composed of?, I am wondering what the best value to use for an Id of a specific SObjectType that matches nothing is. If I ...
-2
votes
1answer
53 views

data-index not working, How to delete child records in lookup relation custom object?

in another project is working with the same structure, but not with this one. I can't see the error. thanks for helpme I can't delete the product, I want to get the ID by "data index" and delete the ...
0
votes
1answer
22 views

Auto populate fields from Case Objects to Servicenow fields using custom detail page button

I have a requirement wherein I have to create a custom button, upon clicking it few fields in case should be directly populated in servicenow. So, there are 2 user fieds (Requested For & Salesrep),...
0
votes
0answers
16 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 ...
0
votes
1answer
55 views

compositeRequest Invalid reference specified. No value

I'm trying to execute the following compositeRequest but I'm getting the error. { "allOrNone": true, "compositeRequest": [ { "method": "GET", "url": "/services/data/v46.0/query/?...
1
vote
0answers
64 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 ...
0
votes
1answer
35 views

Value of the Multiple child record of One Parent on the VF page:

I have completed around 100% of the requirement , only part i am struggling to show the correct value of the two boolean field against there Parent For ex : Parent A : Child 1: (Field -- ...
1
vote
0answers
32 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}" /> ...
0
votes
1answer
34 views

How do we capture the instance number from the URL

My problem is the following. We have a server migration soon and we have hardcoded the instance number in our email templates that point out to our Production environment (in this case NA44). So in ...
0
votes
0answers
9 views

Case object Access for other instance support people

my customer has acquired by some comp. they have two salesforce instances already. I would like provide my instance case object access to other instance support team. they should able to see and ...
1
vote
2answers
38 views

lightning data table column label is not printing Id is printing

I am trying to create a lightning data table which has hyperlink columns. when i try to add a reference field in column it just showing the id. component.set('v.columns', [ { label: '...
1
vote
0answers
28 views

How to get list of all sobject records modified today in the system? [duplicate]

I need a list of all sobject records that got modified today. this is not just for one object but for all objects in the system. Is there a simpler way to do this? Please reply.
1
vote
1answer
62 views

How to get list of all sobject records modified today in the system?

I need a list of all sobject records that got modified today. this is not just for one object but for all objects in the system. Is there a simpler way to do this?
1
vote
1answer
101 views

LWC function calls - Apex Method Imperatively

import { LightningElement, track, api} from 'lwc'; import saveRecord from '@salesforce/apex/Controller.saveRecord'; export default class CreateModel extends LightningElement { @track showModal=...
0
votes
1answer
126 views

Pre populate Lookup field - lightning component

I am creating a new lightning component to use as a new Factfind area. I have a lookup field on the backend that links to opportunity and I am displaying this using an lightning:inputField. However ...
0
votes
1answer
21 views

write an primitive testclass [duplicate]

I am new to apex, and I dont know how to correctly write a Testclass for my trigger. Trigger has to update field Time_Zone__c of object Task according to Time_Zone__c of object Contact, which is ...
0
votes
0answers
534 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. ...
0
votes
1answer
43 views

Extract Record data from the record Id

All, Quick question! A custom Order object and Order lines are generated via a trigger from the Opportunity and Opportunity Products. Opportunity and Order have lookup relations between each ...
2
votes
0answers
36 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. ...
0
votes
1answer
40 views

Assigning SOQL results to a set

I am trying to get Id list like this: Set<Id> idSet; idSet = [SELECT Id FROM Account LIMIT 1]; But getting this: Illegal assignment from List<Account> to Set<Id> I need to do ...
5
votes
2answers
279 views

How to choose using Collection<Id> rather than Collection<String>, or the opposite?

During a conference call with a collegue, I saw him using list of Strings while using Ids, referencing to a list of Ids ; I asked him why this choice, he answered 'Ids are strings so it's about the ...
0
votes
1answer
56 views

AMPscript WHILE loop to find highest level Salesforce parent account for record and add to data extension

I have a data extension of Salesforce Leads & Contacts that I want to enter into a journey. The data extension has the following fields. SubscriberKey (this is the 18-digit Salesforce Lead or ...
0
votes
0answers
19 views

not updated all opportunities with OpportunityTerritory2AssignmentFilter after enabling ETM

I have enabled the ETM in production and created opportunity assignment class which is provided by salesforce. When i click on Run opportunity filter button on territory model hierarchy,few records ...
0
votes
1answer
59 views

Is this workaround would be helpful while getting UNABLE_TO_LOCK_ROW salesforce?

I'm getting UNABLE_TO_LOCK_ROW excpetion and tried couple of solutions like "FOR Update" in SOQL. Changed normal upsert statement to database.upsert & tried to catch,save failed records using ...
-2
votes
1answer
39 views

Scenario System.calloutException You have uncommitted work pending. Please commit or rollback before calling out

Scenario is Call the web service and get the response Update one object with response details in future after that call the another call out using one of the response value And i am getting call ...
1
vote
2answers
82 views

Is there a way to tell what object an 18 digit ID refers to?

I have a huge list of 18 digit ids which either refer to a contact or an account. Is it possible to tell which is which without manually checking them all?
1
vote
1answer
26 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 ...
0
votes
0answers
19 views

Outlook For Salesforce Integration

I have connected outlook and salesforce through Outlook Integration(I have not used Lightning Sync). I want to access all the emails or name in my outlook's address book in my salesforce org. Is it ...
0
votes
0answers
17 views

18 character Salesforce ID in upper case returning zero records in SOQL query [duplicate]

I have an 18 character Salesforce ID: XXXXJ00000326hjQAA When it's used in an SOQL query: Id recordId = Id.valueOf('XXXXJ00000326hjQAA'); List<Opportunity> records = [SELECT ID FROM ...
0
votes
0answers
26 views

Unable to send file blobs to specific Salesforce Lightning folders for testing

I recently developed a script that could integrate with Salesforce and move documents via file blobs to individual Salesforce folders but with our organizations recent migration to Salesforce ...