You need to sign in to do that
Don't have an account?
Raksha Narayan
Auto Response Rule from Apex
Is it possible to create Auto Response Rule from Apex? Please let me know
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
What is the use case you are looking at? Basically Auto-response rules let you automatically send email responses to lead or case submissions based on the record’s attributes.
You could write a trigger for this functionality. Thanks
MetadataService.MetadataPort service = createService();
MetadataService.AutoResponseRules resprule = (MetadataService.AutoResponseRules) service1.readMetadata('AutoResponseRules', new String[] { 'AutoResponseRule' }).getRecords()[0];
MetadataService.RuleEntry[] rulesentrylist = resprule.autoResponseRule[0].ruleEntry;
system.debug('resprule.autoResponseRule'+resprule);
The above debug log is giving the result as null even when there are auto response rules.