Questions tagged [fields]

When speaking of fields specifically on a Salesforce custom or standard object.

Filter by
Sorted by
Tagged with
1
vote
1answer
48 views

How to iterate over all the queried out fields of a single record

I need to iterate over all the fields that I query for a record and check all of those that are custom field checkboxes and see if any are true. The part that I'm not sure how to do is how to iterate ...
0
votes
2answers
26 views

Not able to update picklist fields as unrestricted from restricted

The option “ Restricted picklist to the values defined in the value set “ greyed out. I need to unrestricted this field. I am not sure why it is greyed out? How can I unrestricted this field now?
0
votes
0answers
18 views

Dynamic Field from Account in Email Template Subject using APEX?

I have a service in which we send a new updated Account to an external System, and then we generate a pdf for sending to user email. The process is okay, but they problem is that, when created and the ...
2
votes
1answer
20 views

Changing the colours of the fields depending on a formula?

I have two number fields on opportunity layout. A and B. I want to create a formula field and when A>B the formula field will be red or just an indication that people will notice it right away when ...
-1
votes
0answers
23 views

How to create an address field with multiple fields and autofill from Google Maps?

On Salesforce account and I am testing the futures in Sandbox. I have a field called Billing Address in account layout. It has multiple fields and autofills from Google Maps. How can I create a field ...
0
votes
1answer
13 views

Address(home, a location on google maps, etc.) data type

How can I create an address data type? On my Salesforce there is Billing address. When I create a new account I see the billing address field and it show something like this. How can I create new ...
0
votes
0answers
22 views

Export List of Field sets and their objects/Export list of fields per field set

I am finding a way to either exporting all the fields set with their objects details or list of fields in each field set. we have so many custom objects and it's hard to go look for a specific field ...
7
votes
2answers
2k views

The length of the first and last names

There is a Name field of type Name in Contact object. It consists of FirstName and LastName. I can query those two fields using Apex. Even though I cannot find any proofs in Object Manager of that, I ...
0
votes
2answers
24 views

UserId in formula field

I want to insert UserId of the SObject AccountTeamMember in a formula field, but I'm not able to put this field... How can I do it? We can see in the pic that I don't have the option to put UserId in ...
0
votes
1answer
21 views

How do I generate a report of where multiple specific fields are being used in an org?

I want to generate a report of where multiple specific fields are being used in my org. I know that Salesforce has a 'Where is this used?' button for each field which shows where that particular field ...
6
votes
4answers
14k views

How can one validate 'recordEditForm' fields before submitting them to the platform?

In a custom lightning component where one is using the recordEditForm tag, how can one validate fields that are filled by the user? For example, in a quick action to create a Case record, we can have ...
1
vote
2answers
545 views

List of all objects with the current number of used custom fields

You can view custom object field limits by going on: App > Customize > Object > Limits Is there a way of getting a list of all objects with the current number of used custom fields? EDIT: I know ...
0
votes
1answer
461 views

How to change the color of indicator

How can we show indicator for required field in VF page, There is always a red indicator , I want to have some other color indicator against the fields, I am using outputfield to show the values and ...
1
vote
1answer
1k views

Is there any setting why a field is not visible in Lightning but in Classic for same user?

Why a field is not visible in lightning but in classic for the same user? Do I need to make any change?
0
votes
1answer
65 views

Unable to reference object field in Apex Class

I'm a bit stuck, but in my defense, I'm passing a kidney stone and not thinking clearly. Words cannot describe the pain. I have a Visualforce page that opens in a newly created object record. One ...
1
vote
1answer
642 views

Renaming API fieldname causing problems in Flow

I noticed an issue regarding updating field API names and the use in Flows. Any changes in API names are automatically 'refactored' in flow. i.e., assignments, use in decision elements and screens is ...
0
votes
2answers
922 views

can we remove or hide standard field from page layout “Mailing State/Province” on contact

I am trying to remove this standard field "Mailing State/Province" on contact page layout but unable to remove or hide any trick to hide this field
1
vote
1answer
32 views

Prepend http:// to a url field if it's not already there

I have a field that contains a url. This url is sent to marketing cloud and the link only works if is prepended with "https://", how can i automatically add this if a user only enters "...
-1
votes
2answers
757 views

How to Make: “Notes & Attachments” *Required*?

On an Opportunity, is there a way to make "Notes & Attachments" Required? If so, please explain how as if I were a 11 year old ^_^
1
vote
1answer
541 views

Is there a way to use the auto-number field type in a relative manner within a custom object?

For example, I have a Subscription object attached to a Lead. Within the Subscription Object, I have many payments. I want each payment for that subscription and lead to have a unique index. So the ...
0
votes
1answer
150 views

How to find the mandatory fields on Sobjects in RestAPI /describe

I am trying to create an oAuth based app that integrates with salesforce to create the objects from the app. To let users know what all fields that users needs to put in at minimum to create the ...
0
votes
1answer
670 views

Embedded Live-Agent Chat Settings Offline support Case field selection

I try to add new Case field by pressing plus sign. There are some set of Case fields selectable and to be used for Case form. I need Case description field and it is missing from selectable case ...
0
votes
0answers
41 views

How to query Standard field's fieldId

The standard field Ids for Opportunity standard fields are opp1, opp2, opp3... and so on. Is there a way to query them using JS connection sdk or any tooling API available to query these. The use case ...
0
votes
0answers
9 views

A Custom Field Permission from multiple permission sets in Salesforce using anonymous script

I have a custom field created in Task where access is not provided to any user (including System Admin) but via permission set the access is there. There are almost 200 permission sets in the org and ...
5
votes
1answer
930 views

How to enter Seconds into Datetime fields using the standard UI

Say you have a datetime field Start__c on a pagelayout. Now try to enter a date (we have DE locale enabled, but should be similar in EN): 31.08.2014 14:53 ==> works 31.08.2014 14:53:38 ==> doesn't ...
1
vote
1answer
638 views

Need to initialize a currency field to blank or null in a process

Before calculating currency field values, I need to initialize all of these fields to be blank or null values as different fields may need to be populated based on updates to opportunity start and end ...
1
vote
1answer
40 views

How to choose the fields for a Send Relationship in Marketing Cloud?

I don't understand what a Send Relationship is in Marketing Cloud, its purpose and how to determine which fields need to be included into the Send Relationship. For example if one field is a ...
0
votes
1answer
28 views

Is it possible to overwrite custom fields from an unlocked package

I am creating an unlocked package from a separate Developer edition. In a sandbox we are adding custom fields which at first are not clear if they have to be added to the package to gain speed. Is it ...
1
vote
1answer
56 views

Is there a way to report when a field was last populated?

I want to see if a field is obsolete, meaning if it is not populated with data in the last six months, I would like to hide it from the page layout. So, Is there a way where I can run a report or ...
2
votes
0answers
87 views

“Interval” field not supported by Eventlogfile object (in Enterprise edition org)

I am using Salesforce Enterprise edition, and I have the "System Administrator" profile assigned to me, which has all the permission related to Read, Modify All data, View Event log files, ...
1
vote
1answer
41 views

“Where is this used?” not showing Reports where the field is used in a converted version

I just hit this —which seems to be a bug— and need to find all the reports where a field is being used. Any tips other than retrieving the metadata and ctrl+f for it? edit: This is happening in an Org ...
0
votes
2answers
32 views

Assign look-up fields in Page layout

I have a custom object Called App__c and Context__c , App__c has look-up with Context__c , Now need to add App__c object fields in Context__c page layout. Is this possible? Anyone can help? Thanks in ...
32
votes
1answer
24k views

Populating Custom Settings field using Apex

