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
0answers
16 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 ...
-1
votes
1answer
48 views

How to get current record id apex to lwc stop the previous record

I have used lightning-record-edit-form and datatable to record custom related forms in lwc. My issue is when I insert and save the record am getting all the previous record on the data table. I need ...
0
votes
1answer
20 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. ...
0
votes
0answers
14 views

Issue with hyperlink

I am trying to create a link that opens into the record detail page in lightning componenet . {!ct.cdl.LinkedEntity.Name} ct is the aura iteration variable of wrapper list and idRec is auraenabled get ...
0
votes
2answers
137 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 '@...
0
votes
2answers
33 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 ...
0
votes
2answers
55 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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
21 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<...
-1
votes
1answer
44 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 ...
-2
votes
1answer
37 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?
0
votes
1answer
27 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?
0
votes
1answer
23 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 ...
0
votes
2answers
45 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 ...
0
votes
1answer
33 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?
0
votes
0answers
25 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 ...
0
votes
1answer
29 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 ...
3
votes
3answers
124 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 ...
0
votes
2answers
212 views

Standard Field Reference in Process Builder,Formula Field

I'm creating a work flow rule to update a check box field on contacts page layout to true. Rewards (custom object) is the related list on Accounts It has a custom field called RewardsContact which is ...
1
vote
2answers
60 views

How to loop trough map and get record by field value

I have a map<Id,String> subMap this is the id of a record where the string is a name of a Future_record__c yet to be made after a callout. How do I loop through the subMap and get the ...
1
vote
1answer
41 views

How to get id from concatenation of string in loop

I am looping trough some records and want to get the related id. This works fine as invoice.BillingAccount__r.BillToId__c. In my case BillToId__c is a field that I get from a custom metadata setting. ...
0
votes
0answers
25 views

Error occurs 'An unresolvable error occurred and your changes could not be saved' in mobile App salesforce'

I tried to edit account records and saved it, getting an error'An unresolvable error occurred and your changes could not be saved'. This is happening only in mobile App but not in salesforce website. ...
1
vote
2answers
38 views

Select records from a List with a specific RecordTypeId

I have a List of the object Animal, with records from two different record types, How can I return another List with the animals with one of those record types?? Preferrably using a query instead ...
0
votes
0answers
16 views

“URL No Longer Exists” when accessing record from event/task reminder

When logging into SF, users get a pop-up Event/Task reminder for that day, which is great. But when users try to access these records through the pop-up, they're redirected to a "URL No Longer Exists"-...
4
votes
1answer
803 views

LWC recordId showing as undefined in Spring '20

This past weekend, our org was updated to Spring '20 and since our use of recordId and the getRecord method broke. The recordId is undefined when the getRecord method is wired and won't run again even ...
1
vote
2answers
568 views

force:chatter publisher not showing POST tab (cannot create posts on record)

As per documentation of forceChatter:publisher, forceChatter:publisher allows users create posts on records or groups and upload attachments from their desktops in Lightning. When the following line ...
0
votes
2answers
113 views

Set record type when creating an object without using RecordTypeId [closed]

I have a custom object with two record types, How can I set the record type using the record type name when creating a new object record?? Without using the RecordTypeId is possible?? I think is not ...
2
votes
2answers
47 views

CreatedDate of new record (Time)

My Org is set to GMT+1 which is my timezone. (Stated in the Company Information). I have created a record at 11:30 am but when I retrieve the CreatedDate field it says that it was created at 10:30 am....
0
votes
0answers
96 views

Insert a new record with multiple fields Error 431 HTTP

I am trying to insert a new records in my custom object Monitor__c with too many fields, when I execute my code in an anonymous window in the developer console, It delivers the following error: ...
0
votes
1answer
545 views

Get record Id in Apex class

I have a function that does API callouts. It takes a string as a parameter, which is the record ID. I need a way to make an InvocableMethod so I can call that method with the current record ID from ...
0
votes
1answer
45 views

How to get record from id map

I have a before trigger to compare dates on entry. I want to get a recond based on an id from a map, How do I achieve this. Below is my example with my question on line AAddress__c dummy = ...
1
vote
1answer
71 views

How to get a Lightning record page URL in a Visualforce page when in a Lightning Experience Community

We have a Visualforce page that provides a sophisticated graphical presentation of data, and part of this is to include links to open various objects' record pages when the link text is clicked. We do ...
0
votes
1answer
88 views

Ampersand in field while saved set &amp; then &amp;amp; until too large for update

Sorry if there are already subjects about this, didn't found anything. Here is my problem : some records contains "&" in fields (or accents). They have to. Those fields are automatically updated ...
1
vote
1answer
26 views

Hiding certain records and their related records

I am trying to keep records separate from certain users when it is categorized in a specific group. For instance, when an account is created if it's in category A I want only group A to have access to ...
0
votes
1answer
9 views

Limit records based upon multiple criteria on object and user

I'm looking at limiting access to certain records such that should a record be assigned to a certain group of users (via some field on the object), only those users would be able see or edit those ...
0
votes
1answer
44 views

Update lead record on javascript button click in lighting

I am new to salesforce lightning. I have a button in classic that update the lead status. But I am not been able to figure out how the same thing will be written in lightning. Here is my classic ...
0
votes
2answers
881 views

LWC Composition for Custom Layout inside a lightning-record-form

I have a SObject with multiple display layouts. Now, I want a way to display a particular layout in my lightning-record-form with different lightning-input-field. I don't wanna attach all the fields ...
0
votes
1answer
131 views

put text by link style in lightning datatable [duplicate]

I want to put data in lightning datatable by url link style like attached to express the record of relationship. I tried header type "url", but it showed "http//" in the cells. How can we put data ...
0
votes
0answers
82 views

mass merge accounts - tool suggestion anyone?

We have 2 sets of accounts in one org and would like to merge them. They are currently separated by Account Record Types, so I'm really asking if there is a way to merge 2 record types into one. We'd ...
0
votes
2answers
54 views

Input field not getting populated when selecting multiple records in a table as aura:id does not support dynamic id

I have a component which will display a list of records in the table format, and here I have a pick-list input field named Distance . Now on entering value in distance field and saving the record, ...
0
votes
1answer
101 views

What a community user can do on the custom object record?

Has anyone implemented a community from a NPSP org ? I need to launch a community with a NPSP org, but I have a question that the documentation doesn't answer me. What a user can do on a record of a ...
1
vote
3answers
3k views

Getting the recordId in lightning web component in the utility bar

I'm fairly new to salesforce and lwc so apologies if this question has an easy answer. I'm trying to get the recordId in a component using @api. The component is being used in the Utility Bar. Using ...
0
votes
2answers
1k views

Salesforce Objects & record Counts

Is there any way to generate XLS/HTML output with below details from Salesforce? List of all STANDARD & CUSTOM Objects Record Counts associated with above objects Thanks Sri
0
votes
1answer
1k views

Get Record Data for Custom Object

I have been following this guide to create a Web Component that gets a records information, however I am having trouble getting this to work with custom object... Is there extra steps you need to take ...
0
votes
1answer
575 views

How to perform mass merge for duplicated records in a custom object?

I have a custom object A and a custom object B. Custom object A is the parent object. Custom object B is the child object. The relationship between custom object A and custo object B is a master-...
1
vote
1answer
499 views

How to upload files to a related record using lightning components?

I'm trying to upload a file to a related record using just the <lightning:input> component. The <aura: component> includes the force:hasRecordId and by using {!v.recordId} I am able to ...
1
vote
1answer
597 views

Notes & Attachments Cant find using soql

I did not get any result from querying notes and attachment. Setup I create a custom object. I added notes and attachment to the custom object I created soql that filter by parentId and it looks like ...
0
votes
1answer
32 views

Configure a many-to-many relationship with one side being a fixed set of records, which may have different types [closed]

What is the best way to configure a many-to-many relationship with one side being a fixed set of records, which may have different types? I think it will be a lot easier to understand what my ...
1
vote
1answer
25 views

Record Insertion using Lightning,

I need to insert a record to a custom object throught the lightning page that I have created. but i am getting the attached SS error. Could any1 tell me what I am doing wrong ? CMP:- <aura:...
0
votes
1answer
22 views

Best Practice for Canine profile

I work for a nonprofit that trains service dogs for Veteran's with PTSD and we just started using salesforce. I am the admin, and still learning as I go... I am struggling with the best practice to ...