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
1answer
17 views

Create no more than one record per day

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
12 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
23 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
67 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
42 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
56 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
36 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
22 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
35 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
15 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
206 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
145 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
65 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
38 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
49 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
126 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
44 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
30 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
41 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
25 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
0answers
22 views

display multiple fields information in one inputfield

How can we show multiple fields information in one inputField? I would like to display multiple fields after select the searched record. In the attachment, multiple fields are shown in the search ...
0
votes
1answer
23 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
517 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
80 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
49 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
45 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
0answers
71 views

Redirect to non-default tab on recordpage from Lightning Component

I'm using a lightning component to update a record. For the lightning whole application to work well, it has to reload completely. After updating the record, I use lightning-navigation to create the ...
0
votes
1answer
73 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
2k 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
702 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
775 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
369 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
314 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
411 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
23 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 ...
1
vote
1answer
438 views

How to specify the Lead owner when creating with REST API?

I searched through the documentation and it seems Lead creation is done by sending a hash of attributes. How do you specify the Lead owner? By email? User ID? Is there any documentation?
1
vote
1answer
278 views

Can't set a picklist default value when creating Person Account, because Person Account not visible

a bit long but I'm a bit stuck. I have Person Accounts enabled. I'd like to set a picklist default value when someone chooses to create a new Person Account. The picklist is not a controlling field ...
0
votes
1answer
60 views

Update record page after record is updated by calling external API

I have trigger on contact which validates phone by calling external API. To be able to call the the API from trigger, I'm using future annotation. The callout method writes the result to custom field ...
0
votes
3answers
188 views

How do you delete a custom object with a Lightning record page from Managed package?

I believe we can delete custom objects in a managed package once all dependencies are removed. Unfortunately we have a Lightning record page created for one of these custom objects. It seems we ...
0
votes
1answer
14 views

How to update a package in test environment after I changed it in development environment?

How to update a package in test environment after I changed it in development environment? After creating a package I forgot to add a few records of a specific Custom Metadata Type. Now I went to the ...
0
votes
1answer
29 views

How do I pull a field in to a report from an associated record ( Accounting Seed )

I have a salesforce report ( Accounting Seed ) that includes a number of fields. When you click on the actual entry, you can get details including a reference to an other associated record ( it is ...
0
votes
1answer
499 views

How do I check the RecordType of an Opportunity?

We have a trigger in our org that will clone Opportunities if they meet certain criteria. Due to recent changes in our business though we now have to account for certain record types (i.e we only want ...
0
votes
1answer
26 views

getting error while filling in assigned to field of new task of Account

I am getting error while filling in assigned to field of new task of Account.When I am saving the task record, I am getting No User found error and not able to save the record. User that I have filled ...
0
votes
1answer
223 views

How do I edit a field in a record from Component.js in a lightning component?

I am new to Salesforce development (apologies in advance for not knowing all the Salesforce jargon) and I am trying to build a lightning component that will read fields from a record, add the values ...
5
votes
1answer
4k views

Is there some event to delete record from Lightning component like e.force:deleteRecord

There are a couple of events in Lightning to operate with records like e.force:createRecord or e.force:editRecord, but I did not find anything to remove record. https://developer.salesforce.com/docs/...
2
votes
1answer
66 views

RecordType.Name Visibility

I am going slightly crazy over here. I want to pull the RecordType.Name off of the Opportunity and write some logic depending on what the name is. public void onlineCalculatorShortenedLink(Map<Id,...
2
votes
2answers
253 views

How to make custom object record only visible to certain users based on field checkbox

So I have a custom object in my org called Promotion Events. I would like to add a field called 'Private' that is a check box, and if it is checked and the event is created, this event(Promotion Event ...