Questions tagged [custom-object]

A custom object is an object that is created in an org as opposed to standard objects which are provided by Salesforce. Objects in Salesforce are like tables, so creating a custom object is analogous to creating a table in a relational database.

Filter by
Sorted by
Tagged with
1
vote
2answers
39 views

Index SOQL Query has a cost of 7.8

I've got a SOQL query that takes a very long time to run that's part of a larger Apex class. Below is a quick explanation of our org setup, the purpose of the query, and the query itself. Any help to ...
0
votes
1answer
21 views

Is it possible to hide a read only section entirely in popup but display it in details?

We have a custom object and in that object's layout, there is a section called 'Billing Information'. All of the 8 fields in that section are read-only. Is it possible to hide the section entirely in ...
0
votes
1answer
49 views

Fields not appearing in lightning-record-view-form's payload if not included in page layout

I'm using a lightning-record-view-form in my component to display some record's fields, but I found out that if there is a field not included in the record page layout then it's not appearing in form'...
0
votes
0answers
8 views

Joined report grouping

I have a joined report of two different objects with activities. I have grouped them cross-block with accounts since they both are related to accounts. Is it possible to group within a block as well? ...
0
votes
2answers
35 views

how can i leave a field without value if the condiction is true?

for(Account acc : lstAc){ Account acount = new Account(); if (acc.Property_Managment_Company__c == 'Independent') { acount.ParentId = THIS FIELD SHOULD BE EMPTY. }...
0
votes
1answer
14 views

SOQL Query for Account - Junction - Account

I need to join Account (type = person account) --> Junction Object --> Account (type = business account) We have person accounts enabled on our org. I can easily write what I need in SQL, but ...
0
votes
1answer
24 views

what is wrong in this batch? [closed]

global class ALN_Integration_Batch implements Database.Batchable<sObject> { for (ALN_Integration__c recAln : lstCon) { AccountContactRelation acr = new ...
0
votes
1answer
20 views

Search Layouts not available for Custom Object

I can see the Search layout in my object after enabling Allow Search, but I can't see any layout where I can add my fields. Please see the attached screenshot. How can I add layout in the Search ...
1
vote
1answer
52 views

Community - Flow - Upload File to custom object fails with error 'Can't upload …'

This error shows up while trying to upload a file from within a community flow as a registered user and to a custom object created by the registered user himself: I'm using the standard lightning ...
0
votes
2answers
18 views

Arranging Custom Fields in Custom Settings

Is it possible to arrange custom fields in a custom settings object? I have an object in custom settings (MyCustomSettings__c) and I'm creating custom fields. I'd like these to be arranged in specific ...
0
votes
1answer
47 views

Process builder failing only in test class

I have 3 custom objects in my salesforce org that are involved in a process builder. The process builder is invoked by creation of or changes to Commodity__c records. The process builder is outlined ...
0
votes
2answers
67 views

Check if current record value present in other records

I have a requirement, where account name and account number if do not match with any other records, a custom field called alert_text__c will be updated with some text. It is as follows: List<...
1
vote
0answers
39 views

Can I use Apex and SOQL to import data from other objects into a new custom object?

This is my first time posting in stack exchange :) I have a Salesforce Admin Cert, but I have very little experience in the realm of writing code. So here goes. The goal of my apex code is to import ...
0
votes
1answer
62 views

Set History Tracking - fields not showing-up in related list

I have a custom object in which I have selected few <20 fields to track. But I don't see the custom object fields in the "Related List Properties" for the Activity History here is what I ...
0
votes
0answers
28 views

How to navigate to Related Tab using URL hack?

I am trying to create a list type button which will be added to a related list. Say I have a object name classroom and a object name student who has a lookup field for classroom. Now I wanted to auto ...
0
votes
1answer
26 views

Create custom labels for Custom object fields

Is it possible to create a custom label for a field in a custom object in order to enable translation across languages?
0
votes
1answer
26 views

Unable to query fields from Related List of Custom Object - getting query exception? [duplicate]

I have a Custom Object Rule__c, And I have added another Custom object Rule_Set__c as Related list in page layout for Rule__c and when I try to query like below: @AuraEnabled(cacheable=true) ...
0
votes
1answer
19 views

Case Merge: What happens with related records

We have custom objects that are related to the Case object. Until now we have been using custom case merge functionality, but it has its bugs, and are exploring moving over to the new SF case merge ...
2
votes
2answers
127 views

SFDX Best practices for managing custom objects?

We would like to use the SFDX Cli to version our custom objects in a Git repository. For now, because we're new to SFDX and our codebase will be small, we want a single sfdx app. We currently have ...
0
votes
1answer
27 views

Deny or allow the creation of a new record if in the parent object (records) - the field of the picklist type has the status “closed” or “active”

I have two objects: Training and Participant with a master-detail relationship (Training (master), Participant (detail)). When training is "canceled" (Status (Picklist) field selected ...
0
votes
1answer
19 views

When and If, Does the 'version' in ContentVersion Change?

I'm using the lightning-file-upload component to upload files (wow). My question is: is it safe to add a custom lookup relationship on the ContentVersion object? I guess I don't really understand the '...
0
votes
0answers
12 views

Connecting an Object Detail page with a __kav object

Im a bit of a Salesforce newbie. So I apologize on any terminology I am getting incorrect. On our salesforce environment we have a Knowledge Article custom object set up called Articles__kav. Is there ...
0
votes
1answer
28 views

Cannot write custom object via Soap API, getting INVALID_TYPE: sObject type is not supported

We have created a new custom object in our SF account named "Product License". We are trying to write new data to it via SF Soap API. However, when I try to call the update method, I get the ...
0
votes
1answer
26 views

Mismatch in custom object field count in rest api and salesforce UI

I have a java codebase for performing CRUD on salesforce as an rdbms db. I was looking at the response on my rest api and that on SF setup UI of a custom object that I create in object manager. I have ...
0
votes
1answer
31 views

Process builder not firing for managed package object

I have a process builder that I want to fire when a record changes. This record is an Answer object which is apart of the Youreka managed package. I have created a simple process builder that is ...
0
votes
0answers
14 views

Cannot Create Lookup Relationship on Custom Object

I'm trying to create a lookup relationship field however it's giving me an error saying it cannot create a Master-Detail relationship, which is not what I selected. Is there any reasion for this ...
0
votes
2answers
38 views

Not able to see the standard User lookup field for custom object in a tab, even as System Administrator profile

I have created a custom object with several fields in which one of the field is of type lookup to the reference to the User object. When I created a tab to add records to this object, I can only see ...
0
votes
1answer
34 views

How to reproduce a dynamic selection list from a custom object in lightning component

I have a @AuraEnabled method from which I pass a custom object list to a lighting component on which I want to iterate. The custom object will have a dynamic map from which I want to create a dynamic ...
4
votes
1answer
116 views

DX CLI - Custom Settings

I've not found conclusive answers around DX and deploying/retrieving custom settings in a sandbox or production org. I did see this: DX Orgs and Custom Settings But that post is over a year old at ...
0
votes
1answer
18 views

Need to set the custom object's list view records un-editable

I have a custom object list view .In that list view some column records should not be editable.is there any way to achieve that .Thanks..:)
0
votes
1answer
39 views

Need To add the Button in the custom object List View Layout

I tried to add the button in the custom object list view. I've added the button in the search layout too but still the button is not visible in my custom object.can anyone help me how to resolve this ...
0
votes
0answers
34 views

Unable to delete a contact from Salesforce

I have a user with custom profile and has access almost similar to System Admin. So when that user is trying to delete a contact, the following error is displayed on the screen Your attempt to delete ...
0
votes
0answers
17 views

Help with records not displaying on Force.com site

I've been building a Salesforce Site but am having trouble getting records to display on the page. I am using a specific Visualforce page as the homepage and can get the records to display fine when I ...
0
votes
0answers
33 views

custom process to track lead status duration

I have a requirement to display lead status duration which is similar to opportunity stage duration. As opportunity stage duration comes by default on hover where as lead doesnt have that ...
0
votes
1answer
23 views

Any drawbacks of querying for a standard object's fields by using a custom object to store the standard object's fields?

I have a bunch of fields on an object that I need to display based on the objects picklist field called category type. Unfortunately there are lot of fields and lot of category type and also I can't ...
17
votes
7answers
1k views

Custom Metadata vs. Custom Objects in Managed Package

I worked on Managed packages for nearly 10 years now and never missed Custom Metadata Types. Not before they came and not after they were announced. I didn't come across a single great and technical ...
0
votes
0answers
32 views

How to populate count/sum of certain fields (Number datatype) in a custom object?

Custom object "A" should have certain fields like "Number of Contacts with training date" and "Number of Contacts Last Trained". Currently "A" has look-up ...
0
votes
0answers
76 views

Error while creating a new record with Lookup field value from LWC in Apex class

While creating a custom object record using LWC with two values Name and Customer (look up to Account), encountering below error: System.DmlException: Insert failed. First exception on row 0; first ...
0
votes
1answer
15 views

I am trying to delete an object in my trailhead playground to re take a lesson and get the following errors

Is there way to delete an object like a delete cascade approach. thx Reason Section This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is ...
0
votes
1answer
21 views

List all existing Flows as options in a Custom Object field

I am working on a project and I want to create a Custom Object that has as a field a lookup for flows. I would like to know if there is some kind of way to retrieve all existing flows in one org and ...
0
votes
0answers
20 views

How to add style to standard tab of any salesforce object in lightning experience?

I want to change the standard object tab CSS. Is it possible? For example, when I go to Account object standard tab I see a list of records, now I want to change the font size or the color of the rows ...
0
votes
0answers
12 views

How to show information from a custom object linked to the product2 object via a Lookup field via a lightning component in a community

I am new to coding for Salesforce Communities. I created a custom object called Seller (Seller__c). Within the object i have some fields like Name, Company_address__c. On the Product2 object I created ...
0
votes
0answers
7 views

If a custom List View on a custom object is deleted, can I retrieve it back?

If Yes, How can I retrieve it? If No, then Why is it not possible to use the same API name of the deleted list view while creating a new view?
0
votes
1answer
32 views

How to insert new records into the custom object using Data Loader which has “Master-Detail” relationship with Account?

I have an Account object and a custom object "B" where Account is Master and "B" is Child. I already have Account data and I am looking for inserting records in "B" using ...
1
vote
1answer
31 views

Trigger to update child with new parent id

I have a requirement where the child record (Account_Transfer_Policy__c) should be updated with new Parent record (Account_Transfer__c) if the district_from__c of current parent do not match with ...
1
vote
3answers
125 views

How to declare static literal

I have a piece of code: if (testClone.testprocess__c !=null) { if (testIteration.Key__c == 'ut') { req.Status__c = 'testing'; ...
0
votes
0answers
21 views

Best practices for tracking a custom object's event stream

I have a custom object that I am developing a staged progression for. For the sake of easy discussion, let's just go ahead and call this Object object which has a picklist field Object Stage. I have ...
0
votes
2answers
26 views

How to autopopulate 2 lookups at record creation?

In Classic, when we created custom object records from related Contacts or Accounts, it would automatically fill in that Account (from Account record), or Account and Contact (from Contact record). ...
0
votes
1answer
27 views

Null Pointer Exception when trying to update a field from Contact

I have a requirement to update Contact on MC Subscriber activity by matching email ids on both MC Subscriber Activity and Contact. Now, if both object's email ID matches, the contact name will be ...
2
votes
0answers
44 views

Objects that don't support custom buttons (WebLinks)

I'm writing code that uses the metadata API to deploy a custom button (WebLink) to all CustomObjects in my Salesforce org. I just list out all objects wit a listMetadata and then do a retrieve and ...

1
2 3 4 5
27