Skip to main content

Questions tagged [data-types]

The tag has no usage guidance, but it has a tag wiki.

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

use name type as text type in flow

I am trying to use the Name field under user as the value for another item in a salesforce flow. however it seems to be failing because the User Name field is Name type, while the destination field is ...
user149493's user avatar
1 vote
1 answer
125 views

Error While Updating an Custom Address Field using flows

Whenever the Opportunity record is created, the custom address field should be updated with the account billing address, but while being created, I'm getting the error: "This error occurred when ...
Tharun Kumar A's user avatar
5 votes
1 answer
203 views

Error and Changes in Spring 24 to define Column type - Picklist with LWC Datatable

I have been trying for much too long to get a create a custom data type of picklist for an LWC table. I have read the standard docs about creating an editable custom type, and reviewed the many ...
BritishBoyinDC's user avatar
0 votes
1 answer
207 views

Custom LWC datatable with custom datatype - lightning Combo box

I need help in getting the values in the parent component from the template which is called in child. In below code, onchange event is giving me the Id for the picklist value but not the cell id. how ...
Neophyte's user avatar
0 votes
1 answer
156 views

How to convert text data type to emailaddress data type in marketing cloud

I have a SourceDE with field name "Email" as a text data type, but this field has emailaddresses only. I am writing a Query Activity in marketing cloud to tranfer the data from SourceDE to ...
SFMC User's user avatar
0 votes
1 answer
230 views

Attendees Field on Event object is null in backend

In my use case I would like to grab all event where a certain user has been added as an attendee for the event. When I do get records in the flow and I actually get null value in the Attendees field ...
Grillz's user avatar
  • 23
0 votes
0 answers
174 views

DATETIME Field value doesn't show in Lightning-Record-Edit-Form

I have a problem with visability of Date/Time values in Lightning-record-edit-form. This is my code: <lightning-record-edit-form object-api-name="Event_Calendar__c" onsuccess={...
Anyja's user avatar
  • 1
0 votes
2 answers
956 views

Strings holding exact same value still returning false when compared

I have 2 string variables. One of them holds data retrieved from custom metadata and another is explicitly declared. Both return exact same data when debugged, but still if I compare them, it returns ...
sourav guha's user avatar
0 votes
0 answers
205 views

Unexpected token 'Boolean'

Hey guys I'm new to Apex and even pretty new to Java, It's probably a stupid mistake but I can't figure it out. I am getting "Unexpected token 'boolean'." error , tried with both Boolean and ...
Rad's user avatar
  • 3
1 vote
1 answer
461 views

Is this expected behavior: Integer vs Long in Apex

I ran this code snippet in anonymous apex: Integer slaM = 60000; Long L1 = 60000 * slaM; Long L2 = 60000 * (long) slaM; system.debug ('L1: ' + L1 + ' /L2: ' + L2) Here is the debug output: DEBUG|...
hamayoun's user avatar
  • 2,777
0 votes
1 answer
92 views

When display type of field can be integer or long?

I am building a managed package for our clients which include custom filter and custom sorting of records, I need to consider different cases regarding to field types and display types. I know that ...
Patlatus's user avatar
  • 17.3k
0 votes
1 answer
2k views

Pass SelectedRows from LWC Datatable to Apex

I'm still very new to Salesforce/Apex development but I'm struggling to understand how I would pass the SelectedRows of a datatable through to Apex. I've managed to pass simple data types through on ...
plateaued1's user avatar
0 votes
1 answer
648 views

How do I create a custom field which contains multiple data type?

I want to create a field with a question (e.g. How was the service of employee x) and allow the employer to pick a result (e.g. good, average, bad) as well as to add comments. However, while i believe ...
H4shBrown's user avatar
1 vote
1 answer
593 views

Data Transformation from mutli-select picklist to array of number in a flow

I have a multi-select picklist field that I need to transform to an array of number to use in a API. How can I do this in a Flow? Context: I need to send the result of a multi-select picklist to an ...
Amandine Mutton's user avatar
0 votes
1 answer
505 views

Finding fields for standard data types

I've been trying to complete a challenge on trailhead (link here) The text says "Create an Apex trigger that sets an account’s Shipping Postal Code to match the Billing Postal Code if the Match ...
Frans's user avatar
  • 29
1 vote
0 answers
3k views

Compare DateTime Fields in a Flow

I'm helping our Events team with a new flow that we're building. Within the flow, we're attempting to compare two DateTime fields with one another in order to execute actions based on the difference ...
Michael Forrest's user avatar
-3 votes
1 answer
72 views

Illegal assignment from List<String> to List<Order> (4:21)",

Im having this issue which I dont understand. Any advice?
happyLion's user avatar
0 votes
1 answer
1k views

Trying to update country code in phone field with Workflow rule

Trying to update country code in phone field with Workflow rule. In which rule will check the Country(picklist type) and add the country code before mobile number(Phone type) automatically. Tried so ...
user46402's user avatar
1 vote
1 answer
322 views

Declaration of Data Types Apex

I'm a new learner in Apex and I have a question about declaration of variables(A map in this case) and its Data type. I've been working with integrations and REST callouts and spend a long time when ...
Rosangelys Reyes's user avatar
1 vote
0 answers
1k views

Query External Object filtering by Date or DateTime dataType

first time ever writing here, hope anyone can help me: We're working with Salesforce Files Connect, currently configured and working with SharePoint. Users can browse files by certain filters we're ...
Livio Cioffarelli's user avatar
2 votes
1 answer
814 views

Avoiding String.ValueOf on Map<String, Object> from JSON

I'm working on a JSON response that is a REST api call making a Query to another Salesforce Org. Important points: I'm trying to avoid using JSON2APEX if I can. So far I have had good success, and if ...
thinker's user avatar
  • 1,442
0 votes
1 answer
333 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 ...
Nathan's user avatar
  • 45
2 votes
1 answer
341 views

How to define a interface datatype? [duplicate]

I was preparing for PD1 exam and came across the below sentence on interface in the developer documentation which I’m unable to understand. Can anyone help with an example as to what the below ...
Krishnamurthy's user avatar
2 votes
1 answer
113 views

Why does deserializeUntyped interpret Strings starting with digits as Integers

This code List<String> ls = new List<String>{'32', '4text', 'text5'}; Object obj; for (String s : ls){ try{ obj = JSON.deserializeUntyped(s); System.debug(s + ' ...
Emmanuel BRUNO's user avatar
0 votes
1 answer
188 views

Correct Datatype for new field - list of timestamps

I'm just doing this using the Salesforce Lightning GUI, not doing it programmatically. I am creating a new field for a Salesforce object. This field will hold multiple datetime stamps. When an event ...
Erich Purpur's user avatar
1 vote
1 answer
3k views

Avoid exponential while converting Double to String

I was working with integration, where i need to send my internal data to Core system. I have came across a strange issue while converting large number(Double) into JSON. Sales-force automatically ...
NITHESH K's user avatar
  • 2,535
0 votes
2 answers
356 views

APEX Callout return type not always known, unsure how to adapt to different situations

I have an APEX callout that makes a call to a REST API and returns an object, in this case I am calling /services/data/v48.0/sobjects/Case/describe. I was trying to use this same APEX class to call ...
SBB's user avatar
  • 173
1 vote
1 answer
4k views

Converting a Long Area Text to Rich Field Text

I am trying to convert a Long Text Area Field to a RTF but when I do so I loose all the formatting it just removes the HTML tags and makes the area a whole chunk. So what I am trying is instead of ...
user81642's user avatar
  • 687
0 votes
1 answer
1k views

Dynamically convert CSV field value into salesforce data type

I am trying to create fields dynamically based on the CSV data. All CSV headers represent the field name in Salesforce and rows represent the values. As all CSV values are in string format I have to ...
Hunt's user avatar
  • 245
2 votes
2 answers
495 views

Deduce Schema.DisplayType from a sample of JSON property values

From a REST API my Apex is receiving a list of JSON objects with previously unknown properties. To store those properties I want to dynamically enhance a Custom Object by adding suitable Custom Fields ...
Robert Sösemann's user avatar
2 votes
1 answer
3k views

Blob is not a Valid UTF-8 String - Only after "–" [duplicate]

I created a CSV parser that parses CSV's from static resources. I am returned with a Blob is not a Valid UTF-8 String error when parsing the character: "–" different from "-". The "–" is apparently ...
S.B.'s user avatar
  • 2,111
0 votes
0 answers
46 views

On new custom field, how to setup a data type of Formula and output type of Checkbox?

Checkbox will come back as true if these employee conditions are met: are in the US, are full time, are active and have a start date after 1/1/2018. No syntax errors, but the checkbox on Team Member ...
Kevin Cicero's user avatar
1 vote
1 answer
3k views

How to dynamically set multiple choices to a picklist of a Flow Screen using a resource of type 'Choice'

Is there any way of dynamically setting multiple choices to a picklist of a Flow Screen using a resource of type Choice? It seems a collection variable of type Choice cannot be created nor can it be ...
user73893's user avatar
  • 315
2 votes
1 answer
2k views

Inequality operator not allowed for this type: Object

When trying to compare any two arbitrary Object values to determine order, I get the following error. Inequality operator not allowed for this type: Object Below is sample code that will not ...
Marty C.'s user avatar
  • 4,479
0 votes
1 answer
695 views

Data Loader error- (ID: value not of required type: 425.0.)

I'm trying to import a file with Data Loader into a Standard object and I get the errors as follow: ID: value not of required type: 425.0. The Data Type is TEXT in salesforce. In the CSV import ...
Salesforce User's user avatar
0 votes
1 answer
2k views

Changing field type from Checkbox to Formula(Checkbox)

I have read that change in field type would result in data loss. I have a custom field which is of type checkbox and has around 200 records. Now, I need to change this field data type to formula (...
Techie's user avatar
  • 39
0 votes
1 answer
986 views

Ampscript function to remove the comma from a number greater than 1000

I have an API call that is passing over what should be a number as a text field. If the number is over 1000, the value is being sent with a comma (e.g. 3,000 instead of 3000). Salesforce will not ...
K K's user avatar
  • 307
1 vote
2 answers
3k views

Why does number field comes as Decimal type even if Decimal places is 0 in field definition

A very basic question. We define a number type of custom field and try to fetch it in apex. After this suppose I write following code : Set<Integer> validCounts= new Set<Integer>{1,3,6,9}...
Sarang's user avatar
  • 2,628
1 vote
1 answer
9k views

Salesforce doesn't save percentage fields as a decimal between 0 - 1?

Question about percentage fields in Salesforce. I know salesforce is saving these values as double precision. However, it seems the value saved is a whole number > 1 instead of 0 For example: //...
ZAR's user avatar
  • 2,043
1 vote
1 answer
8k views

String ('yyyy-MM-dd') to date using date.parse returns ('yyyy-MM-dd hh:MM:ss')

I am trying to output a date type with the format yyyy-MM-dd, but. not as a string type. I can create the string just fine. // First I output 2018-12-01 00:00:00 as a date currentDate = Date.today()....
David Picksley's user avatar
1 vote
1 answer
2k views

Lightning Component integer attribute not matching javascript integer

I have an attribute of type integer. <aura:attribute name="selectedRowNum" type="integer" /> I also have an iteration component in which I get the index of the current object that is being ...
Marcos Martinez's user avatar
1 vote
1 answer
3k 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 ...
Logan H's user avatar
  • 71
0 votes
1 answer
148 views

Change Data Type

I have a field in production number_of_requests__c type Number (18, 0), the entered data is copied (on save) to another field number_of_case__c type Number (6, 0) of another related object. In the ...
Pericle Parquet's user avatar
0 votes
1 answer
38 views

How to put a specific account as default value on Lookup(Account) data type?

I don't know why this kind of option is not available on lookup field in Salesforce . What I need is to retrieve some information details from a specific account . Is there another way to proceed ?...
Julio Ludovic Ramihone's user avatar
1 vote
1 answer
830 views

Help understanding data types, and how data space is consumed [duplicate]

Note I have updated the question with more info to explain why it is not a duplicate. Changes are in italics below. I'm pretty new to Salesforce but come from a .NET/Sql Server background. So I am ...
Fraser Orr's user avatar
1 vote
0 answers
172 views

What deep magic exists in Apex and can we replicate it? [closed]

When reading Apex code, there are at least two instances where SFDC is doing something more than the is immediately apparent given the syntax of the code, both of which somehow relate to SOQL: SOQL-...
Brian Kessler's user avatar
6 votes
2 answers
648 views

What are the risks or drawbacks of creating Parameterized Interfaces using of the Apex API version 25?

Unfortunately, as of API version 26, SFDC removed parameterized interfaces. However, it is relatively easy to create new interfaces and set the version as 25. So, to take the example from ...
Brian Kessler's user avatar
1 vote
1 answer
2k views

Why does a variable of blob type, when printed gives out it's size?

String str = 'myString'; Blob b = Blob.valueOf(str); System.debug(b); System.debug(b.size()); System.debug(str); Here if I print str then the value of str(I believe it is usingvalueOf()method ...
Krishnan Mishra's user avatar
6 votes
1 answer
513 views

Apex differentiate between Lookup field to master detail field

Is there a way to differ between regular Lookup field to a MasterDetail field? When calling to getDescribe() on a field both of them holds the type of REFERENCE. EDIT: After further investigation, ...
omri_saadon's user avatar
6 votes
1 answer
5k views

Apex differentiate between RichTextArea, LongTextArea and TextArea

When calling getDescribe() on a custom field I get the field data. Although, I need to know when the field is Text Area (Long), Text Area (Rich) or just TextArea. When seeing the result from ...
omri_saadon's user avatar