You need to sign in to do that
Don't have an account?
Splitting text into multiple fields
Hi,
On our webform we are capturing a lot of data that we want to try and make use off in Salesforce. The forms are comming from our marketing system (Eloqua).
An example of what we get:
a0TD0000008NSnbMAG|To purchase products or services^\a0TD0000008NSmnMAG|Fixed Stock^\a0TD0000008NSnCMAW|USD $0-5m^\a0TD0000008NSnHMAW|Consultants ^\a0TD0000008NSnMMAW|Not applicable^
the record ID is the “question” – held on a custom object of us called Project Profiling
then there is a pipe
then the answers (either single or multi select)
^ separates the multi select answers
^\ separates the next question
Basically I want to be able to see on a project attendance:
Q1: Question (text) - answer/s
Q2: Question (text) – answer/s
Etc...
Any Ideas on if this can be achieved?
Thanks,
Michael
You can use the split function to break up the data you are receiving from Eloqua. Here's a simple test class I wrote to guide you in your effort. The split function takes a regex, so if you are escaping characters, you have to escape the escape(!) to ensure the regex gets the correct string passed into it.