Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [conversion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 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, ...
user avatar
0 votes
2 answers
103 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....
user avatar
  • 27
0 votes
0 answers
42 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 ...
user avatar
  • 79
0 votes
1 answer
33 views

Email conversion tracking integration

I want to track conversion informations for emails. I have found these resources: https://help.salesforce.com/s/articleView?id=sf.mc_es_conversion_tracking.htm&type=5 It seems that it can be ...
user avatar
0 votes
0 answers
206 views

How to convert blob to byte in Apex

There is a requirement that when I am trying to send images/pdfs files from salesforce to external system, the external system is expecting the content in bytes. I have working code of JAVA but not ...
user avatar
  • 45
1 vote
0 answers
44 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 ...
user avatar
0 votes
1 answer
201 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 ...
user avatar
0 votes
1 answer
585 views

How to convert DateTime format from 00:00:00 to 23:59:59

I have converted a Date into DateTime format, and it is returning me the hour format in 00:00:00 but I want it to be in 23:59:59 Date startDate = Date.newInstance(2021,2,1); This returns the output ...
user avatar
1 vote
1 answer
522 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 ...
user avatar
  • 2,444
2 votes
1 answer
1k 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, ...
user avatar
  • 23
0 votes
1 answer
123 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 ...
user avatar
0 votes
0 answers
451 views

Database.convertLead() - when validation exception fires, it is not possible to catch it

I've got implemented code where I do automatic Lead conversion. The conversion works fine, but there are some custom validation rules in the org. When these validation rules fire, an ugly message is ...
user avatar
  • 1
1 vote
1 answer
227 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 ...
user avatar
0 votes
1 answer
1k 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 = (...
user avatar
  • 11
0 votes
1 answer
100 views

Conversion Tracking for purchase behaviour + segmentation

I need to set up Conversion Tracking so I can track purchases on my website and then segment in Marketing Cloud to exclude people who have purchased in the last 6 months from my Email + journey ...
user avatar
  • 1
0 votes
1 answer
270 views

How to send particular content of pdf from VF Page in different languages?

I am sending an attachment using VF Page through batch class. I need to send Labels in PDF in different languages based on Account's organization values.
user avatar
  • 381
0 votes
0 answers
192 views

Converting a List to a Boolean

I have a query: public static List<ID> returnUserPermIds(){ List<PermissionSetAssignment> permissionSetAssignments = [SELECT PermissionSetId from PermissionSetAssignment where ...
user avatar
  • 1
1 vote
1 answer
411 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 ...
user avatar
  • 165
0 votes
2 answers
244 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 ...
user avatar
  • 111
1 vote
0 answers
145 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 ...
user avatar
0 votes
1 answer
79 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 ...
user avatar
  • 139
0 votes
0 answers
120 views

Convert object into a custom object

we parted our workflow into 4 different objects on salesforce. These are: Lead Opportunity Deal Exit Each of these objects includes different phases and I would like to create a new record in the ...
user avatar
  • 1
1 vote
1 answer
219 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%% ...
user avatar
  • 11
2 votes
1 answer
800 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 ...
user avatar
0 votes
2 answers
863 views

DateTime Convertions

I have a problem to convert String to DateTime and Insert it to a DateTime field in SF. I found out that this is work : String dateee = '2015/03/10 05:03:20'; DateTime date_time = DateTime....
user avatar
  • 961
0 votes
1 answer
539 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 ...
user avatar
0 votes
2 answers
510 views

Conversion tracking

I am trying to set up the conversion tracking using Javascript for my website. I arrive at the part where it's asking about: I wanted to ask which script that is?
user avatar
2 votes
1 answer
10k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
3 answers
3k 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 ...
user avatar
  • 13.2k
1 vote
0 answers
679 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....
user avatar
3 votes
0 answers
819 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");
user avatar
1 vote
0 answers
824 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 ...
user avatar
0 votes
1 answer
34 views

Retrieve email conversions

Is there a way to retrieve email conversions stored in tracking data in Marketing Cloud and put these information into a Data Extension using SQL Query?
user avatar
  • 574
0 votes
2 answers
491 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 ...
user avatar
  • 25
0 votes
1 answer
36 views

Manually Add conversions in Marketing Cloud/SF

While waiting for conversion tracking to be implemented we sent an email and are using Google Analytics to track conversion. Is there a place where I can manually type in the number?
user avatar
1 vote
2 answers
593 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 ...
user avatar
  • 57
0 votes
1 answer
291 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 ...
user avatar
  • 31
3 votes
1 answer
217 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 ...
user avatar
0 votes
1 answer
3k views

Implement Conversion Tracking with Data Extensions

I'm currently trying to implement the conversion tracking feauture (http://help.marketingcloud.com/en/documentation/exacttarget/tracking/conversion_tracking/implement_conversion_tracking/) available ...
user avatar
1 vote
0 answers
168 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&...
user avatar
2 votes
0 answers
74 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 ...
user avatar
0 votes
1 answer
426 views

How to associate contact with last campaign upon Lead conversion via Campaign

I have a question around Lead conversion, which is associated with multiple campaigns.The goal is to associate the converted contact with the latest campaign sent out to the Lead. We are not using ...
user avatar
  • 15
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); //...
user avatar
  • 143
0 votes
1 answer
231 views

Set the currency of the records to be fetched using SOQL

I have a situation in a multi currency org. I have Booking Object as child related to Opportunity Object. On a Visualforce page I want to show list of Bookings related to the a Opportunity. Problem :...
user avatar
  • 1,464
1 vote
0 answers
91 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 ...
user avatar
0 votes
1 answer
102 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" ...
user avatar
3 votes
2 answers
906 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 ...
user avatar
3 votes
1 answer
183 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 ...
user avatar
  • 1,213
0 votes
1 answer
3k views

Analytics / Conversion tracking

Has anyone been able to make this script work? http://help.exacttarget.com/en/documentation/collect_code/install_collect_code/track_conversion/ My understanding is it should work with the collect ...
user avatar
  • 21