Skip to main content
Microsoft Dynamics NAV forum
Suggested answer

Adjuntar dos documentos externos en un correo

editSubscribe (0) ShareShare
ReportReport
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;

Categories:
  • 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

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans