The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
39
votes
5answers
23k views

can salesforce handle 50 or 70 million records?

Can salesforce handle 50 or 70 million records? in the past I worked on the org which had 20 million tasks and it was real problem, so wanted to get experts thoughts on what is the impact if we ...
9
votes
2answers
916 views

Getting record count through WebService bypassing LIMITS

I have written the below web service class to return record count. But it is returning the following message "System.LimitException: Too many query rows: 50001". How could I overcome this limit? @...
8
votes
1answer
5k views

Maximum length of Autonumber name field

I know that if you create a custom object, with an Auto-number Name field with a format, e.g. MYC-{0000} you will be able to create records from MYC-0000 to MYC-9999. The moment you create 10,000 ...
5
votes
4answers
5k views

Is there a way to set-up red green yellow lights that show up depending on what status the record is in?

I've seen apps with this functionality but not quite sure how to implement it
5
votes
1answer
456 views

Can SOSL be used with more record than SOQL?

Because our client has a LOT of records (I have no idea how much), my colleagues feel it is necessary to use a SOSL query rather than a SOQL query, but I've never heard anything suggesting that SOSL ...
5
votes
3answers
2k views

How to give Record Id in url in a lightning app like a VF page?

I'm a newbie. I want to know that how can I provide a recorid in the url and manipulate the record in lightning component like I do in vf pages.? Can anybody help please...
5
votes
1answer
3k 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/...
5
votes
1answer
853 views

Is there an event to handle Successful creation of record when event force:createRecord is used

I am creating custom object records using standard salesforce record creation feature by firing the event force:createRecord from my custom component. After saving the record, Page navigates to ...
4
votes
1answer
783 views

What is the value of the first and final record id for an object?

For example, Account IDs have prefix 001 and have 15 alphanumeric digits. What are the values for the first and last records that can be represented in this format (as we understand Salesforce IDs ...
4
votes
0answers
102 views

25 million records - Multiple Objects and Growing

I need to load 25 million records in Salesforce for a new project. The questions that I have are It is a custom portal development, so is it good to store so much amount of data in Salesforce or we ...
3
votes
1answer
224 views

Output the status of contact owner to a VF Page

I am trying to pull list of contacts with no accountId showing if the contact owner is active or not. Page: <apex:pageblockTable value="{!EmptyAccount_contact}" var="a"> <apex:...
3
votes
2answers
1k views

Why is my locked record editable?

Why is my record locked? The record that the class below creates, when shown in detail view, has the 'locked' icon, and appears to be locked at first view, but- Why can I edit the locked record (Even ...
2
votes
2answers
139 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 ...
2
votes
1answer
290 views

Is it possible to update an existing opportunity in Salesforce using apex SOQL query? [closed]

I have a business requirement to update / close an existing opportunity in Salesforce automatically. I have an existing script that extracts record from salesforce automatically using soql query and I ...
2
votes
2answers
13k views

How to Display Record Details with Lightning Component

I have an apex controller class: public with sharing class CatTrackingController { @auraEnabled public static list<Cats__c> getCats(){ return [ SELECT Id, Cat_Name__c, Cat_Breed__c, ...
2
votes
1answer
118 views

Restrict Customer's View of Object Records to Only Those They Create

I need to create a force.com portal site in which customers can submit one or two employment applications which they will fill out online in the site. The challenge for me (as a new force.com ...
2
votes
1answer
60 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
1answer
412 views

Is there anyway to delete a SF object record using the PHP toolkit?

I've this object relation: Group_Test__c <---> AssociationGroupOrder <--> Order So I can have a N:N realtion between Groups and Orders. I'm working with the PHP Toolkit. ...
2
votes
3answers
510 views

Need to Create a page to display all the account records existing the instance.

Need to Create a page to display all the account records existing the instance. It should display 20 records in one page and should have NEXT & PREVIOUS button to navigate to other records. but ...
2
votes
1answer
9k views

i cannot retrieve the current record id in lightning experience

I trying to do some processing for contracts, for that, i created a custom button on the contract that call a visualforce page. I am using ligntining experience and thus i created an application to ...
2
votes
1answer
1k views

Allow Duplicate Email but alert user that this email already exist

This is one weird requirement for our client, they want to allow duplicate email in Lead object, but when saving the record it should alert them saying that "A lead With this email address already ...
2
votes
1answer
6k views

Sending dynamic checkbox values from a VisualForce

I created a VisualForce wherein I display values from a map (returned from a custom controller with a SOQL request) using an apex:repeat. Each time I display this VisualForce page, the amount of ...
2
votes
1answer
364 views

How to prevent duplicate user in before insert and before update event in custom object?

I am trying to prevent duplicate users while creating the record in custom object which is having look-up relationship. The code is executing fine in before insert, But when updating same record with ...
2
votes
1answer
3k views

System.VisualforceException: Modified rows exist in the records collection!

I am displaying the pagination using standardsetController. And it is working but when i try to change the value in my inputtest and i am clicking the next button it is showing error that System....
2
votes
1answer
128 views

Picklist control to create a new record

I am working on a project to manage the human ressources, well my question is: how can I control a picklist to create a new record. Exemple: I go to Application tab, wich contain a picklist, among ...
2
votes
1answer
44 views

Record won't insert - Apex Trigger

I have created an apex trigger so that it will create a record for everyday of an opportunities contract, I have run the code without the insert statement and my debug shows it works fine. What am I ...
2
votes
0answers
193 views

How to delete a record from a non-queryable object

I'm trying to delete a record from MobilePushServiceDevice object. This object is not queryable, however, it is deletable. How can I delete a specific record from this object if I can't query it in ...
2
votes
2answers
845 views

How to create more than one temporary record with lightning components

Dear fellow Salesforce experts, I am building a lightning component where I am using a form with fields in order to create multiple records. I am already able to create multiple opportunity records ...
2
votes
0answers
125 views

Salesforce Optimistic Record Locking and JavaScript Updates

Is there a way to implement field only updates for Salesforce? Even if fields could be updated concurrently through JavaScript/JavaScript remoting calls, would Salesforce still save the record using ...
2
votes
2answers
509 views

Problem with trigger when Inserting new records on custom object [duplicate]

I am trying to insert new records into a custom object (production) via apex data loader. When I do so I get an error like ​ ReservationTrigger: execution of AfterInsert caused by: System....
1
vote
3answers
1k views

How to lock Opportunity Record?

How to lock a Opportunity Record if the Stage value is changed to Closed Won or Closed Lost? I think it can be done using a validation rule but I am not sure and want to have a best approach.
1
vote
1answer
194 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 ...
1
vote
2answers
2k views

Change the field of another object before insert

I have two Objects : Activities and Services, with each field. I create a Trigger (Before Insert) on the Activity, in the Trigger I would like to modify the fields of a record of the Service object. ...
1
vote
2answers
1k views

Lightning Component for specific Custom Object

I am trying to create lightning component which should be specific to one custom object record only. I added the component to Community Builder Custom object detail page. The problem I am facing is ...
1
vote
4answers
4k views

How to mass update a field on User Record

I am trying to update a field on all users in the organization. Ex: I would like to update the company name for all users in my organization. I tried these: - Create a list view of all users and try ...
1
vote
1answer
251 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
3k views

Find specific record in sObject list in efficient way

I have a list of type of custom sobject List<CustObject__c> I have ID of a specific record of that object. What is most efficient way to lookup this record in the list? I need to optimize some ...
1
vote
2answers
852 views

Workflow , Trigger dead lock scenario

I have a question on above mentioned subject. If I am having an apex trigger A1 on X__c custom object. Once there is an update on X__c record , trigger fires. Now when trigger is running by that time ...
1
vote
1answer
423 views

OnClick JavaScript id issue

I am using a List custom button in Listview once I select the records through checkboxes then the script will call and get the list of id's and pass them to apex class methods, but at that point I am ...
1
vote
2answers
2k views

how to get the id of a record in a row?

I have a visualforce page which shows list of a custom object records.One column shows the Account name which has lookup relationship with the custom object.I need to add one button in each row and on ...
1
vote
2answers
48 views

Duplicated informations

I’m looking for a way to know which are the “duplicated ” records in production . I want to know witch are the leads record matching the following condition: lead email=Contact email. So check for ...
1
vote
1answer
50 views

Record Sharing Salesforce

Below trigger is giving error while creating sharing records, can some suggests where is the issue. Sharing setting is set to private for external user on this object. Error: AccessLevel (trivial ...
1
vote
1answer
97 views

Send an email : - Error

I created a send an email button for a custom object called 'Application__c', but I was experiencing some issues with filling the related to field, if I exclude it it work fine, but when I'm trying ...
1
vote
1answer
29 views

Owner not getting mapped to the created record

A Visualforce page reads param id of a custom object CustomObjA__c and creates a new record of CustomObjB__c by mapping the required fields from A to B. It also maps the owner of record A to B. After ...
1
vote
2answers
2k views

What are consequences of changing Record Type Name

In my full org I have a record type with label name as ABC and its record type name is ABC_XXX. I also have a DEV org with the same record type names in there. I would like to changes the record type ...
1
vote
2answers
1k views

modal window pop up in apex pageblockTable opens the same message for every record

I have a pageBlockTable with modal pop up window opening on clicking a column value. Example: I have 2 columns Subject and Date. When I click on ABC, in the modal pop-window I'm showing "XYZ and ...
1
vote
2answers
207 views

I wish to assign contacts, accounts to a particular business unit and time frame will be defined Is it possible?

In Salesforce, i wish to assign contacts, accounts to a particular business unit and time frame will be defined. All the users in the particular business unit will see those records in that time frame....
1
vote
2answers
1k 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 ...
1
vote
1answer
178 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 ...
1
vote
1answer
401 views

How to check if record field is empty using just the component syntax?

Using force:recordData to load a record data to a component, how can I check if a numeric field is null, to work with the aura:if syntax? I've tried != null, != undefined, != '', empty(v.record....