Questions tagged [record]

The term sObject refers to any object that can be stored in Force.com. This could be a standard object, such as Account, or a custom object that you create, such as a Merchandise object. An sObject variable represents a row of data, also known as a record.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

How to add Emails & Log a call records to account record page in related list?

I have developed a account record page in Lightning app builder.But i am unable to add Emails & Log a call records belongs to that account record. can anyone assist is there a way to add Emails &...
user avatar
0 votes
0 answers
31 views

Close a new record modal opened with opencti screenPop()

Within an aura component, I would like to know if it's possible to close a 'new record modal' that was opened with the openCti.screenPop() method : screenPop documentation I'm indeed opening a 'new ...
user avatar
0 votes
1 answer
311 views

Record-triggered Flows

If I update a field on record using Record-triggered flows, I want to know that according to the salesforce order of execution, will it cause the triggers and processes (process builders) to run again ...
user avatar
1 vote
1 answer
40 views

Set value immediately when creating Picklist Field on Existing Records

I'm trying to create a new Picklist Field. I know that I can assign a default value for it so that Newly Created Records would always have that value (unless manually changed). However, my concern is ...
user avatar
  • 103
-2 votes
1 answer
95 views

How do I pass the recordId from Aura to my Apex controller?

I have access to recordId in Aura and I want to access it in my Apex Controller. I am following the docs here. I keep getting an error that it can't find the serverEcho controller file. (See doInit ...
user avatar
  • 1
1 vote
1 answer
106 views

How to write SOQL query in Salesforce to get total row/record counts of each object along with the object name?

SELECT qualifiedapiname FROM EntityDefinition WHERE IsQueryable = true AND IsRetrieveable = true AND IsDeprecatedAndHidden = false LIMIT 2000 Above query lists all SFDC standard/custom objects....
user avatar
  • 11
0 votes
0 answers
24 views

Trying to prepopulate the recordid of the account on force:createrecord in a custom lightning component

I am trying to pre-populate my accountID(recordid) in the custom lightning component but the recordid function doesn't work. I get a blank response. BTW this lightning component opens up on a new ...
user avatar
  • 25
0 votes
1 answer
104 views

Record id and contact id?

I have a record id. How can I use that in an an Apex function to retrieve the contact id? Background: I have a react app that I have embedded using lightning container static resource (aura component)...
user avatar
  • 1
1 vote
0 answers
112 views

How to add seperate comma in list value after loop and input data in list?? -FLOW SALESFORCE

i am newbie in salesforce, I do a loop and store the data in a collection variable (multiple). but when the data is added the list is not separated by commas. Example of the resulting output: Data ...
user avatar
0 votes
1 answer
301 views

How to enable/show Activity Timeline for Custom Object on Salesforce Android App?

There is currently a feature to show Activity Timeline on the Salesforce Android App for some Standard Objects' record page, such as Leads, Opportunity, Accounts, and Contacts. Source. Example: My ...
user avatar
  • 285
0 votes
1 answer
786 views

Get object apiname based on recordid in lightning web component

