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.
1,494
questions
1
vote
1
answer
322
views
How do I add active TDTM trigger handler records to an org with CumulusCI?
EDA and NPSP come with Table-Driven Trigger Management (TDTM), a trigger framework that uses records in a custom object to track which "trigger handler" Apex classes are active, rather than, ...
0
votes
1
answer
512
views
Page layout displaying fields that are not available in object
I using FSL for our project. On the Shift object page layout, I can see two extra fields: Territory Start Time (GMT) and Territory End Time (GMT). See the image below:
However, when I go to the Setup-...
16
votes
3
answers
19k
views
Finding if a custom field is editable using Apex code
I am reading the custom fields of a custom object Custom__c and then for each field I am inserting a new value:
Public Custom__c custom1 {get;set;}
Map<String, Schema.SObjectField> map = ...
1
vote
3
answers
5k
views
Unable to create Master-Detail relationship field
I am configuring a many-to-many relationship between custom object and Contact. For this purpose I created a junction object. Next, I have to create 2 Master-Detail relations. One for custom object, ...
1
vote
2
answers
861
views
How to Implement Entity inheritence in SalesForce
I would like to Implement Entity inheritence in SalesForce
Let us take the simple example of 3 java classes. Class TwoWheelerVehicle and FourWheelerVehicle are inherited from Vehicle Abstract class.
...
1
vote
1
answer
593
views
Is there a way to upload/insert a particular custom object record and its related file document from one single csv file using data loader?
Hi it would be great if anyone could help me out with this.
I have encountered a requirement in salesforce where I have to upload/insert a custom object record and its related file attachment into ...
1
vote
1
answer
463
views
Retrieving field dynamically from anonymous object
I have a scenario where I need to dynamically retrieve fields from a custom object, in which I don't know the type. For the following code, the query is passed in from somewhere else, I just wrote it ...
0
votes
1
answer
371
views
How would I go about creating parent/child records on a custom object? [closed]
I'm trying to import a list of grant awardees. I have a custom object called Grant, in which I will import all of the various grants (Grant A, Grant B, Grant C, etc.).
I could create a custom object ...
-3
votes
1
answer
2k
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 ...
1
vote
1
answer
2k
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
1
answer
2k
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
1
answer
385
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
2
answers
566
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
1
answer
232
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 ...
2
votes
0
answers
226
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-...
5
votes
4
answers
12k
views
Salesforce.com: How to find all tables and columns? (like SQL sys.tables, sys.columns)
I've inherted an SSIS package where the data source is salesforce.com, using the Pragmatic Works controls TFSalesForce Source / Destination.
Ten tables, some of these tables have 700+ columns, and my ...
1
vote
4
answers
2k
views
Is There a Way to Know if an Id Exists Without Querying?
Is there a way to know if an Object ID exists in a sandbox without querying for it?
Sometimes we store ID's in Metadata/Custom Settings and I'm curious if there is a way to know if the ID exists ...
0
votes
0
answers
1k
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
1
answer
283
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
1
answer
7k
views
Field Missing / Field Not Showing Process Builder Create a Record
I am trying to create a record via Process Builder, and set the value for a custom field of type text, but the custom field doesn't show up in the list of fields that I can set. How can I get this ...
0
votes
2
answers
2k
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 ...
-1
votes
1
answer
63
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
1
answer
1k
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 ...
0
votes
1
answer
167
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
1
answer
4k
views
How to query objects that may not exist?
In my application in my managed package... I want to give the option to query and view certain objects from another managed package if that package is installed as well.
My question is: how do I ...
0
votes
1
answer
554
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
1
answer
3k
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 ...
2
votes
1
answer
2k
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
1
answer
226
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
1
answer
756
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
1
answer
550
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
1
answer
226
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
-2
votes
3
answers
1k
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
2
answers
2k
views
Validation rule that flags if File is not present on custom object?
Requirement is to prevent saving of a record if a File (in this case, a quote) is not attached.
Is this accomplishable declaratively?
2
votes
1
answer
2k
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
1
answer
3k
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
1
answer
106
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
1
answer
350
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
0
answers
636
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
1
answer
2k
views
while creating master detail relationship fields(sharing rule)
what is diffidence between (Read Only: Allows users with at least Read access to the Master record to create, edit, or delete related Detail records. ) and (Read/Write: Allows users with at least Read/...
0
votes
0
answers
473
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
0
answers
41
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
1
answer
1k
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
1
answer
3k
views
How to Dynamically Embed Images from Files into Email Templates
I have a custom object with Files. The Files hold images. I am creating an email template and want the Files to embed in the email template. How do I even begin to go about that? I can't find anything ...
0
votes
2
answers
208
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
1
answer
899
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
1
answer
743
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
1
answer
2k
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
0
answers
162
views
My tab style selector isn't working
After I create a new object and have to select the style for the tab, every time I click a style it doesn't select it and I am unable to create the tab. The style's aren't in use so I am unsure as to ...
2
votes
1
answer
2k
views
Uploading to Custom Object then Matching Contact Object?
How do I import data (via csv file) into a custom object in SalesForce and then use identifying fields within the custom object (such as First Name, Last Name, location, etc) to "lookup" and ...