Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
14 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?
0
votes
1answer
24 views

Allow access to a user-type custom object

I have a custom object called 'Advisor' and for every single record, I would like to allow authentication access for that one Advisor to log in and view their record and make changes. For example, ...
0
votes
3answers
24 views

Get Custom Relationship Object's Name instead of Id into a List

I have a custom relationship to campaign object from opportunity object. When I am doing this: List<sObject> opportunities = [SELECT Name, Campaign__r.Name FROM Opportunity]; for (Integer i = ...
0
votes
1answer
33 views

Field That Records Former Profile?

I'm trying to create a Field on the User Object that will record the users former profile. We're creating a Process Builder that will change the users Profile if the user is set to inactive but we ...
2
votes
1answer
29 views

Encrypted Fields Unable to Update in Apex Class - Able to Update in Apex Execute Anonymous

I am using a custom object to store Oauth credentials. I am able to update this object in Apex Execute Anonymous. I am unable to update this object in an apex class. Salesforce Connect ...
2
votes
1answer
68 views

How to populate a lookup field in custom object using Apex

I am building an app which reads information from an external API and then populates data in my App for further processing. I have two kinds of custom objects for this. First kind (e.g., BasicProfile) ...
-1
votes
0answers
14 views

Not able to access Custom object passing in SOSL in REST API call

Hope you are doing well. I am facing an issue while making API call to one saleforce org from other salesforce org. I have created Auth. Provider and Named Credentials in one org and Connected app in ...
0
votes
2answers
26 views

API to Create and Delete a Relationship Object

In our sandbox, we have created Student, Role, and StudentRoleRelationship objects. Currently, we have a Drupal project that has its own Student and Role objects, therefore in Student and Role we have ...
1
vote
1answer
40 views

How to use the isUpdate() trigger handler on lookup relationship?

I have a custom object Hire_Form__c that has a contact lookup. It has the following fields: First Name Last name Email Phone Status (In Progress , Completed , Rejected) Candidate (Contact Lookup) ...
1
vote
2answers
37 views

Custom Object to Hold Log Information

I need some help at least with the Logic to be able to do this. Basically i need to create a Record on a custom Object everytime an Apex Class is runned on success or error, that Record should show ...
0
votes
1answer
20 views

Remove standard objects

I want to remove some objects from my org eg: Product2, Macro and others. The problem is because I cannot find a way to do it, I have deleted custom objects but this ones are different. Could some ...
0
votes
2answers
32 views

Trigger process if current date is less than 2 months from field date

I've recently began setting up some processes with Process Builder to automate a lot of previously manual tasks (like creating a reminder to contact customers when an opportunity is won, etc.). I also ...
1
vote
1answer
30 views

How to generate customObject cls files in VS Code using SalesforceDX

In my VS Code project there is a folder: tools > sobjects > customObjects Which contains .cls file representations of the custom objects. I've recently run command: SFDX: Retrieve Source ...
0
votes
2answers
35 views

Trigger not assigning a value as expected

I have a Student object that has a look up relationship to a Coach object. When a student is created, I need to assign a coach to that student, based on which coach has the least amount of students. ...
2
votes
1answer
29 views

Count the number A-Objects that have B-Object as a a foreign key

I have two custom objects, Students and Coaches, where Students have a Coach__c lookup field. I am attempting to write a trigger that when a new Student is created, I need to assign that student a ...
1
vote
1answer
21 views

Populate a picklist based on values in a custom object

Not sure if I am going about this right but I am trying to create a picklist whose values are all values for another custom object. Here is my setup. I have a custom object called Courses which ...
0
votes
1answer
40 views

Rollup Opportunity amounts on a Custom object using user account as middle man

I've been on this journey to get a more complex report done, and after trying out various methods (joined reports, custom report types, various rollup apps) I still haven't gotten anything to work. ...
0
votes
1answer
13 views

opportunity Product not showing up in relationship

I have created a custom object called funding and I am trying to related it you to Opportunity Product object using the data type lookup relationship however when I review the list Opportunity Product ...
0
votes
1answer
27 views

Custom object with 3 millions records

I have one use case where i need to store 3+ millions of data in one of the custom object(280+ fields) .What could be the impact in terms of This records are Lookup to account (1-1) ,is there any ...
0
votes
1answer
150 views

How to pre-populate fields when creating a new record? [duplicate]

I have a custom parent object A and a child object B. When I create a new record from the child object B via the related list, only the parent lookup field is defaulted and filled in. When I hit ...
1
vote
0answers
20 views

How to create report where a sales representatives data is taken from custom objects

I would like to create a report, where I can monitor my sales representatives targets and actuals. We have some custom objects defined where we put the Target for each month. So for a year, each ...
-1
votes
0answers
33 views

Inserting Custom Field with Field Dependencies in Apex

I am having a hard time inserting a new record into a the Case Object. This Case Object has a custom field (picklist) called "Category__c", which I add through Apex like so: Case cs = new Case(); cs....
0
votes
1answer
22 views

Email-to-Case Premium with custom object

I'm having a custom object called "Case_Comments__c" which performs the same functionality as standard case comments does. I'm planning to install Email-to-Case Premium this month. I know E2CP will ...
0
votes
1answer
39 views

How to collect summary data into custom object with formulas

We have a custom object which would be used for reporting. This custom object has a Sales Rep lookup field attached, so each object will have a link to a Sales Rep. We would like to collect the SUM ...
0
votes
1answer
25 views

How to create report that is built on multiple objects

So I've been given the job to create a report, that compares a target sales amount to actual sales amounts, and lastly to a funnel (which is taken from the SUM of all opportunities Estimated Net ...
0
votes
1answer
34 views

How show selected RecordType in custom Visualforce Page?

I had to override the New button to use a clone of the record page of a Custom Object, so far so good, now I need to be able to catch the record type selected like in the original page. Original: ...
0
votes
1answer
32 views

Adding custom components to dynamically created table row tr

I have a custom component which by the means of a button add a row to my table. Now my needs are to add a component to each entry (tr) of the table. This is my controller: var tBody = ...
-1
votes
0answers
16 views

Redirect a VF page after a CSV is created

i need some help as I am trying to redirect a VF page to a List view on a custom Object, first i will show what I've done on the VF Page: <apex:page controller="SageCsvFileController" action="{!...
1
vote
1answer
19 views

How to redirect to a custom VFP after a Custom Object record is created (Standard way of insert)?

well, pretty much as the title says. I need the user to be redirected to a Custom VFP when a new record of a Custom Object is created, additional to this I need to be able to send the Id to that ...
0
votes
0answers
18 views

Custom components in Page Layout

I created a simple custom component, which I need to add on a Page Layout. Looking around on internet I found out that I should: Add the component to a visual force page Resize that visual force ...
2
votes
1answer
19 views

Custom Object Access via Public Groups

We have around 100 users who belong to 3 different profiles. We know it is possible to do it via permissions sets. But is it possible to provide permission via public groups or roles...what is best ...
-1
votes
2answers
66 views

Is it possible to prepopulate field using a before insert trigger?

trigger MyTrigger on Benifit__c (before insert) { Set<Id> lookupIds = new Set<Id>(); for (Benifit__c b : Trigger.new) { if (b.company__c != null) { lookupIds.add(...
0
votes
1answer
22 views

adding up custom field with triggar [duplicate]

trigger PaymentTrigger on Money_Received__c (after insert, after update, after delete) { Money_Received__c moneyReceived = [SELECT Reservation__c FROM Money_Received__c]; Reservation__c ...
3
votes
0answers
36 views

“Reached maximum number of custom objects” while creating BigObject

I am trying to create a Big Object through workbench but I keep hitting the following error message: reached maximum number of custom objects. I have only used 6% of my custom object allocation ...
0
votes
2answers
25 views

custom field formula

I have two custom objects. Reservation__c and MoneyReceived__c and they are lookup relationship. I want Reservation__c.totalReceived__c = sum of all MoneyReceived__c.amountReceived__c. There are one ...
1
vote
1answer
64 views

Custom field datetype with month and year only

I'm trying to credit a custom field which only need month and year (like credit card exp date) I choose datetype date, when creating the field, but it also needs a date as well. How can I create a ...
0
votes
1answer
41 views

Streaming API to transfer FILES to online cloud storage

Using the SF documentation I have created a custom object with the FILES related list. Using workbench I can successfully see that it receives a message when a new record on that new object is ...
0
votes
1answer
26 views

Custom Report Types missing related Object

Background I have 3 custom objects: Invoice__c Invoice_Line__c Appointment__c Their relationships are: Invoice__c is a parent (master-detail) to Invoice_Line__c Invoice_Line__c has a lookup to ...
0
votes
1answer
282 views

A Component Error Has Occurred!

I am getting a error on a custom page that I have made. The error is: Developer error in file apex://Service_Request__c at line number -1. So when a user is System admin there are no errors but ...
0
votes
1answer
18 views

Open Activities /Activity History don't appear under Custom Object page layout's Related Lists

I'm trying to add an Activities section to this custom object, but I can't figure out how to get the Related List section to show Open Activities and Activity History so I can progress.
-1
votes
1answer
29 views

Update Checkbox in Obj A, if its relevant record(from Lookup) got Selected in Obj B

I have Two Custom Objects , Obj A and Obj B, My requirement is i have to update checkbox true in Obj A once its relevant record(Lookup) got selected in Obj B. Please suggest the solution and let me ...
0
votes
1answer
18 views

How to post form data to custom object?

My custom object is student__c. The form I've built looks the following: <apex:page standardController="Student__c"> <apex:form> <apex:pageBlock title="Vnos novega študenta"> ...
0
votes
1answer
21 views

How to show custom object fields in standard visual force page

i am trying to add one button in lead detail page layout.on clicking on this button i want show a visual force page showing custom object details.my custom object is tractor__c.so far i am trying this ...
0
votes
0answers
24 views

how to show a custom object field values in a standard object layout

i have two objects Leads and tractor__c. i want to add a visualforce page in lead layout showing tractor details. so far i am trying following code `<apex:page docType="html-5.0" ...
0
votes
1answer
56 views

create a record on cross object on button click

Im having two objects object1(Parent) & object2(Child) with lookup relationship. Now my requirement is that I need to create a button on child and when I click this button I need to create a ...
0
votes
1answer
28 views

Calling Visualforce page exports custom object records in custom list view button (Unknown constructor error)

I'm trying to export records from a custom object have got following visualforce page but, the visualforce page needs be invoked from a custom on list view when I try to add a standard controller and ...
2
votes
1answer
33 views

Object-Level Help in lightning experience

I have a custom object with custom help page, with Context-Sensitive Help Setting, select Open a window using a Visualforce page. This Visualforce page is the custom help page. This link shows ...
1
vote
1answer
202 views

what is the maximum salesforce id length [duplicate]

what is the maximum salesforce id length? I have to communicate it to another system that has to create an ad hoc field
0
votes
2answers
46 views

Salesforce: Custom Audit Log

As per my current search, Salesforce Setup Audit Logs are stored automatically & we can't add any records to it manually when any apex is run or page is viewed or any custom object is added, ...
1
vote
0answers
20 views

Auto populate Account name on child object while click on “Save & New” standard button

I have created a custom object and created a Master-details lookup field to Account. While creating new records, there is an issue. When I click on New button, fill in all the fields and click on "...