Activity Forums Salesforce® Discussions How to read email and Phone number in pdf or any attachment file and save Data in salesforce?

  • Deepak

    Member
    December 11, 2019 at 4:18 pm

    for (Messaging.Inboundemail.BinaryAttachment bAttachment : email.binaryAttachments) {

    Attachment attachment = new Attachment();
    // attach to the newly created contact record
    attachment.ParentId = contact.Id;
    attachment.Name = bAttachment.filename;
    attachment.Body = bAttachment.body;
    insert attachment;
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos