SendEmail
SendEmail copied to clipboard
Recieving Error: No Content Version could be found with the ContentDocumentId: 0691H00000HTVItQAP
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:
- Checked that no other errors were present in information, removing the content document ids
- tested with a collection, string of ids, inserting directly ids into the send email apex action, and versions
- ran debug logs but couldn't identify a specific flaw.
- 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?
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
Noted
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?
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