Link by E-Mail

SamsonSamson Member Posts: 42
hi

anybody know how I can use native Navisions "Link bu E-Mail" function via C/AL code.

I write function for automatic sending email and I need to send some reports url as attachement(i.e same as doing by selecting File->Send->Link by Email).
My customer would like the link to open up Navision and pull open a specific document.

any assistance are welcome

Samson

Comments

  • girish.joshigirish.joshi Member Posts: 407
    The only way to do directly mimic the functionality of File->Send->Link by Email is to use SendKeys to mimic sending that user input to the client.

    However, there are a couple of other ways to do this directly.

    You can run the report through code and call the save as html function.

    then you create a c/al automation variable for mailing

    start creating an email message through code using the automation's api

    then you create an instreamobject and read the data from the file you created and put that into the message body of the the email.

    and you have total control!

    functionally, this is exactly the same as what navision does... fairly easy to do.
Sign In or Register to comment.