EditMakeDocLink Not working!

Hi,

I have written the following code to fill in all the fields of the mail memo.

All the fields are getting filled in as expected, except that the Document link is not getting attached.

Please let me know if anybody knows why it is not working.

SendTo := “abc@def.com”;

Subject := “Review”;

@PostedCommand([MailComposeMemo]);

@PostedCommand([EditInsertText]; SendTo);

@PostedCommand([EditNextField]);

@PostedCommand([EditNextField]);

@PostedCommand([EditNextField]);

@PostedCommand([EditInsertText]; Subject);

@PostedCommand([EditNextField]);

@PostedCommand([EditInsertText]; “Hi,”);

@PostedCommand([EditInsertText]; @NewLine+@NewLine);

@PostedCommand([EditInsertText]; "Please review the following document → ");

@PostedCommand([EditMakeDocLink]);

@PostedCommand([EditPaste]);

@PostedCommand([EditInsertText]; @NewLine+@NewLine+“Thanks,”+@NewLine);

Thanks so much,

Venky

Subject: EditMakeDocLink Not working !!

The focus is on the Memo when you create the doclink. I can’t see, though, why you aren’t just using this @MailSend to create and send the doclink message.

Subject: RE: EditMakeDocLink Not working !!

I want the user to edit the contents if required.That is the reason why I am not using @mailsend.

Please let me know if I can use @mailsend and still give the edit access to the user for any modifications required.

Thanks,

Venky

Subject: RE: EditMakeDocLink Not working !!

No. Just remember to create the doclink BEFORE you compose the memo. It will still be on the clipboard when you paste.

Subject: RE: EditMakeDocLink Not working !!

When I did copy the line @Command([EditMakeDocLink]);

before composing the mail, it is copying the words “@Command([EditMakeDocLink]);” in place of the link.

Hi,

Please review → @Command([EditMakeDocLink]);

please advise.

Regards,

Venky

Subject: RE: EditMakeDocLink Not working !!

y don u try using this @MailSend…it’s more easier

@MailSend( sendTo ; copyTo ; blindCopyTo ; subject ; remark ; bodyFields ; [IncludeDoclink] )

Subject: RE: EditMakeDocLink Not working !!

AS I mentioned in my previous message, the user needs to edit the message before sending it(sometimes)

With @mailsend , it is not possible to display the message before sending the mail, right?

Subject: EditMakeDocLink

There are two ways to do what you are wanting to do. Both ways require you to make sure your document is saved first. Additionally, if you are using it in a view, your document must be in at least Read or Edit mode.

The First method is to use the following at the end of your MailComposeMemo code:

@Command([EditInsertFileAttachment] ; “\\your server here\path\path\path\path\document name”

A better method requires just a few more steps added to what you have tried.

  1. In your MailComposeMemo code at the top, declare your DocLink as a temporary variable, something like this:

tmp := @Command([EditMakeDocLink])

(That first copies the doc into the users clipboard BEFORE your mail code is run.)

  1. Then at the end of your MailComposeMemo code enter the following:

@Command( [EditPaste] )

(Obviously that pastes the doc into your memo.)

That’s all you need.

–Cheers.

Subject: RE: EditMakeDocLink

Thanks Jeremy.

Great instructions!