You need to sign in to do that
Don't have an account?

Using SubString Function in a S-Control
Can someone take a look at this piece of code?
if(dynaBean.Product2.ProductCode == '25PS'){
updateAccount.PowerSystem__c = 1;
if(PowerSystem.substring(0,4))== 0 isChanged )= true;
}
What is the correct technique of using substring function in the Salesforce. I want to say, if the Product Code of the Product Name – POWERSYSTEM starts with 25PS then it should place a check mark.
Could you suggest please?
if(dynaBean.Product2.ProductCode.substring(0,4) == '25PS'){
updateAccount.PowerSystem__c = 1;
if(power == 0) isChanged = true;
}
Hope this helps