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
votes
0answers
29 views

External REST API call on object load? [closed]

I have an object. I need to be able to call my Mulesoft API in order to display a property for that object (it's stored outside of Salesforce, and so is exposed via this API). I wrote a small LWC ...
0
votes
0answers
23 views

Enhanced Lightning Grid error in dev sandbox but not prod

I haven't used enhanced lightning grid extensively in the past, but a previous admin has three components on a lightning page for contacts. They are working in production and when I edit that page in ...
-2
votes
1answer
42 views

Create Map from records of 2 List [closed]

I need to create map from 2 lists. One list ids and another list<custom_object__c> objects. But i dont get how to do it? id list is not id from custom_object__c. With on list it easy, but how to ...
0
votes
1answer
15 views

Get object record with unique field from list

I want to remove People__c record from list based on field value I have list of custom object People__c with field Responsible__c which is another object id. I am getting list of id and want to get ...
0
votes
1answer
27 views

Soql check if related record exist

I am using two sobjects Work__c with field name and WorkAssign__c with name,freeze__c and Work__c master-detail to Works sobject. Upd: So i want to get first Work__c record which doesnt related to ...
1
vote
1answer
34 views

How do I use the merge field in the formula field which is rolled up?

There are three objects: Room: Field - Price(Currency) Customer: Field - Total Amount(Rollup-(Amount)) Booking: Field- Amount (Formula-currency). -> Booking has master-detail relationship with ...
0
votes
2answers
34 views

For a CustomeObject where woud I put/find the Picklist translations?

I have a custome object and that has a field with a picklist. Now I need to translate the picklist not via the UI I just like to know what file I need to put in which folder.
0
votes
1answer
27 views

Salesforce Site - Access error - Authorization Required - unable to retrieve object - VF Page

I had a site setup which just hosts a single VF page. This page is an e-ticket which needs to be accessable publicly. It was working fine about a year ago until i revisted it last month and now I'm ...
0
votes
1answer
25 views

Push custom object and custom metadata type to scratch

So i retrieved custom metadata type and just custom object from my org via Ant Migration tool. After i createad a sfdx project. created scratch org and used push. It gives me error: 'Must specify a ...
2
votes
0answers
50 views

Setting one autonumber that will sync to all (related) objects [closed]

We have decided we want all Leads, Opportunities, Quotes and a few custom objects to inherit the same autonumber so that it is easy to see related objects just by the number. Leads should get an LD-...
0
votes
0answers
17 views

Post request with records to another org scheduled batch

I am making a post request to another org with custom object records. I have created boolean field to mark needed records and transsfer them though batch. That field changes in Trigger on create and ...
0
votes
0answers
10 views

User with correct profile permissions unable to view Related Custom Object list

I recently rolled out a new custom object to our org and have made sure profile settings are correct for read / view / edit access for the custom object itself, and the related objects that need to be ...
0
votes
0answers
28 views

How to display the value of two fields in my lookup field

I add a new lookup field in my Contract Object named (compte de facturation) ,this field is a lookup field that will bring all accounts with record type Billing . My question now ,how can i display in ...
0
votes
1answer
18 views

The field of checkbox type isn't available when I try to make a new object

The field of checkbox type isn't available when I try to make a new object.
0
votes
2answers
50 views

How to get the value of Custom field with SOQL

I am using SOQL to get team names from salesforce for each current project. It all returns, however the name is returned in ID format rather than the string name. This is confusing to me because when ...
0
votes
1answer
38 views

Using a String to access an object's parameter (APEX)

I have a list that contains an object's parameters that I'd like to access from the object. Below is an example of what I am trying to do //temp is the name of an object which contains all of the ...
-1
votes
1answer
21 views

Add a field from a different object on a VisualFoce page

I am working on the Account VF page that has a custom controller (AccountPageController). On this page I would like to add a field (customField__c) from a different CustomObject__C. What I have tried ...
0
votes
1answer
16 views

How to delete a custom metadata that is protected component via Apex or Metadata API

Anybody have experience doing this in Apex/Metadata API?
0
votes
0answers
30 views

I am getting the wrong Id in a Lookup Field by the record page, but the correct value by SOQL. What could be happening?

I recently updated a field called "Account Name" by Dataloader. It is a lookup field to Account. For specifics records, If I enter in the page view (like in the Image), I will get the Old ...
0
votes
1answer
37 views

Can I delete a custom field and a custom object manually in the production org?

I know that some options that are in the sandbox might not be in production. I'll have to delete a Custom Field and a Custom Object in production org. I need to know if it's possible to do manually ...
1
vote
1answer
237 views

Apex trigger to check field values from two custom objects

I have three custom objects: Book, Loan, and Reader. Loan is a junction object with lookup relationship with both Book and Reader. The diagram below shows their relationship: I want to create a ...
0
votes
0answers
27 views

Is it possible to create direct link in apex trigger or any other solution to ensure file attachment is required before save?

I want to create a required file section where it will pop out error if no file is attached before save? Since the file section as in image shown cannot be created inside my custom form, can i create ...
2
votes
1answer
85 views

How to change object during LWC wire - pulling multiple variables

I need to pull out data from wire method which returns 3 objects. List, and two Sets: Set based on delievered id parameter. I need list of contacts returned with changed properties to Value and Label ...
0
votes
0answers
26 views

Related List 'Files' not showing related Files

I have a custom object with several lookups to other objects. On the page layout I have added a related list 'Files'. When I click on 'add files' a dialog window opens. Here I miss the tab related ...
0
votes
0answers
22 views

I'm geting compilation error on below code

trigger ChildTrigger on Child__c(before insert,after insert,before update,after update,after delete) { decimal val = 0; if(Trigger.isAfter && Trigger.isInsert){ try {...
0
votes
0answers
16 views

Is there a method to strip HTML tags or perform other conversions so record values may be used for SEO meta tags in Experience Builder?

Record object fields we intend to use in Experience Builder for SEO meta and open graph values contain HTML tags that need to be stripped before use. {!Record._Title} contains the plain text title as ...
0
votes
1answer
28 views

SFDX export related records for data upload to a scratch org

I have a relationship between Account and MyCustomObject__c where Account.CustomField__c is a lookup to MyCustomObject__c. When I try to export the field on the Account and related records using sfdx, ...
1
vote
1answer
42 views

Custom "new object" screen from related list

Let's say I have two objects, Object A and Object B. I have a related list on Object A's page layout, which can be used to create B objects. The problem is, Object B has many "system" fields ...
0
votes
0answers
23 views

CMS Collection doesn't show custom object fields in Field Mappings

I created a custom object in Salesforce and am now attempting to display them in an Experience Cloud site using the CMS Collection component. Within the CMS Collection component settings I only see ...
0
votes
1answer
66 views

How can I add a new "Currency" type field to a custom object using apex?

When I try to add a new field to a custom object, I get an error. Apparently I missed one of the recommended fields or have some typo? I also tried to add a field of the "Text" type - ...
0
votes
1answer
102 views

Screen Flow fails to create record for custom object

I created a new custom object and added it to a screen flow. That flow is using the Create Records step to try an create a new custom object. The flow fails with the following error: This error ...
0
votes
1answer
21 views

How to expose object fields to make accessible on reports?

I have a custom object in Order Management. I wanted a field within the object to appear on my Order report in reports. I couldn’t find the field in my field options. Anyone got any ideas? Thanks
0
votes
0answers
42 views

Is it possible to use Record-Based Criteria in Experience Builder to display custom page variations & components based solely on record type name?

We have an object type called Listing. Within that type, a record type is selected per listing. Names of listing types include News, Event, Bio, and others. The goal is to have these listing record ...
-2
votes
3answers
61 views

How can I clear the database entries for a specific object? [duplicate]

I added a custom object and some fields. I also added several entries to the database for this object. Can I delete certain entries or all of them at once that relate to my object in some predefined ...
0
votes
0answers
23 views

How to Create Custom Lookup on Standard Record Create Page to avoid "Create Quick action" on lookup field

How to Create Custom Lookup on Standard Record Create Page to avoid "Create Quick action" on lookup field without revoking Create Permission on profile. I have a requirement where orders are ...
1
vote
1answer
46 views

Platform event not getting subscribed

I have created a platform event with Publish Immediately behavior. It is very basic one. Once it is published, I want to upsert a custom object records. I am publishing it through developer console ...
0
votes
1answer
17 views

How Bulk Creation of Custom Objects can be implemented?

How Bulk Creation of Custom Objects can be implemented? Assuming we need to replicate and debug a case where there are 3000 custom objects in the customer org. To replicate this situation, we could ...
0
votes
1answer
32 views

JB Custom Activity - Data Binding

unfortunately, as is often the case, the documentation is not always comprehensive. In the link about Data Binding (https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/how-...
0
votes
1answer
238 views

How to identify where an Email Template is being used if it's not under Email Alerts/Workflow Rules?

I'm trying to identify where a bunch of Email Templates are being used. I didn't find them under WF Rules/Email Alerts using the Template Name and I think some of them may be referenced through Apex ...
0
votes
0answers
21 views

Change Task Status default and closed value

In the Task can I create a new status value and add it as Default or Closed? When I do this the page just refreshes and nothing changes. New value with "Closed" marked: "Completed"...
0
votes
0answers
24 views

Display list of similar custom objects on the related lists tab

I have a custom object with a lookup property. I want to display other custom objects that have that same lookup property value. So the related list would be a list of similar custom objects, but they'...
0
votes
0answers
42 views

Get a count of values selected in a multi-select picklist on all contacts

I have a multi-select picklist (colors__c) in my contact object (with 20 records). Let us say the picklist has 4 values (red, blue, green, yellow). And I have a separate object (object__c), which ...
0
votes
0answers
32 views

How to create and add custom fields to existing custom object programmatically using apex? [duplicate]

I've looked around for this and there seem to be a couple of different ways on how to do this. https://developer.salesforce.com/forums/?id=9062I000000Qw4ZQAS Create custom fields with apex However, ...
0
votes
1answer
37 views

Inserting custom metadata [duplicate]

I'm using REST api towards Salesforce for inserting various kinds of data from our other systems. And for data that is regarded as configuration (in this case a list of freight forwarders) we have ...
0
votes
0answers
30 views

Cannot create new Object within Schema Builder, while doing Trailhead Tutorial

The Error Message: The value of the "le" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or ...
0
votes
2answers
37 views

How to build relationship standard / custom object

I have the following standard and custom objects and I'm little lost how to build the relationship, let me first describe you my data model and then what I'm looking for. my data model is: Standard ...
1
vote
1answer
74 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? ...
0
votes
1answer
28 views

Autopopulate a new field with Account Name when I add a contact through a Lookup field

I want a custom new field called "Organization" to auto-populate with "Account Name" related to the contact I add in my look-up field called "Class host": To paint the ...
0
votes
1answer
97 views

How are the Custom Objects Limits calculated?

We have an Unlimited Edition org and evaluating whether we can scale down to an Enterprise Edition. Comparing all the different limits, we came across the limit of Custom Objects. I have read the ...
0
votes
0answers
46 views

Export List of Field sets and their objects/Export list of fields per field set

I am finding a way to either exporting all the fields set with their objects details or list of fields in each field set. we have so many custom objects and it's hard to go look for a specific field ...

1
2 3 4 5
28