Questions tagged [conversion]
The conversion tag has no usage guidance.
71
questions
11
votes
1
answer
3k
views
Converting between .NET decimal and SFDC decimal
We have a .NET app that interfaces with SFDC via a web service. When we import the WSDL the resulting classes will use the .NET type double wherever SFDC entities use a double. The problem I see here ...
6
votes
3
answers
9k
views
How to force number format on apex:inputText
Background
We have an org that has advanced multi-currency activated. Since this feature is activated we are not enabled to use apex:inputField on currency fields. Instead of this we are using apex:...
4
votes
1
answer
580
views
How to create test Leads with convertedDate other than today?
I had a VF page with a custom controller. The VF page simply shows how many leads were created by each salesperson in the following ways. Say, for Sales Associate A,
how many leads he created YTD
...
4
votes
2
answers
785
views
Help Writing Generic Set ContainsAny Method
I am currently at a bit of trouble finding a way to write this generic Set method.
Due to the fact that Apex does not have a Set operation called containsAny, I decided to write my own version within ...
4
votes
0
answers
3k
views
XLS Read and Automatic CSV conversion
We have a requirement to read contents (rows) from an XLS file and upload (the file as an attachment) the same once the read and insert into custom Objects are complete. My observation after ...
3
votes
2
answers
10k
views
Currency conversion with current Exchange rates
I need to convert the Currency from EURO to USD , I am using the fields are
TestCurrency__c - Currency
CurrencyConvert - Formulafield(Currency datatype)
My Organization Corporate Currency is "EURO"....
3
votes
1
answer
12k
views
Best way of generating a random number
In order to get fake IDs for testing needs I wrote something that works and is reusable, but I'd like to know if there is better ways because my code seems heavy.
n is the total caracters of the ...
3
votes
1
answer
6k
views
Can i get the Lead ID once it has already been converted?
My BI colleague asked me to put if I can 2 new fields on account, both related with the lead that this account was before conversion. One is the Creation Date and the other is the ID of the lead.
I ...
3
votes
2
answers
1k
views
Map Key Prefix to Object Label?
In my class I have 2 lists and I am displaying the results on a Visualforce component page.
I would like to add a column on my VF page where the value displayed is determined by the first 3 letters ...
3
votes
1
answer
195
views
Upload .csv file to salesforce without converting its original encoding
I have created a functionality wherein I can upload a csv to salesforce. The problem I have at the moment is that when I try to upload an ANSI encoding, an error will occur 'Blob is not a valid UTF-8 ...
3
votes
1
answer
286
views
How can a trigger distinguish a contact field was updated during lead conversion?
My organization protects certain fields on Contacts of Record Type X from being edited, as these contacts are imported from an external system. In addition to using locked-down page layouts, we have a ...
3
votes
0
answers
1k
views
What method can be used rather of "getBytes()" in salesforce, this method basically changes string to byte
Below is code snippet from C# which needs to be converted in Apex:
var key = Encoding.UTF8.GetBytes("string");
2
votes
2
answers
2k
views
How can I create Opportunity Validation Rules without breaking Lead Conversion?
In our Salesforce process, our Opportunities have a custom Picklist field called 'Vertical' to track the industry segment of each Opportunity. I'm trying to make this a required field.
I'd like to ...
2
votes
1
answer
2k
views
How can I get the User ID from a text field which has the user name? Can I get it using a formula field?
I am trying to populate the "Recruiting Lead" field which a lookup field.
My use case is that when a new lead enters the system via referral, i.e Channel is Email Referral, Source is Email, ...
2
votes
2
answers
582
views
Validation rule on lead to prevent conversion
Was hoping someone could help with the following:
I would like to prevent a user from Converting a lead that does not have
1. at least 1 alpha character (upper or lower case) - (A-Z) or (a-z)
2. Or ...
2
votes
1
answer
966
views
Marketing Cloud Conversion Tracking Pixel Issue
I was wondering if anyone could help. We've stored the link variables in a cookie and are passing them through with the following link (below) in the pixel on checkout complete. But, it appears none ...
2
votes
0
answers
89
views
conversions problem
We have installed the complete code in every page of our site, before closing the body tag, we have also installed the conversion code on our website, the code retrieves the information, but we do not ...
2
votes
1
answer
199
views
Default lead conversion doesn't work when there is a saveUrl parameter in the url
I created a custom convert button for leads like that : /lead/leadconvert.jsp?retURL=%2F{!Lead.Id}&id={!Lead.Id}&saveURL=/apex/MyPage?id={!Lead.Id}
The button is present on the standard Lead ...
1
vote
4
answers
3k
views
Integer to ASCII conversion
I'm trying to convert an integer into its corresponding ascii value but getting different result than what I get in java.
Java
int c = 5032;
char c1 = (char)c;
System.out.print('==>' + c1);
//...
1
vote
2
answers
803
views
Convert DateTime from one TimeZone to Another?
I'm sending out an Email notification using a Trigger every time an Appointment is set (an Event is created).
The User who's creating the Event is generally not the same as the Owner of the Event, i....
1
vote
1
answer
2k
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 ...
1
vote
2
answers
759
views
Conversion Integer to Roman Numeral
i want to convert integer to roman numeral.
As we know, format for roman numeral is like this:
1 = I
5 = V
10 = X
50 = L
100 = C
500 = D
1000 = M
For example, if we have number 497, it will be ...
1
vote
2
answers
1k
views
Existing Account not matching during Lead conversion process
I'm having an issue with existing account matching during the Lead conversion process.
In this example, I am using the Standard Lead Duplicate Rule; with a custom account matching rule with the ...
1
vote
1
answer
1k
views
ExactTarget Conversion Tracking issues
I am working with a script to collect conversions and pass into ExactTarget for reporting. For some reason the conversion is not tracking back to ExactTarget even though there are no errors:
document....
1
vote
1
answer
1k
views
Invalid date and time error [duplicate]
I have a @restResource that's receiving a JSON payload as a string. I am taking that payload and placing it into a Map<String, Object> variable. I'm trying to save the date/time into a variable ...
1
vote
1
answer
382
views
Is there an automated way to add conversion="true" tag?
I am onboarding a new SFMC account and none of their links have been set up as conversion tracking links and this is a request of theirs. Is there a way, possibly using %%_AdditionalEmailAttribute%% ...
1
vote
0
answers
104
views
Salesforce record to Excel
So I'm trying to build a Visualforce page that takes some data from an individual record, displays it in a table and populates the appropriate fields, as well as leaving some fields empty, and exports ...
1
vote
1
answer
802
views
Data type conversion: Incorrect parameter type for function 'ISPICKVAL()'. Expected Picklist, received Text
I recently performed a data type conversion from text to pick list. So now my field is of data type pick list. It will be used on task records when the record is dynamically created by python ...
1
vote
0
answers
230
views
Conversion Tracking Extract empty
I am trying to do the Tracking Extract (Conversions) from Salesforce Marketing Cloud. I'm fine with the process of doing it, but when it falls into the FTP the data is empty. Has anyone else ...
1
vote
1
answer
2k
views
In Lead conversion, existing Account and Opportunity standard and custom field values are not visible in lead convert page
Created Lead with company name which is already available in the Account.
Then I converted the lead to Account and Opportunity.
In lead convert page I selected the existing Account, In Account compact ...
1
vote
0
answers
734
views
SetUserInfo for Collect Tracking Code from subscriber level data pulled from appended URL
I am attempting to define the user info inside the js needed to SetUserInfo for the Collect Tracking Code implementation.
<script type="text/javascript">
_etmc.push(["setOrgId", "MID"]);
_etmc....
1
vote
0
answers
1k
views
Conversion tracking in Email (Marketing Cloud) not working - Please help
When creating a button with a link in Marketing Cloud content builder there is the option to add a link URL, Title and Tracking Alias and a 'conversion tracking link' tick box. We have set up our ...
1
vote
0
answers
178
views
Conversion Tracking in microsite
I have tried to replicate the conversion tracking that worked on the landing page to a microsite page. But somehow its not pulling the parameters from the url.
Link : https://www.example.com/j=JobID&...
1
vote
0
answers
96
views
Stumper: unexpected conversion behavior in multi-currency organization
I am facing an issue wherein our custom currency conversion is seemingly being short-circuited by the standard multi-currency functionality, but only sometimes. Our organization has multi-currency ...
1
vote
1
answer
119
views
I need to pass along with the dollar amount AND the Confirmation # for a transaction to ET Tracking
Is it possible to attach a confirmation number from My Website once a person transacts to ExactTarget tracking so that I'm also able to see it in the feed that comes through with the dollar amounts? ...
1
vote
0
answers
115
views
Does Exact Target block tracking on certain domains
A sandbox environment has a conversion tracking <img> tag which reports back correctly to exact target. When releasing this codebase to a pre-production instance with the same build number but ...
1
vote
1
answer
409
views
Converting date from english to spanish on an email template
I have a email template that contains date/time spell out like "Wednesday 6/17/2015". When Spanish is the preferred language, how do i convert the date into spanish??
Hi {{my.Account Name_Oppty:...
1
vote
1
answer
410
views
S4G Currency Updater
This app does not do what is expected. I've added currencies to the company profile, enabled Advanced Currency Management, entered the recommended Remote Site, and Authenticated myself as the User.
...
0
votes
1
answer
3k
views
How to convert date to yyyy-mm-dd format using ssjs without timestamp
I am trying to convert the date to YYYY-MM-DD format using SSJS. But not able to do that. Getting NAN.
var day = new Date();
var prevDate = new Date();
yesDate.setDate(day.getDate()-1);
var test = (...
0
votes
1
answer
2k
views
What is the simplest way to cast a Map<Object, List<SObject>>?
I'm trying to find the most simple way to cast a map<Object, List<Sobject>> in any other type like, String, Integer and etc..
Anyone knows how to do this?
This is my code
Map<Object, ...
0
votes
1
answer
87
views
Invalid Conversion Runtime Type List<> to Map<>
I understand I am getting this error on the map line but I do not understand why. As the method does return the list I am constructing. What am I missing about this exactly?
The dataRequest starts as ...
0
votes
3
answers
4k
views
Why Owner relationship is not available for custom objects and for some standard object like Case?
This seems to be very strange.
While we can use Owner relationship explicitly for many standard objects like Account and run this code without problems
Account a = [ select Owner.Id from Account ...
0
votes
1
answer
110
views
How can click.exacttarget.com recognize encoded email address string or relating plan string with encoded string is needed?
I have a question for encoding email address string in conversion link.
When I encode email address string using AMPScript, after clicking conversion link, can the "click.exacttarget.com" ...
0
votes
2
answers
3k
views
Convert a datetime to date in SFMC
I have an issue converting a date/time to a string format date. Indeed, I would like to change the following date format : 'mardi 15 mars 2022 4:24 PM' to this format '15/03/2022' without the timedate....
0
votes
1
answer
174
views
Collect Tracking Code vs Conversion Tracking
We are currently in the process of implementing collect code to our sites in order to be able to use with Einstein. Conversion tracking is also an ask but it seems to me they do similar things with ...
0
votes
2
answers
828
views
Convert JSONParser to SObject
I'm trying to convert a JSON file, which has information from one or more objects. I saw that one way was to transform the JSON String to JSONParser and loop to generate the objects.
I want to ...
0
votes
1
answer
770
views
Is it possible to convert numbers from Base 10 to Base Alphabet and back again using formula fields?
For shits and giggles, I am working to create a spreadsheet application (comparable to Excel, inspired by The SCells Spreadsheet) on Salesforce.com
Each spreadsheet cell will correspond to one ...
0
votes
2
answers
548
views
Conversion Tracking Data Extension
I have recently implemented conversion tracking in Marketing Cloud and I'm wondering if there's a way to capture the converted subscribers in a data extension with exporting from tracking and re ...
0
votes
1
answer
320
views
Invalid conversion from runtime type Relatie_Contact__c to Contact
I get the error:Invalid conversion from runtime type Relatie_Contact__c to Contact for my testclass. I have looked trough some similar questions but could find the answer for my case I have the ...
0
votes
1
answer
449
views
Conversion tracking IGO_purchases
Morning :-)
the checkbox "track conversion link" has been checked in email studio to track the conversion link.
I sent the email, clicked the link and checked out the order: the ...