Skip to main content
1 of 3

Could you please help me to write a formula Salesforce

Coud you please help?

I need convert this SQL code to Salesforce Forula left(Price_Lookup_Id, case when charindex(':', Price_Lookup_Id) = 0 then len(Price_Lookup_Id) else charindex(':', Price_Lookup_Id)-1 end

Do you have any idea how to rewrite to formulas sytnax?