I'm trying to populate/set/put/initialize a custom setting's field with a calculated value within my apex code. The field type is number. Is there a way to do this?
0
votes
1answer
31 views

Mysterious “Long” DisplayType

I'm trying to figure out what "Long" DisplayType is (it's listed in Schema.DisplayType Enum values). I've checked standard fields for a couple of SF standard objects but didn't find any ...
2
votes
2answers
4k views

How to check if SObject has certain field?

I hope you'll help me to solve my problem :) I've written a class that check if a Sobject has a field of a certain name public static boolean hasSObjectField(String fieldName, SObject so){ return ...
0
votes
1answer
31 views

filterable property in schema

how to get fields which are queryable(can be used in query) or filterable(property from schema) from an object like account without using soql queries. Any suggestions? how to achieve this.
1
vote
1answer
52 views

Is there a way to export what “where is this used?” details?

I'm trying to collect and analyze field metadata. It would be extremely helpful if there was a way to mass export (e.g. all account fields) with the details around where the fields are used (same view ...
7
votes
7answers
23k views

How can I export object's field schema information to excel?

How can I export the fields of an object from Salesforce into an Excel sheet? I'm only looking for the field schema information, not the objects records.
0
votes
2answers
86 views

Why use autonumber as external id [closed]

I can't figure out why use autonumber as External ID. There is some case when must be used an auto number as ExternalID? Thanks
0
votes
0answers
18 views

Isupdatable is false in higher env, even though its true in development sandbox

While updating some fields of order product object using apex in my test sandbox I am getting isupdatable as false in the alex class. Even though isupdatable for the same field is coming as true in ...
1
vote
1answer
62 views

Dynamic query using In with a List with multiple fields

I have an array of this class global with sharing class JiraTimeLog { public Long worklogId; public String jiraIssue; public String milestone; public String resource; public Date ...
1
vote
0answers
50 views

UserPermissionsMarketingUser is visible on the User Detail record for user records but it cannot be found in Object Manager

I can select or deselect UserPermissionsMarketingUser for User detail records manually. The field is visible. However, when I click on the Fields and Relationships for the User object using Object ...
1
vote
1answer
69 views

Why isUpdateable() is not working for non required fields in RestResource class?

I want to update two fields in a custom object from a RestResource class. This is the code I used: @RestResource(urlMapping='/AllHistory/*') global class SampleClass{ @HttpPut global static ...
0
votes
1answer
132 views

Trim whitespace between fields in lightning:recordEditForm with slds-form_horizontal deprecated?

I slimmed down my code to better illustrate the issue. I have a simple lightning:recordEditForm with lightning:inputField(s) inside. By default these fields pad themselves with a lot of vertical ...
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
10 views

Need to create a specific workOrder when Maintaince Plan is created

I need help with some stuff, I need to create suppose 5 workOrder when the Maintain Plan is created via APEX ? When i access it's field's via apex it give me error. I have the Field Level Access (...
2
votes
0answers
141 views

Updating the Case MasterRecordId field in Apex tests

I have currently got a bit of code running in my beforeUpdate trigger that updates 4 fields of a case once the MasterRecordId field is changed. This is because that field is used to distinguish ...
0
votes
1answer
36 views

Making changes to Case Effective Date

I am attempting to use workbench to update the Effective Date of several cases and it's giving me the error "'7/8/2020' is not a valid value for the type xsd:date." Updating Object Type: ...
1
vote
0answers
311 views

How can the Case History fields present in Case Lifecycle report type be retrieved with SOQLs?

In the standard report type Case Lifecycle the following fields of Case History object can be retrieved even if not present in the object itself: Case History Owner Case History Status Case History ...
1
vote
1answer
42 views

Invalid field from Lead using sobject.put in batch apex

During a batch apex class, we are copying one field value from one field to another field. Using the following code below we got the error message. How can we resolve this issue? Steps we have tried ...

1
2 3 4 5
9