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
97 views

How to structure objects so this subquery works

I have a custom object that looks like this MyObject__c -- Company__c (ref to Account) -- ParentCompany__c (ref to Account) -- CompanyType__c (picklist: Parent/Child) -- (a lot more data and ...
1
vote
1answer
236 views

How to parse large size csv file content into custom object in Salesforce?

I have requirements to implement the LWC file upload wizard which should handle very large size csv file( about 1 GB).. is it doable to parse such large size csv through APEX batch method? I tried ...
0
votes
0answers
21 views

Is there any way to access custom object without login from an external site?

I have an app that sends emails to the customer. There is a link in the email which when clicked opens a visualforce page and shows a list of custom objects. I use this tutorial to achieve this. ...
0
votes
0answers
45 views

Custom Setting vs. Custom Object vs. Custom Metadata Type for Multiple Environment Credentials [duplicate]

I am looking to confirm the best practice of storing client / secret credentials for multiple environments for multiple external webservices within salesforce. Below is the analysis I have done ...
2
votes
1answer
28 views

Query list of Objects from Installed Package

Is it possible to get the list of custom objects that are installed as part of an installed package with a SOQL query?
3
votes
1answer
250 views

Securely Storing Oauth Credentials for Apex Callouts

I am again trying to understand what is the best possible option to securely making the apex callouts from a trigger to external application which supports OAuth2. I am not building any application/...
0
votes
2answers
38 views

How to add a very big string as a default value of a custom field?

In my salesforce app, there is an aura:component which contains a Html Page Builder. I use Bee Plugin to do that. When the user designs the page and clicks the Save button, Bee plugin will generate ...
1
vote
1answer
24 views

SFDX Package2 Version Create - Custom Object fields are not visible to the user during package version creation

So this error: "SObject row was retrieved via SOQL without querying the requested field" means one of two things: 1. You forgot a field in your soql query you are now trying to use 2. You do not have ...
0
votes
1answer
30 views

How can I condense multiple lookups from one Object, to one related list?

Use Case: I have a custom object that I've created, that can look up to the Salesforce standard object Product, up to 12 times. Because of the field structure of doing that, it has created 12 ...
0
votes
0answers
22 views

Data Model Architecture - More Fields or New Object

I am reassessing an existing data model in use in my org and looking to ensure it's following best practices. The custom object is called a ticket. If the ticket record meets certain criteria, it is ...
2
votes
1answer
26 views

Custom field still shown as “not existing” even though i have retrieved all custom object metadata

I have retrieved all custom object metadata for Account, including the referenced custom field, but vscode is still showing it as not existing.
-1
votes
1answer
44 views

Records being randomly deleted

I was informed of some weird behavior of some custom records missing from our SF instance and after a little research I found that all of these missing records had been moved into the recycling bin ...
0
votes
1answer
30 views

Mirror a Longtext Field using a Trigger

I am pretty new to salesforce development and was assigned a task to mirror a long text field from a parent object to a child object. I tried using a formula but I guess you can't use a long text ...
0
votes
1answer
20 views

How to add value to a Picklist field in a custom object?

I want to insert a custom object and one of the field in the custom object is a Picklist (Multi-Select). I used the following code: PResources__c pResource = new PResources__c(); pResource.Name = ...
0
votes
1answer
101 views

How to delete child records in Lookup relation on deletion of parent record?

My child object already have 2 Master detail fields on it so I am unable to create 3rd one. I want functionality like Master detail. If user deletes any of parent record on parent object all the child ...
0
votes
1answer
19 views

Not able to see tab in app navigation menu despite having permission

I am facing an issue regarding a custom tab which does not appear in an app even though it seems like there would be no technical reason for that. I have checked the following aspects in the org: I ...
0
votes
1answer
22 views

How to track the source of Custom Object updates?

I'm facing many parasite update subscription API events for Key_Feature__c object. Some of them are happening on the records that describe the activities finished in deep past. These records do not ...
0
votes
1answer
27 views

Salesforce record access: Can access provided on public group override profile permissions

We have a user X, whose profile level access on an object is CRU. Now, this user is also part of a public group which provide read only access on the same object. So, will the access provided by ...
0
votes
0answers
30 views

Global search does not work unless the user visits list view of the particular custom object first

I have a fully prepared org with custom objects, layouts in it. For team work purpose I have created several users with system administrator profile and none of the users are able to global search ...
5
votes
0answers
72 views

2nd gen package version with ancestor is failing with custom object with “protected” visibility

I'm having issues when creating a package version with ancestor that contains a custom object with visibility set to "Protected". Everytime I try I get this error: xxx: Cannot modify managed object: ...
0
votes
1answer
17 views

Page Layout and PickList for Custom Object

Let's say I have a custom object with 2 picklist fields. I've added this fields into page layout but i cannot see that ones. Wham am I doing wrong?
0
votes
1answer
60 views

How to retrieve Field Level Security of a field in a certain profile using manifest package.xml with ampersand & and ~ Profile Name

How to retrieve Field Level Security of a custom field in a certain profile in Opportunity object using manifest package.xml? Searched the net and come up with the manifest xml to retrieve the Field ...
1
vote
1answer
32 views

Visualforce page for custom object doesn't work in installed managed package

I have a VF page that works fine in a Dev org, but when installed in another org it breaks with: SObject row was retrieved via SOQL without querying the requested field: Namespace__Hub__c....
0
votes
0answers
213 views

Missing “New” button on a custom related list

I have a new custom object and it is related to Contact. As an admin, the list of records and New button show. But for a different user with a different profile and role the New button does not show....
0
votes
1answer
41 views

How to list all the custom field names in all objects

I have the requirement of listing out the custom objects and fields that were created, I know I can use the following query to list fields in a specific object, SELECT DataType,QualifiedApiName,Label ...
0
votes
2answers
320 views

How to List all Custom Objects from Salesforce API?

I'm currently working to use the Salesforce REST API to get a list of all Salesforce Custom SObjects without including System or Standard Objects (like how the /services/data/vXX.X/sobjects/ does). ...
0
votes
1answer
175 views

Custom Objects in Salesforce but Not Visible in Object Manager or Scheme Builder

I have some custom survey objects that I have uploaded via the data import wizard. But the objects are not available in the scheme builder or object manager. They are in the org because I can populate ...
2
votes
1answer
24 views

Revert Public Visibility to Protected Prior to Packaging

I have a regular custom object that was marked as Protected in my 1GP packaging org. It has been included in the last few releases of the package as Protected. In my DX Scratch Org, I had to ...
0
votes
1answer
42 views

Update related list view

I have a custom object with a master-detail relationship to some standard objects through a junction object. On the related list view on the standard object, I would like to: Remove the checkboxes on ...
0
votes
0answers
48 views

How to get IDs of checked records from list view

I need to get Ids of checked records of Custom object's list view page. Custom button using visualforce page can get it, but it is not good solution. The best is I can do it from utility bar ...
0
votes
0answers
37 views

Salesforce Custom Object and field data model

I am trying to create a custom object related to a field related to the accounts objects and as well as a picklist and checkbox field. What I would like is that for every single record on the object I ...
0
votes
1answer
70 views

How to enter date and lookup field into an object

I rewrote the code, through anonymous works. I only have a problem with the date and field Log__c (lookup). public class ExampleExchange { @AuraEnabled public static List<Exchange_Rate__c> ...
0
votes
0answers
17 views

Usage of custom fields of a custom object in visual force page? [duplicate]

How to access custom object fields from visualforce pages? My custom object is Project__C Custom fields are : Client__C, Project name, Start date, End date, Notes Should I use custom controller? ...
0
votes
0answers
70 views

Mytrailhead data model

My company has a business scenario to record multiple workshops outcome against each account. Instead of building custom object, we are thinking leveraging Salesforce mytrailhead to achieve this. But ...
8
votes
1answer
348 views

Maximum number of fields in a custom object, considering managed packages?

I am under the impression that a custom SObject can have no more than 500 (or 800) fields in total across all namespaces. From the Salesforce Features and Edition Allocations documentation there is ...
1
vote
1answer
49 views

Add Custom Fields after a Managed Package is Released

Based on the following I understand that new custom fields of an existing custom object aren't available to users after Pushing a Managed Packaged Assigning Access to New Components and Fields From ...
0
votes
1answer
32 views

“Protected” Records and profiles permissions

In our org, we have a custom object, which all records meeting specific criteria need to be protected (criteria is StartDate older than 3 months) By 'protected records' we mean: for some specific ...
2
votes
0answers
58 views

how to deduplicate millions of records of custom objects [closed]

In an org of a client we have about 170 million records of mostly custom objects, with some single custom objects having as much as 70 million records on their own. The problem is that for about 10 ...
0
votes
0answers
41 views

Making an object available for Report

There is a case here when the object was created, the allow reports option was left unchecked, and I need that to be checked again so that I can allow reports checkbox to be enabled. However, when I ...
-2
votes
1answer
113 views

Custom Object or Big Object for dataset of 3 million records [closed]

I am sort of confused in what approach to take in storing large amounts of data in Salesforce. I have some data that is between 2 - 3 million records and I want to access that data through apex code ...
0
votes
1answer
67 views

Webhook / View Object Data from a Website (Wordpress)

Is there a way to access records from a custom object and then put those records on a website without using API? Specifically, feed-like-RSS that could generate JSON/XML? The CRM I'm working in does ...
0
votes
1answer
25 views

Custom Object ID into a field?

I'm new to using Salesforce, but I need the ID of my custom object e.g. a054J0000057Ps8QAE to show in a Custom Field, is this possible? I'm guessing there's maybe a formal I need to add in the ...
1
vote
1answer
37 views

Quick Action doesnt show up in the Layout

I created a quick action on Oppurtunity record and it doent show up in the Layout. The quick action is to create a custom object And I added it to the Layout But on the Opportunity Record I dont ...
1
vote
1answer
98 views

APEX trigger lookup field value in onther custom object

This is what I have: trigger ComplaintInitialize on Complaints__c (before insert, before update) { for(Complaints__c Complaint : Trigger.new) { if(Complaint.RecordType_Name__c == '...
1
vote
1answer
112 views

Pass in Form Values to Salesforce Community Create Record Page

I'm trying to prepopulate some values on a Salesforce Community create record page based on a URL with URL params that is clicked. Use Case: User clicks: https://mySandbox-request.cs24.force.com/...
1
vote
2answers
99 views

How can we create Custom objects and fields without using Object Manager(from the UI)?

I am already aware of the Traditional method of creating Custom Objects and fields using object manager in Salesforce but just curious if there is another way to create them that will increase a ...
0
votes
1answer
28 views

I need to add a variable number of business days to a date

I have a field in the products called RPG_LeadTime and this is the product lead time before we are expecting to dispatch the product. So if the date is 23.12.2019 and the lead time it two days then ...
1
vote
3answers
636 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
349 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
270 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
2
3 4 5
27