+ Start a Discussion

How to get the part of sting from the group of string



how to get the sting "ap1" from the "https://ap1.salesforce.com"

using the standard functions like And Find etc..

This is to create a custom field to get the value "ap1".



Chamil MadusankaChamil Madusanka



You can use split method in String class.


refer following link




If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.