Send email with record summary as PDF attachment

Send email with record summary as PDF attachment

I want to create a sendmail function that includes a record summary attached as PDF.
My current code is:
sendmail
[
    from: zoho.loginuserid
    to: input.Email
    subject: "Email"
    message: "Email"
    Attachment: template:OSClientes(Record Summary name) as PDF
]
}
Thanks in advance