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
3answers
639 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 ...
1
vote
3answers
365 views

What is causing the “Invalid Character in Identifier” error when compiling my Apex code

I've got the Following code: Global class EmailToLeadTST implements Messaging.InboundEmailHandler { global Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, ...
2
votes
1answer
282 views

Create List View Action to call apex method

I have a set of list views for my Custom_Object__c and these list views are visible in the community. I need to create a custom action for the Custom_Object__c list view. Then user should be able to ...
1
vote
1answer
67 views

How to delete the shared object record

I have written a trigger which will insert, update and delete the project when a new project team is created and removes access when the it is deleted . I have successfully written the code for insert ...
0
votes
1answer
530 views

best way to make a checklist in salesforce?

hello i'm trying to make a new hire checklist within salesforce to track completion. currently we use an excel spreadsheet that has the task, whether its completed or not, the owner of the task and ...
0
votes
1answer
73 views

Accessing data of Sandbox from Scratch Org

I want to be able to query, insert and update records of a Sandbox from a Scratch org, only during the development phase. I know that scratch orgs are meant to be populated with just a little amount ...
0
votes
0answers
53 views

Visualforce Email template recipient type with multiple customized objects. Create customized object

Requirement is to use email template with visual force components, and send an email for each environment the contact is associated to. For example, contactA is associated with env1, env2, and env3. I ...
0
votes
1answer
512 views

LWC: Form Data not updating to Apex controller

Ive developed a component that lists Contacts related to an Account. Each Contact listed has an action button that opens a modal window to edit fields on the Contact. If I change the value in one of ...
0
votes
2answers
318 views

Type requires name=value pair construction: Donation__c

