Questions tagged [split]
The split tag has no usage guidance.
34
questions
1
vote
4answers
87 views
Cannot read property 'split' of undefined - in LWC js
I have the following LWC, when I try to add on my lightning record page got some error like, cannot read property of split.
js:
import { LightningElement, api, track } from 'lwc';
export default ...
0
votes
1answer
37 views
Passing Flow variables into apex
I have passed a string in exactly this format with a ',' delimiter (a014K000001W1wqQAC,000410001006672,500,34567) from a flow to an invocable APEX method.
public class obuTopUpTrailhead {
@...
0
votes
1answer
44 views
SFMC API Triggered Journey: Random Split
If we add the random split in 2 paths in an API triggered journey in Salesforce Marketing Cloud, where contacts come one at a time after they sign up on a website, will this ensure that equal number ...
0
votes
1answer
155 views
SSJS Split String
How to use split function in SSJS to split String?
In my case, I have given the String and , the way I want to split is as follows :
My String : I want 2 splits
dfc_1 : dfc_ and 1
dfc_45932 : dfc_ ...
0
votes
2answers
143 views
Using SQL to split a data extension into 4 mutually exclusive groups
I have a data extension that I need to split into 4 mutually exclusive data extensions. I would like to avoid using the Random data extension feature in Salesforce since I would like to refresh these ...
0
votes
1answer
349 views
Exists in whole word in Decisions Splits in Journey Builder doesn't work
I use often the operator "Exists in whole word" in the email studio to filter on a list of attributes. To do that I separate my values with a coma.
I tried within a journey but it doesn't work...
Do ...
1
vote
1answer
208 views
Is it possible to override String.split function in Salesforce Apex?
I want to override split function of String class with one more parameter.
Is it possible?
String s = 'aKey:aValue::bKey:bValue::cKey:cValue';
Map<String, String> mapS = s.split(':', 0, '::');
...
-3
votes
1answer
123 views
How to write a method to remove non alphanumerics in a string and display it in a list [duplicate]
method to remove non alphanumerics in a string and display it in a list.
public static list<string> s(){
String stg = 'ABC,DEF,GHI,JKL';
List<String> lst = stg.split(',');
...
0
votes
1answer
319 views
How to separate The Day, Month and Year attributes using SQL _Open query in salesforce marketing cloud?
I have creating TestDE Data extension using these attributes like SubscriberKey, AccountID, EventDate, Date, Month, Year attributes. And Created with same attributes using Target Data extension. Now ...
2
votes
1answer
316 views
Split a row with data separated by “,”
I need to split a row from a DE. The row contents 4 strings, and I want to see the content in a table. Right now I have some code; but doesn't work:
Script
%%[
VAR @Productos<br/>
SET @...
0
votes
2answers
209 views
Split text data by number [closed]
I need to split 10 digit number using apex. This is my input addresses
IDOC error for partner 0001204140 team
My output like below:
0001204140
2
votes
1answer
1k views
How to reproduce a unique list based on a field value
Lets say I have a list of a sObject with several records which have a some same values in a field/column. What is the fastest way to reproduce a new list with only unique values for this list.
Record ...
0
votes
1answer
68 views
Trigger to remove text before and after [closed]
I want to split text out of c.Description to populate a custom field Response_Name__c
c.Description is
"Sent on : 1/3/2018 9:24:00 PM
By User: Julie Trigger
Comment"
I want Response_Name__c to ...
0
votes
1answer
472 views
Field history tracking for opportunity split object
I have create a custom object to track field changes on opportunity split object and written trigger on opportunity split object. But I am not getting expected result for inserting new records in ...
1
vote
2answers
5k views
How To Split String by space and store each character or substring in array
How To Split String by space and store each character or substring in array
I have: String - '(1 OR 2) AND 3'
I need in this way:
String [] filterLogicSplittedbySpace=new String[]{'(', '1', 'OR', ...
0
votes
0answers
2k views
Enable Split View In Lightning
My lightning org does not have Split View enabled.
I am trying to find where it can be enabled from but with no success.
What I observed is some of my Apps has it enabled while the others don't.
From ...
0
votes
2answers
4k views
String Split method
Apex String split() results an empty list item even there is no value.
For example,
String test = '';
list<string> test1 = test.split(',');
System.debug(test1.size()); // Result = 1
so I ...
1
vote
1answer
581 views
Random data extensions: How to create more than 12
I need to split a data extension into 80 random data extensions, but have just realized that creating a random data extension from a selected data extension only allows up to 12 splits.
If any of you ...
1
vote
1answer
424 views
Marketing Cloud - Journey splitted according to email opening
how is it possible to split the journey into two branches, according to the email opening?
This is the desired steps:
Send email --> Check if the email was opened --> if yes, continue in the journey ...
0
votes
1answer
858 views
Parse HTTP Response
How to parse the HTTP Response if response string is in name value pair.
RESULT=0&PNREF=EFHP0D426A53&RESPMSG=APPROVED&AUTHCODE=25TEST&AVSADDR=Y&AVSZIP=N&CVV2MATCH=Y
0
votes
2answers
572 views
Selectlist options change not reflecting in apex class
I am facing an issue where a select list value default selected getting passed fine to controller during compile and page load. But on change simply it's even not coming on debug statement.
Apexpage
&...
2
votes
1answer
86 views
Cannot get aggregate result (or anything good) with SOQL on multiSelct picklist
I have a working aggregate result class with a wrapper. Have made a couple of data sets pulled from cases and campaigns to get aggregate results of participants of both by date and other fields. ...
0
votes
1answer
58 views
Attempt to de-reference a null object - Error in sorting list
I am getting subject line - error while I try to execute below apex code snippet
Apex Code Snippet
for(Integer index = 0; index < surveyInstanceList.size(); index++) {
Survey_Question_vod__c ...
0
votes
2answers
51 views
Question on split function on a text field
I need your help in splitting the following text.
Here is the text field : - 'Lead id of this field ref:_x12rftf001265qr.dt50:ref'
How I can split this text to get only this text 'ref:...
2
votes
1answer
238 views
split before GROUP BY soql
I have a field which has the values in the format [5 digits-3 digits]
12345-123
34646-345
12345-133
I want to Group BY this field with the just the 5 digit number only (not the complete field). How ...
0
votes
1answer
1k views
Refresh/update data extension random splits
I have made a 5 way split based on a data extension, but I can't find anywhere I can refresh this split after its made, like you can with Groups for Lists.
Anyone know if this is possible to do?
1
vote
1answer
2k views
Split by semicolon of a string not working
In below code semicolon separation not working for string with email addresses. Can someone help please?
Apex code
List<ABV_Form_Request_abv__c> Useremails= ABV_Form_Request_abv__c.getAll()....
2
votes
1answer
6k views
apex string split
Unable to split string by multiple characters.
String myString = 'abc$$$xyz';
string[] myArray = myString.Split('$$$');
System.Debug(myArray.Size());
I get result for myArray.Size = 1 and when ...
3
votes
2answers
2k views
How to automatically create Opportunity Splits through a trigger?
I am looking to automate the creation of Opportunity Splits on each opportunity as we cannot trust Sales Reps to add the Opportunity Team and Opportunity Splits accurately. So I decided to automate ...
-1
votes
1answer
1k views
How can i split the address
I need to split the address using script. This is my input addresses
1 Avenue Descartes 92350 Le Plessis-Robinson FRANCE
My output like below:
1
Avenue Descartes
92350
Le Plessis-Robinson
FRANCE
0
votes
2answers
3k views
How to place the google map address in account object?
I have created visual force pages for Google map using auto complete functionality. It's working fine in visual force page only but I need to place the account object in billing and shipping address. ...
0
votes
1answer
56 views
Split method truncating result and appending '…' in the end
String s = 'a b c d e f g h i j k l m';
System.debug(s.split(''));
above code returns (, a, , b, , c, , d, , e, ...)
am I missing something?
Please help
3
votes
0answers
44 views
Org-wide Addresses after split
What will happen with the Organization-wide Addresses after org split? Will they remain active, or become not verified or something else?
I've been searching for the answer here but with no success.
0
votes
2answers
164 views
Upcoming Salesforce server split, know the new server in advance?
Salesforce has notified us that our NA4 server will be splitting on March 21, 2015. Is there any way to know in advance what Salesforce server our production instance will live on after the split?