Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
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;

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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans