SendEmail icon indicating copy to clipboard operation
SendEmail copied to clipboard

Recieving Error: No Content Version could be found with the ContentDocumentId: 0691H00000HTVItQAP

Open samphif opened this issue 3 years ago • 4 comments

In my flow, I'm currently trying to send an email with an object relative attachment that I'm first querying, but I'm continuing to receive this error message even though I have confirmed there is a valid Content Version.

Exception Type: GLSendEmail.SendEmail.SendEmailException Exception Message: No Content Version could be found with the ContentDocumentId: 0691H00000HTVItQAP Stack Trace String: Class.GLSendEmail.SendEmail: line 361, column 1 Class.GLSendEmail.SendEmail: line 75, column 1

Debugging Steps:

  1. Checked that no other errors were present in information, removing the content document ids
  2. tested with a collection, string of ids, inserting directly ids into the send email apex action, and versions
  3. ran debug logs but couldn't identify a specific flaw.
  4. checked in an invokable flow vs a scheduled flow.

is this functionality still working? are there limitations to it being used when attaching to a record/using templates? image

samphif avatar Aug 27 '21 00:08 samphif

There is/was an issue where the code didn't handle content document IDs in the attachment list. This has been reworked to handle CV, CD and Attachment ids nicely now. It will be available soon

mike-cleaver avatar Dec 21 '22 22:12 mike-cleaver

Noted

samphif avatar Dec 22 '22 12:12 samphif

Code is updated and a new managed package will be out soon. Do you wanna test the code as is @samphif or do you wanna wait for that package?

mike-cleaver avatar Dec 22 '22 22:12 mike-cleaver

I can wait for the package. Thanks

On Thu, Dec 22, 2022 at 5:55 PM mike-cleaver @.***> wrote:

Code is updated and a new managed package will be out soon. Do you wanna test the code as is @samphif https://github.com/samphif or do you wanna wait for that package?

— Reply to this email directly, view it on GitHub https://github.com/danhowellnz/SendEmail/issues/9#issuecomment-1363417998, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMQAAD4RJT7IHTEV5GP4CZTWOTL47ANCNFSM5C4OKVBQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Thank you,

Sam Phifer

samphif avatar Dec 23 '22 00:12 samphif