Questions tagged [custom-field]

A custom field can be added to standard objects that support custom fields and custom objects to extend the capabilities of Salesforce to suit the specific needs of an organization. Custom fields can be accessed in code by referring to them by their API Name which is their specified Field Name value suffixed with an __c.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Suggestions for storing custom events in a campaign

So I created this custom campaign in Salesforce, where I chose Other in type column. The way my campaign happens is I send an email to a thousand people which contains a link and I'd want to track ...
0
votes
1answer
21 views

How to add default text in text long field? [closed]

I need to add default values in Long Text Area field. I have to add value something like below: 1. date & time of lost item inquiry; Response: 2. the details describing –Status. Response: ...
0
votes
0answers
25 views

REST callout to another org - unable to access custom field due to it ending with __c [duplicate]

I am making a callout from my org to the REST endpoint of another org in our business. This is using the standard query endpoint /services/data/v48.0/query?q=SELECT+Fields+FROM+Contact+WHERE+.... ...
0
votes
0answers
15 views

How to handle save in custom lightning Datatable with lookup fields

We have worked on a cuistom datatable in https://live.playg.app/play/lookup-in-lightning-datatable-lwc . Lookup Fields are not being Auto-populated .Save is also not working . We need some help , We ...
0
votes
0answers
18 views

How to autopopulate the existing lookup values in Custom Lightning Datatable using Lwc

can you help me in auto-populating the existing lookup field values. There is an example in this website : https://live.playg.app/play/lookup-in-lightning-datatable-lwc I need to display all the ...
0
votes
0answers
15 views

Which permissions are needed to access “CustomField” object?

We are using the metadata API to access field metadata such as description, data type, default value etc. This is for standard objects but on custom fields e.g.: SELECT Id, Metadata, TableEnumOrId ...
0
votes
1answer
17 views

How can I pass a parameter into a method inside an if statement within a visualforce page?

I have the following Controller and Visualforce(VF) page where I need to conditionally display a different value based on what is passed into a method. Question How can I pass a parameter into a ...
0
votes
1answer
20 views

Update Contact Picklist field when related Account is updated

I'm trying to figure out how to update a Contact field when a related Account field is updated. This is probably trivial for seasoned Salesforce admins... Under Accounts I have a Lookup field called &...
0
votes
1answer
15 views

Time Difference in minutes on 2 'Time' Data type

