0

I am getting a string from rest callout and my webservice received this string and store in a LongTextArea field

. Received output :

Custom Lightning Navigation Buttons,1,2,Recruiting App Package,1,0,Salesforce Connected Apps,1,7,Trailhead Superbadge - Security,1,0

Desired Output:

Custom Lightning Navigation Buttons, 1, 2

Recruiting App Package, 1, 0

Salesforce Connected Apps, 1, 7

Trailhead Superbadge - Security, 1, 0

How can i do this either code or any salesforce functionality?

  • How do you plan (on what basis) to split this single string into multiple values ? – Vijay Ganji Jun 12 at 9:48
  • after 3rd " , " – Gourav Saini Jun 12 at 11:00
  • What have you tried so far? There's a couple of different approaches with Apex that would work, either using split() or regular expressions. Please edit your question to show your work so far. – David Reed Jun 12 at 11:29
  • Ohk Look , I converted list into string in my callout class then serve it to for service class ,service class receive string and know i m able to update a field with this value easily . In that list i had Installed package information like package name , minor version, major version . >>>>>>>>>>>Custom Lightning Navigation Buttons,1,2,Recruiting App Package,1,0,Salesforce Connected Apps,1,7,Trailhead Superbadge - Security,1,0 . This is my output ,Now i want to seprate each package information ..........?? – Gourav Saini Jun 12 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.