function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
komathipriyakomathipriya 

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

Hi 

 

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

Hi,

 

You can use split method in String class.

 

refer following link

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_string.htm

 

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.