Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Adjuntar dos documentos externos en un correo

Posted on by 5

Buenos tardes

Estoy intentando crear un proceso para adjuntar dos documentos este es el codigo pero no funciona, si adjunto cada unos por separado funciona pero los dos no, alguien puede ayudarnos???

SendEMAILWEB(VendorNo : Code[20])

RutaInforme := SaveReportAsPDFWEB(VendorNo);

IF COMPANYNAME = ‘IC Construction’ THEN
RutaManual := ‘\\navision\FTP\IC\ManualWEB.pdf’
ELSE
RutaManual := ‘\\navision\FTP\EFFI\ManualWEB.pdf’;

IF ( CompanyInformation.GET() = TRUE ) THEN;

Vend.GET(VendorNo);
Filename1 := ‘ManualWeb.pdf’;

WITH EmailItem DO BEGIN
Init;
VALIDATE(“Send to”,Vend.”E-Mail”);
Subject := SubjectTxt;
SetBodyText(STRSUBSTNO(BodyTexto, CompanyInformation.Name));

“Attachment File Path 2” := RutaInforme;
“Attachment Name 2” := STRSUBSTNO(FileName,VendorNo);

“Attachment File Path” := RutaManual;
“Attachment Name” := STRSUBSTNO(Filename1,VendorNo );

Send(FALSE);
END;

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Adjuntar dos documentos externos en un correo

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans