The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
3answers
23 views

Effects on Deployment of Changing the Data Type of Custom Field when Reference by Apex

I have text area field which is limited to 255 char only but the new requirement asks that this field's limit be increased. So I commented out all apex that references to this field, tried changing ...
2
votes
2answers
30 views

Insert or update records dynamically through SOAP API's Partner jar

I am working on inserting CSV records to Salesforce. I usually do using Bulk API where the types are auto detected and mapped. However, I got into a scenario where I have to upload Documents or ...
1
vote
2answers
76 views

Time Data Type and not Time Date

I'm trying to allow time only for data entry. I want to avoid as much apex and visualforce as possible for this project. I can certainly do it but I'm trying to keep this full configure for this ...
6
votes
2answers
261 views

Why do primitive variables behave differently than object variables when being passed through void methods?

I’ve noticed that the contents of an object variable can be altered when the variable is passed through a void method, while the value of a primitive variable cannot be. For example, the following ...
0
votes
1answer
21 views

Need to find whether my time stamp is between the business hours

I am trying to implement SLA for Lead management. So handling all the SLA functionalities on a trigger and Apex class. I need help in getting the current time and comparing it to the defined ...
0
votes
0answers
23 views

Allow for mapping of multiple data types

So I have a scenario that would lead to an excessive amount of overloaded methods but I'm trying to avoid this by using a storage mechanism that I can then iterate through and return my variable no ...
8
votes
1answer
193 views

What is the correct JSON/Apex Strategy?

Summary I'm having a lot of trouble deserializing a JSON file into apex. The problem is not in how to deserialize a JSON string, but rather what type of apex objects I should be using. I don't come ...
0
votes
1answer
100 views

Change datatype from Text to Text Area(Long)

I have a requirement where a text field char size(255) is not sufficient and I have used that text field in various codes. If I change datatype from Text to Text Area (Long) will my other ...
-1
votes
1answer
31 views

Can I change the datatype of a field Caller Street from text to picklist will the value in that field be lost?

Can I change the datatype of a field Caller Street from text to picklist. Will the previous data be lost Please suggest
2
votes
2answers
53 views

How To Increment Datetime by Decimal?

I have a packaged application installed in my salesforce which sends the Service Duration (Number Data Type) = 3,600.00 and another field Scheduled Date Time 12/21/2015 2:00 PM (DateTime Field Type). ...
2
votes
1answer
68 views

How to parse the ENUM value

