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,497
questions
-1
votes
0
answers
39
views
Help this error from Trailhead on Formulas and Validation -We can't find a reference to the account 'ShippingPostalCode' field in the validation rule
this is my input
AND(
NOT(ISBLANK( Id )),
NOT(ISBLANK( BillingPostalCode )),
NOT(ISBLANK( ShippingPostalCode )),
BillingPostalCode <> ShippingPostalCode
)
0
votes
0
answers
32
views
Custom Objects not Showing in Data Cloud
I can't see my custom object in my Data Cloud Demo Org, and someone has answered that we need to assign the permission set to the user named "Data Cloud salesforce Connector" to view the ...
0
votes
0
answers
31
views
Fields in activity object cant be filled out with form/form handler
fields created in the activity object do not show up in pardot/webtolead as a custom field for my form handler (only fields created under lead show up in pardot/webtolead). So the field in activity is ...
1
vote
0
answers
72
views
Apex Trigger not triggering upon Field Change in Approval Process
I have a flow which calls an approval process on a custom object. The approval process changes a picklist field to either confirmed or not fulfilled based on the response. I have an Apex trigger on ...
1
vote
1
answer
96
views
LWC: Custom Datatable with Multiple Objects Inline Editing
I've been trying to find an example to go off of, but not finding anything relevant. I've created a custom data-table in an LWC which pulls data from two separate objects and compiles them into a data-...
0
votes
0
answers
33
views
Salesforce ISV Managed Package, storing sObject Ids in 556 filterable text fields, possible concerns
I am working on an App and am coming up with the object model. I am using custom Log__c records, and, of course, I want to limit having excessive records if possible.
I want these logs to contain text ...
0
votes
1
answer
59
views
How do I adjust this code to access and display multiple object records in a singular Visualforce page table
I have a Visualforce page built by someone a long time ago, and I am trying to add a second object's records to a table that is already displaying correctly. They have the same fields, but different ...
0
votes
1
answer
119
views
Experience Cloud - Custom Object List View not showing records
I have a Custom Object, called Program.
In Salesforce, I have a set of list views created for the Program Object, including one that shows "All" programs (see below)
The sharing settings on ...
1
vote
0
answers
43
views
Embed a Button from a Custom Object in a Visualforce page
The Problem
I need to embed a button to trigger a screen flow on a Visualforce page. This is because I'm adding a tab for action buttons to a modal window from a managed package (TaskRay), and for ...
0
votes
1
answer
25
views
How to use "Created by Me" on Custom Object in a Custom Report?
I've searched here, Trailblazer, and Google and I can't get clarity on the solution.
We have a custom object (ObjectA) and a custom report, and on custom reports there is no default filter for "...
-1
votes
1
answer
47
views
Upload Metadata into Salesforce from GitHub
There is a GitHub repository with metadata such as tabs, custom objects with fields, apps, etc.
What is the best approach to upload that metadata from GitHub into the SF Sandbox org?
Thank you in ...
1
vote
1
answer
52
views
Can we add/create a duplicate field with and without namespace prefix in a same object
I have seen this type of scenario in one of the org,
where the same field is present with and without namespace-prefix
I want to know if is it possible, if possible can you please mention how to ...
-1
votes
1
answer
71
views
apex list of object
I have a list of objects:
List<Volume_Detail__c> listVolumesDetails = new List<Volume_Detail__c>([SELECT Id,Year__c,January_Volume__c, April_Volume__c,Volume__c FROM Volume_Detail__c ...
0
votes
0
answers
60
views
Create package version with namespace: Error to access custom field in FlexiPage
Hi I understand it don't need to add NAMESPACE in prefix when access <FIELD>, but I still have case like below.
My package have relationship between 3 objects: Contact - Affiliations - Account.
...
0
votes
0
answers
49
views
Custom Object Definition ID: bad value for restricted picklist field <CustomField>
I got this error when creating package version (1) Create_New_Order: Custom Object Definition ID: bad value for restricted picklist field: MOrder__c
<?xml version="1.0" encoding="UTF-...
0
votes
3
answers
277
views
How can I limit the creation of new records to 1 record per parent record?
Is there a solution to limit the creation of 1 record, per parent record?
If I disable the "new" button, is there a specific filter for this scenario?
If I should establish database control, ...
1
vote
0
answers
37
views
Creating a custom object (and tab) to host a library of content
I am trying to create a tab that will have links to pdfs hosted on salesforce. Essentially, a sort of dashboard with content that my users can easily view and open. It needs to be easy for my users to ...
0
votes
0
answers
61
views
Operating on summarized values in a matrixed report
Hello fellow Trailblazers
I'm in a bit of a pickle here
I have two tables referring to buys of gas and gas sales to customers. Each table has the same fields (date, price/liter and quantity in liters)
...
0
votes
1
answer
149
views
Error - Invalid field 'Shares' for CustomObject__c
Quick Dynamic apex question here. I have a list of generic SObjects and I'd like to dynamically get the child share records (I have queried for them previously):
for( SObject rec : records ){
for( ...
0
votes
1
answer
170
views
How to Update Salesforce Custom Object through AmpScript in Marketing Cloud
We have an Email that has a CTA Button and upon clicking the CTA Button the response should be captured in MC and a field in Salesforce Custom Object should get updated. My code is working fine in ...
0
votes
0
answers
56
views
JSON File to Salesforce Object, e.g. using For Each block
I tried to figure out how to get the following JSON object as Mulesoft Payload:
[
{
"FileType": "pdf",
"FileName": "FilenameOfPdf",
"FileContent": &...
-1
votes
1
answer
148
views
Data Integration Rules
Accessing "Settings" -> "Data Integration Rules" and I have access to the Data Integration Rules. It shows the edition for the type of Account objects. I want to be able to ...
0
votes
2
answers
121
views
Is there a way to commit custom object records via VS Code to a repo?
I could notice we can commit Custom object fields and layouts and such, but can we commit the custom object records which we created in org?
0
votes
1
answer
48
views
How to test two conditions in formula field IF
So I'm stuck on the logic here this was my original code and it worked but I was also trying to add a condition that if TODAY()-LLC_BI__Covenant2__c.LLC_BI__Next_Evaluation_Date__c) > 0 is true ...
0
votes
0
answers
161
views
Journey builder issue with Contact Data
There is an issue with my Journey in Marketing Cloud instance.
There are 2 actions: we send SMS messages via that journey and log the answers to these SMS in Salesforce in 24h.
The journey runs once ...
0
votes
0
answers
47
views
Capture few Case fields changes and send to third party
We want to track around 20-30 fields changes of case object. These fields changes can include the long text area field, multiselect picklist values, formula fields, and roll summary also. The reason I ...
0
votes
0
answers
53
views
Duplicate Custom Object Definition The custom object is already assigned to a tab
I am not able to create a Custom Tab for a Custom SObject in my packaging org.
Name of the SObject: namespace__Section__c
When I try to create a new Custom Tab through Setup I see this message:
...
0
votes
2
answers
815
views
How to query managed package objects
I'm trying to retrieve record values of a managed package custom object (call it abc__custom_object__c, where 'abc' is the package namespace, as an example). Trying to run the following SOQL query ...
0
votes
1
answer
720
views
Email button for Custom Object List View
Trying to create an action or button to show on a custom object list view to email selected records.
My goal is to send an email to selected records when I click on a Send an Email button. I get ...
0
votes
0
answers
42
views
Standard lookup values dialog box disappears on type ahead
I'm facing a weird issue. I have a standard record page on a custom object - Approval_Norms__c and have a lookup field related to another custom object - Approval_Master__c.
Lets say if I have a ...
1
vote
1
answer
390
views
Auto populate Lookup Fields related to multiple Objects
I have a custom object called Project, that has related object called Milestone. I then have an object called Log which is related to both a Project and a Milestone.
If you create the log from the ...
1
vote
1
answer
106
views
Why Force.com - Enterprise Edition (Light Applications) 10 object limit doesn't apply?
We are currently using Force.com - Enterprise Edition (Light Application), this is what it's called in the contract, but in Company overview it's called Force.com - App Subscription. From what I've ...
2
votes
6
answers
1k
views
Custom Metadata Type Records Mass Insert
Trying to mass upload custom metadata type records using cmdt commands. The following was working but now it stopped. I keep getting this error: 'The column Name is not found on the custom metadata'. ...
0
votes
1
answer
176
views
How do you create a custom object for a managed package
I'm creating a new managed package and I'm unsure of how to add a custom object to the package. In 1GP I would create a new object in the org as normal and then retrieve source from org to pull ...
-2
votes
1
answer
70
views
Prevents the deletion of contracts that are in active status
I want to give a validation on contract that when contract status is on active nobody can't delete the contract. But I can't do this. If anyone have solution give me the solution it helps me a lot.
0
votes
0
answers
21
views
Creating a record for a custom object and attaching a relevant pdf using dataloader
I have a custom object called 'Document Review', which contains a serious of questions that reviewers will need to answer when reviewing a single document. The documents themselves come in batches of ...
-1
votes
1
answer
74
views
Custom Object list view
I have a requirement to only show certain records in a list view to users based on two field values. I can filter the fields on the list view page but I have not been able to find if I can default to ...
-1
votes
1
answer
167
views
Are custom objects enabled on Salesforce Essential Edition
This is a quick question. Is it possible to create custom Object in Salesforce Essential Edition?
If so, is there a way to enable it?
3
votes
1
answer
438
views
User without create permission can create a custom object from Managed package using Custom Rest API
I have a Managed Package where I have Custom Object called Transaction and Apex Rest Resource for creating this object.
The Resource Code:
@RestResource(urlMapping='/v1/transaction/*')
global with ...
0
votes
0
answers
251
views
Salesforce formula showing negative number/time between two dates
I have a business requirement to show the total number of working hours (Mon-Friday 8.30am to 5pm) between the case creation date and current time (NOW() if the case is open) or closing time if the ...
0
votes
0
answers
25
views
Managed Package - Allow only application code, and few authorized users, to insert records of a custom object
We have a custom object in our core managed package (visibility is public). There are a bunch of other managed packages that work alongside the core managed package and have code to insert records of ...
0
votes
0
answers
32
views
Issue with Creating records thru flow with all access data in community portal
Current Config
Organization-wide setting -
Sharing Setting
Custom Object LeadStage -
External sharing - Public Read /Write
Community Portal Guest User Profile
Custom Object LeadStage - Create, Edit
...
0
votes
1
answer
47
views
display paragraph based on conditions
I have a VFP and I'd like to show some of my paragraph based on conditions.
Here is one example of my code:
<apex:outputText rendered="{!Offer__c.Offer_Type__c == 'Conditional' && ...
0
votes
0
answers
217
views
Cannot find the declaration of element 'custom-objects'
I have been adhering to the guidelines provided on the SFMC Connector repository, and as per one of the instructions, it is recommended to "import the metadata, custom objects, and job ...
-1
votes
1
answer
60
views
Formula field not working - Error: Incorrect parameter type for operator '-'. Expected Number, DateTime, received Date
I wrote the following formula to calculate number of hours (monday-friday 9am to 5pm) between two dates:
(
5 * (
FLOOR(( Closed__c - Opened__c ) / 7) +
MIN(1, MOD( Closed__c - Opened__c, 7 ))...
-1
votes
1
answer
427
views
I want to make a URL from record in a custom object in lightning email template
"Hello everyone,
I need help creating a URL in a Lightning email template in Salesforce. But what's special about my situation is that I need the email URL to take me to a path similar to this ...
0
votes
0
answers
175
views
Dynamic Custom Object Name auto number formatting
I have a requirement when creating a Custom Object to dynamically have the Name (when auto-number) prefix changed based on Record Type. It looks like it can't be modified in a trigger and I don't see ...
0
votes
0
answers
449
views
Custom object visible in Classic view, but not in Lightning (object is attached to the ''related'' tab of another object)
Got a case where the custom object was created ( in Lightning ). I am able to see the object by itself, but when I want to see it in the ''related tab'' of another object I cannot, even if all the ...
-1
votes
2
answers
165
views
Creating Custom Object__c
According to Salesforce documentation when creating a custom Object we need to add __c at the end of the string. Does it make any difference if when creating a custom Object we don't add the __c?
0
votes
0
answers
1k
views
Auto-Populating Fields before a new record is created
Is there a way to auto-populate the fields based on the lookup field while user is on the New record screen?
Example, Let's say I have custom object called Project. I have a lookup field "Master ...