I have a custom object @AuraEnabled public static List<Donation__c> onLoad(string recordId){ List<Donation__c> donList = new List<Donation__c>(); Contact con = [...
1
vote
1answer
26 views

Hiding certain records and their related records

I am trying to keep records separate from certain users when it is categorized in a specific group. For instance, when an account is created if it's in category A I want only group A to have access to ...
1
vote
1answer
647 views

Lightning Record Form not working for custom objects in communities

There is a custome object called CutomObject in my sandbox system. I have created a salesforce community to display these objects. I have created a sharing set on this object type as follows and ...
0
votes
1answer
302 views

Disable delete option in Notes and attachment

Requirement - I need to remove or disable a delete button from Notes and attachment on VF page. Even I tried to write a trigger but it is working on request which got generated not on the attachment....
0
votes
1answer
32 views

Community Advanced Audience configuration

Good afternoon. I am trying to set up an audience by assigning a record type. However, the object I want does not appear in the list: Is this a setup that should be done in Salesforce? Remembering ...
0
votes
1answer
19 views

External Object Sync Without Wiping Cusomizations?

I have a table in a PostgreSQL database that I am exposing as an External ODATA Object to bring into my Salesforce Org. There are about 25 columns on this table. Within my Org, in the external object ...
0
votes
1answer
32 views

Declare custom object with relationships

Beginner disclaimer Apologies if this seems stupid but I've been a bit stumped by this. I have looked through documentation but cannot find the answer I need to here I am. I have a custom object ...
0
votes
1answer
98 views

Different Formula for Different Record Types

I have a custom object that has all the same fields except the value of one depends on the record type. I would imagine I could define a lengthy formula with IF but is there a cleaner way? Ideally, I ...
2
votes
1answer
163 views

How does Salesforce audit the 10 custom objects limit for community licenses?

To be clear, I do understand that this is a CONTRACTUAL limitation and not a TECHNICAL limitation, but in the event that Salesforce does want to take a peek at our org, we want to make sure we're not ...
0
votes
0answers
17 views

Can't report on new field on custom object

I recently created a new object type and added a formula field for the Case Safe ID. But when I try to report on that object, the new field doesn't show up in the options for report columns. Why is ...
1
vote
1answer
39 views

Master-Detail Relationship causing problems with creating Related Records

We have a custom object to log our Activities with Customers. Until very recently, it had a lookup to that account. To better serve our reporting needs, I changed that lookup to a master-detail. Now, ...
0
votes
1answer
133 views

Remove the “__c” from custom field API name

I've created a custom object in Salesforce with a number of custom fields. Is there any way to remove the "__c" from the API names of those custom fields?
1
vote
2answers
47 views

Get SOQL result from multiple tables and use in APEX

I have two custom objects ObjA and ObjB. ObjA.b is a LookUp field for ObjB. I have written following SOQL. SELECT Id, b.Name FROM ObjA This query gives correct results. Then I need to use these data ...
0
votes
1answer
196 views

Store and Revert Prior Field Values on Object After Approval Process Rejection

I am building a process where partner users make multiple field updates to an object Fatburger_Menu__c (all the fields are currency), which will activate an approval process for one of our team ...
0
votes
1answer
189 views

What query is causing error: “List has no rows for assignment to SObject”

The error occurs when loading the page for a custom object. My understanding is that this error means a query did not return any results, but I don't know how to begin identifying what query that is....
0
votes
1answer
193 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
1answer
588 views

Access custom object inside Visual force page set with standard controller to Contact

I am trying to add custom visualforce page in standard contact page layout. For that I have created one VF page that has standardController set to Contact in order view it in contact's page layout. &...
0
votes
1answer
44 views

How to delete child lookups from the parent after reparenting

Im a beginner and still learning to write apex.. Im creating a new object from the old object. I want to reparent the Lookup to the new object and delete it from the old object. //map of ids of new ...
0
votes
1answer
40 views

Related List is not showing up…?

I'm having an issue that a related list is not showing up on the detail page of the Asset object. When I try with the 'System Administrator' profile it shows up, but when I try with other profiles, it ...
0
votes
1answer
95 views

Importing Custom Object to Commerce Cloud

I've been following the instructions on the SFMC Connector repository, and one of those instructions says to "Import the metadata, custom objects, and jobs definitions into your B2C Commerce ...
0
votes
2answers
208 views

how to make copy of custom object to from sandbox to other sandbox

I'm trying to make a copy of custom object from a sandbox to other sandbox, like by using "Change Sets". However, that was not successfull and I cannot find good ways of doing that. How can I move ...
0
votes
1answer
294 views

QuickActionApi - Unable to select SendEmail on custom object page

I am trying to initiate the SendEmail quick action from a button on my lightning record page. This seems to work for Account, but does not work for custom objects. Code is as follows Component <...
0
votes
1answer
63 views

Update owner Change

I have a custom field as previous owner in account lookup to user object Whenever I modify an account the previous owner field should get updated as account owner. I tried it using workflow and ...
-1
votes
1answer
46 views

Queried column disappears from results

I just added a new field to a custom Salesforce Object. I now want to query that field from the database. If I query it from the developer console, everything is fine. However... If I query it from ...
1
vote
1answer
25 views

Creating custom Object using external source

So basically I have been trying to work out a quicker way of creating a new object thats going to consist of around 400 fields I know I can use fieldcreator.herokuapp but this isnt that much quicker. ...
0
votes
1answer
59 views

Save vf page as attachment in custom object

I have a dynamic virtual page that I create, and I would like to know if it was possible to save it as html (not pdf as I need to do some modification later on) inside my related files for a custom ...
1
vote
1answer
518 views

Unable to view the Custom Object in App Builder

I have custom object named Order Line Item I'm able to create Tabs using the custom object. But if I go to Lightning App Builder and try to add a list view for my custom object i'm not able to see ...
0
votes
1answer
124 views

Importing custom objects

I have a problem importing and creating more than one custom object at a time using the data wizard. I have created a csv-file with headers that map correctly and imports fine when there is only one ...
2
votes
2answers
487 views

CreateSalesforceObject AMPscript

I am trying to create a new record on a salesforce custom object for storing survey responses. I am sending the Name (full name) to the cloud page via AMPscript in an email link. Here is the ...
1
vote
2answers
47 views

Managed package not letting me add a new custom field to already packaged object

I have a new field on an object that has already been packaged in my package org. This field is referenced in Apex as well. When I go to my package and look at the components, this field is not ...
0
votes
3answers
417 views

How can I get the custom object Tooling API Id?

I want to get the custom object id using the custom object's API name. Please tell me the way how to get id. req.setEndpoint(domainUrl+'/services/data/v46.0/tooling/query?q='+ ...
0
votes
3answers
454 views

How to get custom object id dynamically using apex

How to get custom object id dynamically. I have created one button on UI called Create custom field and on click of that button, I want to redirect it to that custom object field creation page(object ...
1
vote
1answer
329 views

Updating Custom Object using Visualforce

I am trying to update fields on a custom object using visualforce. I have embedded a visualforce page on Lead Layout that displays records of my custom object linked to the lead. I want to update ...
1
vote
1answer
193 views

How to assign a queue based on Custom Object

I want to create a queue on the basis of a custom object, I want to assign custom object on the queue but my custom object is not showing on the supported list. Why is this?
0
votes
1answer
24 views

Don't leave Parent Page after adding a new Child object

I have an object: Parent and an object: Child on my SalesForce, the issue is that when I am on my parent object and I click on 'create new child' then I create this child, after confirming that child ...
2
votes
0answers
92 views

SFDX - force:source:convert command not including label, sharingmodel, name in CustomObject

I only want to deploy a new CustomField to my Sandbox org. My initial package.xml is using the CustomField metadata type to pull my new field from my development organization. However, when I ...
0
votes
1answer
167 views

Insufficient Privileges while adding field to a custom object

My user is with System Administrator profile in the Org I am trying to add a field to a custom object but getting Insufficient Privileges error. Like this: System Administrator has Administrative ...
2
votes
0answers
528 views

Custom object doesn't appear in “Related Entity Type” dropdown for Lightning Email Template

When I go to create a Lightning Email Template, a custom object I recently created doesn't appear alongside other custom objects in the list of objects available for merge field filtering. What do I ...
1
vote
1answer
618 views

Not able to give CRUD permissions to custom object on Customer Community Plus Login User Standard Profile

Profile Screnshot I need give access to Customer Community Plus Login User to one of my custom objects,this user should be able to crete and delete the records of the custom objects. However, when I ...
0
votes
0answers
53 views

Can I create a separate custom Person Object in Salesforce/SFMC?

Leads and Contacts are special objects. They are treated differently by the system. I need a custom one. Can I use a separate RecordType? Yes, this is perfect except that it doesn't help with ...
0
votes
1answer
26 views

Stop 3rd Party Integration from Changing Record Ownership

We are using a 3rd party app to have incoming emails send to SF under our custom Messages Object. However, the app also changes the ownership of the record to the themselves when a user clicks to view ...
1
vote
1answer
73 views

Lookup required change in managed package

Lookup options include [✓] Required (Always require a value in this field in order to save a record) What to do if the lookup record is deleted? ( ) Clear the value of this field. You ...

1 2
3
4 5
27