I have 2-time fields (Start time and End Time). I need to calculate the difference in minutes. I have tried with below code, but does not work. Double var = Math.Floor((Double.valueOf(mem.End__c....
0
votes
1answer
27 views

Capture fields values without creating new dummy fields on Case Object

I have to capture fields values belong 7 different fields when a flag field is true on Case Object and capture them in object B. Basically I am trying to avoid creating 7 new fields on Case Object to ...
-1
votes
1answer
27 views

I need to create a method in the acount trigger to keep an external id field value updated. (continue in body)

This value has to be the name of the account. Every time an account is inserted or its name changes, it is necessary to update the external id. How can i do that? thanx. Public static void updateAcc ()...
1
vote
1answer
44 views

How to get references(where the field is used) of a custom field in salesforce via API or Tooling API

I want to find the references of a custom field i.e. where is the field used e.g. Layouts, Apex Classes, etc. via the AP/Tooling API. There is an option on UI in professional salesforce orgs called ...
0
votes
1answer
15 views

Unable to select custom field of task in process builder

I had a requirement to create custom field called Potential in task, since task object does not allow you to create custom field i had to create that in activity. Now i need to use this custom field ...
0
votes
0answers
26 views

How to pre-fill a field with dashes?

I need your help to create a field (phone) where the user would already see the dashes in the field without forcing him to write them. example : Phone: - - - For the moment I only do this by creating ...
0
votes
2answers
19 views

Arranging Custom Fields in Custom Settings

Is it possible to arrange custom fields in a custom settings object? I have an object in custom settings (MyCustomSettings__c) and I'm creating custom fields. I'd like these to be arranged in specific ...
0
votes
1answer
42 views

Count child records of parent (under certain conditions) using process builder

I have an object called Closings that signifies when a purchase is completed. When a purchase is completed the status of the Closing is set to "Exchanged". I want to create a field within ...
0
votes
0answers
77 views

Custom field not displaying on page layout for specific profile although permissions are set

I have a page layout for a specific contact record type that includes a specific custom field. Users with Sys Admin profile can see it on the page, but users with a different role cannot, even though ...
0
votes
1answer
48 views

Issue with file count on Custom object

I have an apex class which updates the files count on custom object called Declined_Policy__c. Below is my apex class: public with sharing class Policy_FileCountClass { public static void ...
0
votes
1answer
26 views

Custom field not being found in trigger

I'm attempting to add a trigger that updates a field based on the value of another field, namely Total. So I define a trigger: trigger TotalTriggerAccount on Total (after update) { } the developer ...
0
votes
2answers
31 views

Identify Multiple purchasers in a custom field

I am new to Salesforce and i am trying to identify i way we can have a custom field on the Contact record to identify if someone is a "Single Purchaser" / "Multiple purchaser" or a ...
0
votes
1answer
17 views

Identify the First and Last Enquiry Source on the Contact object

I have a custom object called "Enquiries" when someone enquires in the enquiry is created as well as a Contact. You can have multiple Enquiries linked to a contact. Within the contact there ...
0
votes
2answers
69 views

Check if current record value present in other records

I have a requirement, where account name and account number if do not match with any other records, a custom field called alert_text__c will be updated with some text. It is as follows: List<...
0
votes
1answer
47 views

Check if long text area field contains given string

I have a custom field called Account_from__c which is a text field. Now, I have a Long text field called Warning_Message__c which contains warning messages. The warning message will be like "...
0
votes
1answer
40 views

Rename API name of existing custom fields

I am trying to rename existing field's API name. I know that before that I have to remove all references from class, VF pages..etc. Currently I am trying to fetch all references like classes and field ...
0
votes
2answers
54 views

checking field update on multiple child records

I have a requirement to check Terminated__c flag on multiple child records (lead_Custom__c) and if it is true, then update the Terminated__c flag on Parent record (contact). Below is the apex class: ...
0
votes
1answer
42 views

Field Level security disable field visibility

On Opportunity are two Custom Fields Product__c (controlling field) and Product_Type__c (Dependent Field) When i check the field level security on these fields, it is visible for all Profiles. I want ...
0
votes
0answers
28 views

Show 200+ fields on Lightning Component

I am working on requirement to display more than 200-300 fields on a custom object in a lightning component. Since I dont want to display all fields the fields I want to display them conditionally ...
0
votes
1answer
29 views

How to access custom fields master table in developer console

We have integrated salesforce with our internal portal. On opportunity we have a field names Tags and there are certain values in it. When i use select Tags__c from Opportunity, i am getting only api ...
0
votes
1answer
20 views

Default value for custom price field to product's price list. Object has Product [closed]

New at Salesforce. I'm creating a transaction detail where you select the product, then the price field would auto default based on the product's price list (but can be overwritten). I assume you ...
0
votes
0answers
17 views

Cannot Create Lookup Relationship on Custom Object

I'm trying to create a lookup relationship field however it's giving me an error saying it cannot create a Master-Detail relationship, which is not what I selected. Is there any reasion for this ...
0
votes
1answer
33 views

Bulk API upsert error for a Field type Location

I'm using the Bulk API v2 for upserting data into a CustomObject. When i try to upsert data without the CustomField Location, it works correctly, but when i add in the CSV the Location__c header, i'm ...
0
votes
0answers
9 views

How to update a field automatically on a looup field change before pressing save button?

I have a custom object 'Shop' which has a relation to another object named 'Shop Location'. Now what I want whenever user creates or updates a record for Shop object if the user changes the lookup ...
0
votes
0answers
47 views

custom process to track lead status duration

I have a requirement to display lead status duration which is similar to opportunity stage duration. As opportunity stage duration comes by default on hover where as lead doesnt have that ...
0
votes
1answer
23 views

Any drawbacks of querying for a standard object's fields by using a custom object to store the standard object's fields?

I have a bunch of fields on an object that I need to display based on the objects picklist field called category type. Unfortunately there are lot of fields and lot of category type and also I can't ...
0
votes
1answer
31 views

best practice: custom fields or one-to-one?

If you have custom data that is one-to-one with a standard record, what are some example circumstances where you should or should not: create custom fields in the standard object? create a custom ...
0
votes
0answers
19 views

How do you reference a custom field's help text in a visual Flow?

I want to pull in help text and the field label from a custom field in my org and display that in a visual Flow. That way the help text can be easily changed in one place and there isn't different ...
0
votes
1answer
42 views

Get that StageName of the last Opportunity with an specific product at the Account Level

I want to display in a field at the Account level the name of the Stage of the last created Opportunity that has an specific product. e.g. An Account has 3 Opportunities. And I'm looking for the Stage ...
0
votes
0answers
30 views

How to find out whether a specific picklist value was selected today?

I need to create a new custom object only when both of the following happen in the same day: Contact.Custom_field__c = 'myValue' (so this picklist value has been selected today) A Task of type Call ...
0
votes
0answers
30 views

bulk insert records using dynamically add row Help with custom validation

Lightning component : to create multiple records to dynamically add row functionality. Account Name ...
0
votes
2answers
39 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
35 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
0answers
23 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.
0
votes
1answer
43 views

Is there a way to make a custom field look more visually prominent in lightning layouts?

I have a custom field (checkbox) on the Account object, it's been placed in the details section which is towards the top of the page layout, but I would like to make it more prominently visible by ...
0
votes
1answer
71 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
0answers
50 views

Trigger Not Firing When Condition is Based on Custom Event Picklist Field

I am trying to update a custom date field on the Account object when an event of a specific type is created. The Event UI includes a custom type field called Type__c, and the picklist value from this ...
1
vote
1answer
58 views

How to get individual field names of compound field from EntityParticle object using Tooling API?

SELECT DataType, EntityDefinition.DeveloperName, IsCompound, DeveloperName, FieldDefinition.QualifiedApiName FROM EntityParticle WHERE EntityDefinition....
0
votes
0answers
30 views

salesforce custom field value getting successfully updated through api but the updated field value not reflecting on sfdc ui page

I have a custom field for an object for a sandbox account at the portal. When I am updating its value through sfdc api it gets updated successfully and is also reflecting the updated value in the ...
3
votes
1answer
43 views

Any way to include a new line in a field's default value?

I would like to default some JSON including new lines: [{ "text": [...] }] in a LongTextArea field: <?xml version="1.0" encoding="UTF-8"?> <CustomField xmlns="http://soap.sforce.com/...
0
votes
1answer
94 views

Deploy FLS settings for standard object's custom field in managed package

I've added a custom field to Activity object for using it during Task creation/updating from Apex code. By default when I deploy my project through SFDX this field has no FLS settings. In the result I ...

1
2 3 4 5
17