How could we pass an get a value from an enum inside a method. According to the below code snippet, how could I pass the value of the parameter to severity__c in Note__c instance?? enum severity {...
2
votes
0answers
104 views

@InvocableVariable of List datatype

I'm building an Apex action for Process Builder and would ideally like to pass in a list of strings as an @InvocableVariable. Per the SFDC documentation, "The data type of the invocable variable must ...
0
votes
1answer
118 views

Exact target - change data type of an existing column in a data extension from text to date

How can I change the data type of an existing column of a data extension from text to date in exact target. The values in the column are in this format '2015-09-13 00:00:00'. Thanks!
2
votes
1answer
51 views

Visual Flow screen with data type conflict between text and picklist

I created a flow where I reference a picklist field in a screen. The field in the screen "Tipo_de_Contrato2" is Choice Type "Dropdown list" and Value Data Type "Text". I associated a choice, "Tipo",...
2
votes
1answer
263 views

Return different data type using only one method

Good day everyone, I am just wondering if it is possible to make an apex method wherein you can return different kind of data type like Integer,String,Double and etc. Please help. Thank you...
0
votes
0answers
26 views

Data type problem in Visual Workflow - BigDecimal vs. Long?

I am building a Visual Workflow, and one of the things it is doing is asking the user to enter a value for the Number of Employees on an Account. When the flow runs, it produces the following error ...
3
votes
0answers
58 views

Change sObject field type and deploy with API

in this thread, there is a discussion about modifying custom sObject's type. When I try to change the field's type in Salesforce GUI, indeed I can see the error message about some references in code. ...
1
vote
3answers
559 views

Concatenating address field in formula

I don't know if the subject resume my problem . I would like to display in my HTML page the name of Supplier with adress . on HTML something like that : <span> Supplier Name <br/> ...
7
votes
1answer
258 views

Boolean.valueOf(x) vs (Boolean)x

Is there any reason to use one over the other? Efficiency? "gotcha's"? I am working on a major code cleanup, and my org is littered with both types, so as I'm going through, I'd like to standardize,...
1
vote
1answer
56 views

Get Type of Apex Components

I need to dynamically create Apex Components. I know that there is method Type.newInstance that can do it, but one problem seems like I can't get Type variable from Apex component. For example: Type ...
0
votes
1answer
155 views

Field with address datatype on VF page

Thank for all your help. Can some one help me in how to create a custom field with datatype address like the one on accounts tab e.g Billing Address. In billing address,there are various fields.....
0
votes
1answer
534 views

Address Field in Salesforce

I want to have an address field on Opportunity.I know there is no Address data type.How to achieve something like a Standard Address field like Account's Billing Address.
1
vote
1answer
107 views

How to change the Event object Description Field type to Rich Text?

As the question says, I would like to change the data type of the Description field on Event Object? Currently it is Text Area but we would like to change it as Rich Text Are as we have some html ...
1
vote
1answer
251 views

Convert an array of ids to a csv string with quotes

I have a webservice method that takes the $_REQUEST from the URL parameter of my app and I believe handles it like an array, for example: inputs.param1 = "some_value" inputs.param2 = "1209845, ...
1
vote
1answer
469 views

Convert Custom field type from text to lookup/master-detail in salesforce

I have created custom field with Text data type..For some reason I need to change the field type to a look-up/master-detail relationship. But when i click on "Change Field Type" button for that ...
3
votes
2answers
2k views

Change field Data Type without removing all references to said field in Controllers and Classes

Is it possible to change a field's Data Type without removing all references to it in controllers and classes? I'm considering changing a Rich Text Area to a Long Text Area. I'm receiving the ...
4
votes
2answers
2k views

Reading Long Text Area field with line breaks

I have long text area field, which has data on each line. I am populating a line then hitting "Enter" and then populating the next line and hitting "enter" again and so on. When reading this field ...
4
votes
3answers
804 views

Getting a type of the generic object

How to get a type of the generic object? I have a method that gets as parameter some object. It can be realy everything. In my example it is a list of strings. But it can be a map or set or some other ...
22
votes
4answers
6k views

How to get the Runtime-Type of an Object dynamically (for Primitive Data Types and SObjects)

Is it possible to get the Type of an Object (it's not an SObject)? String s = 'test'; doSomething(s); public static void doSomething(o Object) { // need to find out if o is a string or an ...
2
votes
1answer
327 views

Equivalent data type in standard or custom object to persists blob data?

I have built a webservice in salesforce so that it is being consumed from SAP. So, when a sales order is created in SAP, it would call the salesforce webservice and post the sales order details and ...
3
votes
1answer
1k views

Dynamic Type Casting of Inputs

I am using apex:input on a VisualForce page to take in a variety of input types. I store values separately for Dates, DateTimes and Strings, as they have their own input 'types.' However, for numeric ...
2
votes
1answer
92 views

Why is 'Data Type' not defined on my custom field?

Why is datatype not defined on my custom field (circled below)? And how can I define it?
3
votes
2answers
998 views

What datatype for time only? (without date)

What is the correct datatype for a field that represents a time of day for a recurring event? I'm building a class enrollment system (for a hypothetical university, as a school project), and I need ...
3
votes
1answer
3k views

How to get DataType in Apex

I am using utility class methods which are called in test class to populate all fields of say XYZ object.But i have a field in XYZ object which is formula field. As it is read only i would not want to ...
3
votes
1answer
139 views

What is the max number of characters are allowed in a Phone field?

What is the maximum number of characters allowed in a field set with the Phone type? The online documentation that I found only says: Phone fields contain phone numbers, which can include ...
8
votes
2answers
4k views

Some boolean values are 0/1 and some are true/false

What are the standard values for boolean datatype? I have two columns like below in different tables. One table has values like 0 and 1 and the other table has true and false. I need this to set a ...
6
votes
1answer
256 views

Why was OwnerId deleted when custom object was refactored with Master-Detail(Account)?

Simple question, but conceptually I do not understand why Salesforce should want to enforces this policy. We created a custom object, loaded some data to it and selected a user as owner for the ...
7
votes
1answer
1k views

Importing string typed data into an sobject

I have a relatively large Map<String, String> which is basically a key/value map of sobject field names and their values. Obviously, all the values are strings, but fields are not (there are ...
6
votes
5answers
21k views

How does Static variable and Static method works

I read in salesforce documentation - Static variables are only static within the scope of the request. They’re not static across the server, or across the entire organization. Can any one ...
1
vote
1answer
3k views

How to set the value of a currency field from a formatted string

In apex, how would you set the value of a currency field with a formatted string? See the sample code: String price = '$1,000.00'; MyObj__c obj = new MyObj__c(); // this line won't compile, so I'...
3
votes
2answers
2k views

Pass parameters to constructor when using System.Type.newInstance()

I have created an Apex InterfaceFactory that the user can use to get an instance of a specified implementation of an interface. For this I use the System.Type class. The actual name of the class can ...
10
votes
2answers
6k views

Can you convert a Master-Detail relationship to a Lookup if it's referenced in code?

I've got a Master-Detail relationship on a custom object where the parent is the Account object. There are no roll-up summary fields on the Account object, and there are no formula fields on the ...