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
0answers
24 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
46 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
46 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
37 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
20 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
61 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
41 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
32 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
30 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 ...
0
votes
0answers
18 views

Salesforce Record Generation

Questions : When does ID gets generated on insert event in cross object operation ? when we can use that ID.?
5
votes
2answers
253 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
51 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
9 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
52 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
29 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
76 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
19 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
15 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
21 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 ...
0
votes
0answers
16 views

Translate picklist value into Arabic

we have a requirement in which we have to translate the multi picklist values into arabic. We are saving Multi pick list value as string in other field. We need to convert this string Arabic also. ...
0
votes
1answer
23 views

Retrieving packaged(Managed ) objects custom fields into Eclipse with Force.com IDE to deploy to another org

I added the following code in package.xml <types> <members>SCSCHAMPS__Job__c</members> <name>CustomObject</name> </types> But, After I am trying to deploy this ...
1
vote
2answers
65 views

Extracting data

I have a list of 5K id's for which I need data extracted from Salesforce. Is there any way I can feed this list into SF. The only tool my organization has is DataLoader & am not sure how to feed ...
0
votes
0answers
8 views

unable to fetch value from igGrid

Can anyone please help me in below JS code snippet, which is not rendering value from the record. i could be able to see the value for the first alert, but when it throws error while executing second ...
0
votes
1answer
47 views

SObject row was retrieved via SOQL without querying the requested field: s2cor__Sage_INV_Trade_Document_Type__c. s2cor__Use_Company_Shipping__c

I have a C# application that was meant to upload invoices to salesforce financials. All other functions of the application works fine except the uploading module. During the upload process, I have to ...
1
vote
0answers
44 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 ...
-4
votes
1answer
46 views

How Get ID of the record from Map

I want to add Map id into Method Parameter And required only one I'd not Set Map<Id,fsCore__Transaction_Parameter_Field__c> obj =new Map<Id,fsCore__Transaction_Parameter_Field__c> ([...
0
votes
1answer
19 views

can we connect one pardot account with multiple salesforce instances?

As my client acquired by new customer,they looking for possibilities to connect one pardot account with multiple salesfroce instances. is this possible?
-1
votes
1answer
27 views

Publish App exchange application with Scanning [duplicate]

I have created a Lightning component And Add in App Exchange my partner community. So I have passed my component in a security review. Now I can use SOURCE SCANNER for Apex class and visual force ...
0
votes
0answers
23 views

Salesforce Reports & Dashboard Sharing

We have to give permission to user to Save report and Dashboards in a public Folder but users should not be allowed to Edit, Move or delete Reports/Dashboards which falls under that public folder. ...
4
votes
1answer
80 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 ...
1
vote
0answers
24 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
2answers
152 views

Illegal assignment from Id to List

I have a real quick question. Usually when I want to get a list of IDs as a List i'll do something like: List<String> voterIds = [select ID, from Vote__c where suggestion__c =: recordId].ID; ...
0
votes
1answer
17 views

Unable to update existing(Or) related leads while lead convertion

Currently, I'm working on the parent-child relationship on the lead object. So, we are restricting users to convert only master lead & then top 20 related leads will be converting as contacts to ...
0
votes
0answers
20 views

How to integrate Footable responsive table in salesforce?

I am a ux-ui designer I have table data with multiple columns. Now I have to give a responsive view of the same table. As I searched and referred some libraries in which I found footable plugin which ...
0
votes
1answer
29 views

Is there any performance benefit of using Id field in Map instead of String in Apex Code

In my apex code I need to change data type of one variable from Map<Id, List<CustomObject1>> to Map<String, List<CustomObject1>>. This change is required to full fill one ...
0
votes
1answer
77 views

Preventing Duplicate Records to save in apex

I have created a lightning component that accepts input from user and saves the data to the custom object. Now i want to check duplication of the record based on two fields. Let suppose Name and Date, ...
0
votes
0answers
33 views

How to fetch “bulk data loads” from salesforce using python and store it in postgres table?

How to fetch the number of record processed and number of record failed in salesforce using python. After a Bulk API upsert, how can i inspect the batch to find the count of record I am using the ...
0
votes
0answers
25 views

How to get all record Ids of the View that is currently opened by clicking a button

How to get all record Ids of the View that is currently opened by clicking a button. (I have used {!GETRECORDIDS($ObjectType.obj__c)} but for this we have to select the records, I want to get Ids ...
0
votes
0answers
21 views

URL for creating new listview of any object salesforce classic

URL to create new listview in Salesforce classic. https://naXX.salesforce.com/ui/list/FilterEditPage?ftype=c For contact ftype = "c", Account: ftype="a" and Case: ftype="t". How to get ftype value ...
2
votes
1answer
115 views

Invalid Message Id Reference - In-Reply-To Header is Not Valid

I am designing a custom mail application with Visualforce and Apex in salesforce and I'm running into some issues maintaining threads and setting reply to ids. To establish which emails are a ...
0
votes
0answers
6 views

Template for Bilingual File Import

I am tryng to translate the language of the org according to the orgs locale. I need the template of the stf bilingual file that i can refer to prepare the sheet to import to the translation workbench....
0
votes
1answer
24 views

Connect SFDC with Other App, and this App with SFDC

I need send information to other aplication, and this application will send me the result. In my case, we have a community with opportunitys. When the Opp is closed, user can click on a button that it ...
0
votes
1answer
67 views

How to check in a map if specific value exist under multiple keys in Apex Map?

I have a Map of Permission set and the business Unit like below, the map is being generated from a custom setting Map<string, Allow_disposition__c> adobj = new Map<string, ...
0
votes
1answer
20 views

Get container name from current running app page

I am beginner in salesforce integration. I want to know that how can i get the name of container in which my salesforce application is running? For example, If my page in injected in Opportunity then ...
0
votes
0answers
17 views

Product price book bulk activate

How to update new price to the price books.
0
votes
1answer
61 views

How do I reference a Contact's Salesforce ID using AMPscript in an SMS message?

We are running a series of SMS messages from a journey starting with an outbound message then a series of response messages using the next keyword. I have a Data Extension that triggers the journey ...
0
votes
4answers
35 views

Using an Id in an Apex SOQL query - need formatting/typing help

I'm not able to get past what looks like a simple query in Apex and SOQL. I'm trying to query on an Id and I've tried many things. The query is built up dynamically using strings and the final part in ...
0
votes
1answer
20 views

Setting Different Permission For Record Owners

I am bit confusing on security part of salesforce. I have a situation where certain fields of an object X has to be disabled for a profile P. But the users in the same profile P, if they are the ...
1
vote
0answers
28 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.