You need to sign in to do that
Don't have an account?
Simon GAZIN
How to check the current DeveloperName in RecordType?
Hello,
I'm on a project together Trigger on Task SObject in this class Trigger a call must be made according to the DevelopperName.
I can not encode the current recovery DevelopperName.
And how to test the current DelopperName ?
Thank you.
Simon
Hi..
Hope this will help :
http://salesforce.stackexchange.com/questions/20976/how-to-check-the-current-developername-in-recordtype
Please accept my answer as a solution if my solution was helpful. This will make it available to others as a proper answer. If you felt that I went above and beyond please give me Kudos by clicking on on the star icon.
Thanks,
Cool Sfdc
All Answers
Hi,
You need yo just check in your trigger that which recordType OR developerName is that.
Thank you for your quick responce.
The code seems simple and clear compared to what I could see. But this error appear on Eclipse : Loop variable must be of type SObject
Here is my code
Hi,
I didn't understand why you doing this, to check record type developerName you can simply check
task.recordType.DeveloperName = 'DeveloperName(API Name) of record Type';
Thanks
Hit the Kudos button (star) and Mark as solution if it post helps you
Hi..
Hope this will help :
http://salesforce.stackexchange.com/questions/20976/how-to-check-the-current-developername-in-recordtype
Please accept my answer as a solution if my solution was helpful. This will make it available to others as a proper answer. If you felt that I went above and beyond please give me Kudos by clicking on on the star icon.
Thanks,
Cool Sfdc
@Subhash Garhwal
Your code retrieves the current DevelopperName ? I replace in the 'if' ?
In my system, SObject Task.RecordTypeId and SObject RecordType.DevelopperName.
@Rockz
Thank you for your help. But I'm lost with your code. I wanted to see with other reviews.
I apologize for not understanding directly. I started the Apex language there is just one month and I do not have any property identified