You need to sign in to do that
Don't have an account?
Yao Lin 8
Invalid Type in Inbound Email Service
Hello,
I am new with Apex and tried to create an inbound email service in salesforce.
First of all, I receive an email. I need to look for a serial number on the email content to match the serial name which is already a record in Salesforce. If email bady contains "FULL OUT", it updates field Status (API: Status__c) on a custom object "Container(API: Container__c)".
How can I write the Apex code? Please help.
I don't know how to write code to look for tried to write a simple code to insert the record, received 2 error messages:
1. line 5: invalid type: Container
2. line 6: Method does not exist or incorrect signature: void containder() from the type UpdateContainer()
I am new with Apex and tried to create an inbound email service in salesforce.
First of all, I receive an email. I need to look for a serial number on the email content to match the serial name which is already a record in Salesforce. If email bady contains "FULL OUT", it updates field Status (API: Status__c) on a custom object "Container(API: Container__c)".
How can I write the Apex code? Please help.
I don't know how to write code to look for tried to write a simple code to insert the record, received 2 error messages:
1. line 5: invalid type: Container
2. line 6: Method does not exist or incorrect signature: void containder() from the type UpdateContainer()
global class UpdateContainer implements Messaging.InboundEmailHandler{ global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope){ Messaging.InboundEmailResult result = new Messaging.InboundEmailResult(); string containerName = email.fromName; Container container = new Container(Name=containerName); insert container(); return null; } }
Also on line #6 () is used for calling methods, and has nothing to do with variables. Assuming you properly initialized a variable named 'container', then you just do:
Please mark this as the correct answer if it helped you!
All Answers
Also on line #6 () is used for calling methods, and has nothing to do with variables. Assuming you properly initialized a variable named 'container', then you just do:
Please mark this as the correct answer if it helped you!
Any chance you know how to look for a serial number on the email content that matches a record on Salesforce?
Make sure you provide as much details and information as possible on the new question so I or someone else can help you more efficiently/faster.
Thanks!