+ Start a Discussion
sieb4mesieb4me 

scan fields and its values inside a field.

if i have something in a field as below. I need to pull field1 and field2 and put values to respective field on case, how do i do with apex?

Thanks


[field1]
value

[field2]
value2 with 5 lines
dffdd
dff
ddfd
dfd df fd


ShashForceShashForce
Hi,

Please provide more details, as many as possible, so that I can try to help.

Thanks,
Shashank
sieb4mesieb4me
Thanks.
Basically the data will be in a field called emailbody on case.
We pull this data above and scan for field names in square bracket[ ] and values below it and put then in right field on case.
sieb4mesieb4me
i know email service is there and it allows parsin email body but in this case, we are already creating record on custom case object and from there we parse emailbody  (custom field) and put it in the standard case object ...data into respective fields