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

How to convert French text to English text
HI,
My logic is like if(userprofile=="systemadminstrator") then do something....
But one of my clients is having french language settings, so my logic is getting failed can anyone help me in getting out of it....
My logic is like if(userprofile=="systemadminstrator") then do something....
But one of my clients is having french language settings, so my logic is getting failed can anyone help me in getting out of it....
If you have selected french language then this will not effect on coding but this will effect on your data present in salesforce i.e change systemadminstrator Administrateur système so write your code like following and checked that debug log is running inside block
if(userprofile=="system adminstrator" || userprofile=="Administrateur système") {
system.debug('Yaaooo!!');
}
Best Regards
IQRAR AHMED
Senior Salesforce/.Net Developer
I would recommend using ProfileID instead of Profile.Name. That way, it will not matter what the text value of the profile is.
Thanks,
Phil
Hello,
there are clients from many countries who are using our APP, so I want get langugage of the user orgnazation and need to convert the name to their language !!
how to ID works ? @phil weinmeister is it same or any organization ?