You need to sign in to do that
Don't have an account?
divya1234
store record type id and name fin the custom setting and use custom setting values in trigger
i wrote a trigger which is use to create a record on case satus update, but now i have to store all record types in custom setting (so that it is easy to add or remove) based on requirment ,can someone please help me to create custom settings ,i am not sure ow to call custom setting under if condition.
Thanks in advance
Thanks in advance
1. Create list custom setting with fields RecordTypeID__c and RecordTypeName__c. (Ex: ist custom setting - CaseCSRecTypes__c)
Please use this custom setting as in below code!
NOTE: If you're thinking of using list custom settings, consider using custom metadata types instead.
Unlike list custom settings, you can migrate the records of custom metadata types using packages or Metadata API tools.
Please let me know if it helps OR need more information!
All Answers
1. Create list custom setting with fields RecordTypeID__c and RecordTypeName__c. (Ex: ist custom setting - CaseCSRecTypes__c)
Please use this custom setting as in below code!
NOTE: If you're thinking of using list custom settings, consider using custom metadata types instead.
Unlike list custom settings, you can migrate the records of custom metadata types using packages or Metadata API tools.
Please let me know if it helps OR need more information!
I think using custom metadat would be a good idea. what custom field i should create while using custom metadata? and how i can call in trigger
Here is my requirment...
I am creating caseemail record for cetain case status and record type ,i have create record for satus and record type combitions. Also after creating a record i need to set on filed case notificatios = some value.
Currently i created recordtype name, record type id ,status and notification field,but not sure how i can use tis fileds in my code , can you please give me some idea on that.
Thanks in Advance
Please have a look on the below code!