You need to sign in to do that
Don't have an account?
Patrick Hanahan
In Apex code, how can I parse an incoming email subject for a 6 digit number that is different every time?
In most of the emails I recieve, the subject contains a 6 digit "job number", which designates which assignment the email is about. Many of these emails come from the same email address, so the job number is the only way I can associate an incoming email with a specific opportunity.
Is there any way to parse each incoming email subject to look for a 6 digit code?
Is there any way to parse each incoming email subject to look for a 6 digit code?
All Answers
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm#apex_System_String_splitByCharacterTypeCamelCase