Is it possible to het the object apiname based on a recordId in a lwc without a call to apex? Something like apex but then without going to backend: Id recordId = '001g000001jmmCA'; System.debug('...
user avatar
  • 2,068
0 votes
1 answer
79 views

Export data and download file

I am exporting some data into csv from org and want to download that file. Now i can just send it to email. Any ideas? List<Account > acclist = [Select id,name , CreatedDate , lastModifiedDate ...
user avatar
  • 41
0 votes
1 answer
62 views

How to add a record data to this without using apex?

created a static table but now need to add record values to it ? Help me and thanks in advance. code: <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:...
user avatar
1 vote
1 answer
46 views

Record page link is not appearing in the email

I am sending out an email from my code after a certain action, and I am trying to add the record link to it. But in the email that is being sent out, the link of the record page is not appearing or ...
user avatar
0 votes
2 answers
193 views

Get all object fields into map [duplicate]

I am trying to get all record fields and transfer them to another org. But getPopulatedFieldsAsMap doesn't give all fields. How can i retrieve all fields? conList is trigger.new for(List<Contact>...
user avatar
1 vote
1 answer
143 views

force:hasRecordId interface doesn't provide recordId from "new" button override

I have two custom objects (let's call them House and Resident). The House record page has a related list containing all related residents. I also have two lightning components (ResidentDetails and ...
user avatar
  • 155
0 votes
0 answers
14 views

Show in UI own record in aura component

I have a custom lightning component and I would like to show one field like this: A default record appears on the input field. In my case, my aura component shows just current Record Id, like this: ...
user avatar
  • 157
0 votes
2 answers
87 views

Apex flow create record

I have a problem. If we create a record in salesforce flow (for example 'quote' object) and if we choose the option 'use all values from a record' than we have a variable that will contain that ...
user avatar
3 votes
1 answer
372 views

Possible to get sObjectName in Utility Bar LWC?

I'm creating a LWC that I want to have context from the currently focused tab. I want to have both the recordId and the sObjectName. In fact, I've successfully done this for the recordId based on this ...
user avatar
  • 451
0 votes
0 answers
204 views

Blank spaces do not appear in Salesforce lightning experience page which is using Dynamic forms

I am trying to add a blank space on a page layout to separate out fields for an object. Dynamic form was enabled for a lightning page using this layout. However, the separation of the fields with the ...
user avatar
0 votes
0 answers
40 views

How to get owner's photo in custom record page?

I made a custom record page, where I can get detail info about records. This includes the owner field. And next to the field I want to get a photo of the owner and maybe user's photo from "...
user avatar
0 votes
0 answers
126 views

Is it possible to attach standard actions like 'Sharing' and 'Change Owner' to custom buttons when creating a custom Record Page in LWC?

Is it possible to attach standard actions like 'Sharing' and 'Change Owner' to custom buttons when creating a custom Record Page in LWC? For 'edit' and 'clone' I'm using NavigationMixin, but what can ...
user avatar
0 votes
0 answers
31 views

salesforce toolkit php create duplicate records

I am using salesforce toolkit PHP to create an Opportunity. Everything works great but I random duplicate record creation which is driving me crazy. Does anyone know how to fix this problem? I can't ...
user avatar
0 votes
1 answer
5k views

Fetching record data from Apex in LWC

I am trying to display the account name in the HTML by fetching the data from apex controller. The getter method in the JS file is used to fetch the data from apex using the wire method and return the ...
user avatar
1 vote
1 answer
254 views

Can an object record's id repeat?

I know that Id records in an object are created randomly and are not repeated. My question is: this repetition does not occur because the records exist, but what if one or more records are deleted? ...
user avatar
1 vote
1 answer
937 views

Add hyperlink to record page in lwc

I have a lightning web component that fetch account record from Salesforce. When a user clicks on the Account name, I want to take the user to the Account record page. How can I achieve this? .html &...
user avatar
0 votes
0 answers
63 views

I wanted to know that under what circumstances is the sharing button enabled on the detail view for a record?

Now, I have a custom object for which I have the OWD set as private, then I am able to see the sharing button on the detail page of the record, but even if I set it to public read/write, I can still ...
user avatar
1 vote
3 answers
630 views

Get a field label for a given record Id

Id recordId = 'xyz'; String objName = recordId.getSObjectType().getDescribe().getName(); I found the object Name but I also want Label for this recordId. How to use getLabel() on a given recordId?
user avatar
0 votes
2 answers
54 views

Java Devlopment: How to Map Detail Objects to Their Master Object in Master-Detail Relationships

I have a Salesforce project in which I will be automatically popualating custom SObjects from a Java app. This will be done by pulling data down from a database, parsing it (including a JSON payload), ...
user avatar
0 votes
1 answer
399 views

Pass the recordId with Apex Trigger

I am writing my first apex trigger to call a flow after a comment is created in the chatter. I am having trouble sending the recordId of the FeedComment to the flow. It should be assigned to the ...
user avatar
0 votes
1 answer
455 views

Get List View Fields

Is there a way to get API Names of fields through Apex, which are displayed in the list view? I tried using Metadata API, Rest API, User Interface API, LDS.
user avatar
1 vote
0 answers
45 views

Get RecordID based on ExternalID

I always stumble upon this situation - I have csv file with 200 records and each record has an ExternalId. These records may or may not exist in Salesforce. In Salesforce I have an ExternalID field. ...
user avatar
0 votes
0 answers
892 views

Not able to access record in lightning but able to in classic

I'm able to access records of a custom object in salesforce classic and was also in lightning. But recently i'm seeing Looks like there's a problem. Unfortunately, there was a problem. Please try ...
user avatar
0 votes
0 answers
518 views

Lightning: open in sub-tabs when click on list-view records

In lightning: Is that possible for list-view records to open in sub-tabs so that I can easily switch back and forth between the records? I have a custom_object and when the user clicks on the record ...
user avatar
  • 6,559
-4 votes
1 answer
401 views

Not able to view the save record current record id lightning datatale and lightning-record-edit-form in lwc [closed]

used lightning record edit form and datatable ,I need to save current record data with the current record id but am getting all pervious record data in table.there is any solution. In this picture, I ...
user avatar
0 votes
1 answer
53 views

Record size with a picklist

I have a custom object My_Object. I have now created another object Shadow which has a single field My_Object__c which is a Lookup to My_Object. When I create a Shadow, each record is a whopping 2 KB. ...
user avatar
  • 1,564
2 votes
2 answers
2k views

getRecord, getFieldValue always return undefined values in LWC

Here is the javascript code of my LWC import { LightningElement, api, wire, track } from 'lwc'; import { getRecord, getFieldValue } from 'lightning/uiRecordApi'; import getAlertMetadata from '@...
user avatar
  • 160
0 votes
2 answers
36 views

No more than one record creation and check record collision of similar type [duplicate]

I've created a custom object for Leaves which allows the users under my org to apply for leaves. I've added three types of leaves such as Casual Leave, Sick Leave & Leave without Pay. I've used an ...
user avatar
0 votes
2 answers
129 views

Create no more than one record of particular type per day

I've created a custom object for Leaves which allows the users under my org to apply for leaves. I've added three types of leaves such as Casual Leave, Sick Leave & Leave without Pay. I've used an ...
user avatar
0 votes
1 answer
45 views

Record dependency

I have a custom object to apply for leaves (such as Casual, Sick, Unpaid) for the users in my org. I have applied a validation rule to check different users cannot create or edit any record for other ...
user avatar
0 votes
1 answer
25 views

How to call the following apex class from apex trigger. the trigger needs to work on after update

public class StatusClosedHandler { public static void statuschange(String RecordId){ integer count = 0; List<Service_Request__c> srequest = new List<...
user avatar
  • 5
-1 votes
1 answer
260 views

Records being randomly deleted

I was informed of some weird behavior of some custom records missing from our SF instance and after a little research I found that all of these missing records had been moved into the recycling bin ...
user avatar
  • 1,000
-2 votes
1 answer
125 views

Create one Record in a Week [closed]

I want a workflow to validate the creation of only one record in a week. If more than one created within the same week, should show error. How should I do this?
user avatar
0 votes
1 answer
165 views

Create Workflow without criteria

I am facing problem with my serial no. for records. When there is no record created due to some errors, that record also gets a count and I'm unable to get an uniform serial count. What should I do?
user avatar
0 votes
1 answer
25 views

Record duplication : One Record for a Day

I want to create requirement to create one record for a day. I want to do this through the E-mail field on my custom object. I have checked for "No Duplicate Value" for the email field but want to ...
user avatar
0 votes
2 answers
296 views

Validation rule for only One record per day

Can anyone help me with a validation rule, which prevents the creation of more than one record per day? I have tried using different Validation rules, but none of them worked as expected. I know this ...
user avatar
0 votes
1 answer
50 views

Create no more than one record per day [duplicate]

I want to develop a functionality for creating no more than one record per day. If more than one record is created should show error. How should I do this?
user avatar
0 votes
0 answers
297 views

Fetch Record ID from batch job id

I have a job id for a batch apex class.I need to fetch the record ids from the job id.Is it possible to use an SOQL to fetch the record id for which the particular job id ran. I need help on the query ...
user avatar
0 votes
1 answer
52 views

Can we bind old records to a new Record Type automatically? [closed]

E. g., in some object we haven't any Record Type yet. But we decide to create it and want to bind all old records of this object, that haven't Record Type, automatically. Is it possible? Or we have to ...
user avatar
  • 45
3 votes
3 answers
339 views

Uncaught ReferenceError: Record ID (X) is not defined in VisualForce Page (RemoteAction)

I'm currently finishing an Apex controller which gathers data for a Google chart displayed on a Visual Force Page. The standard Query without the WHERE clause is just working fine for all the data ...
user avatar