Create an e-mail with an embedded function

Hi,as you reading in subject, i’m looking for a script solution to send an e-mail that contains in his Body field a button that allows the recipient to click on it and create a new document from a specific database.

How can I insert a button with scriptcode in Body field of a new memo?

Someone of you can help me ?

Tks

Subject: profile document

One solution:

Create a button with the necessary code and copy it into the Body (rich text) field of a profile.

Then when you create your email, use CopyItem to copy the Body field of the profile document into your new mail document.

Hope this helps,

Phil

Subject: It could be, but…

Hi Phil,thank you veru much.

It could be a solution but not always the button does the same action or create the same document.

I should manage it with argouments to pass to a button.

I see it very strong.

Are you agree?

Subject: Yes, but…

…your query is vague.

In answer to the question, “Can I create a mail message with an embedded script to allow the recipient to create a document?”, the answer is yes. I’ve done it each autumn for the last few years to help the Executive team organise the Christmas party, for example. In that case, only one type of document needed to be created, and a lot of the information came from @Formula functions.

You have been given a potential solution - try it for one situation, and then work out what needs to be changed for your other situations. Just from Phil’s suggestion, I can imagine a setup in which you have multiple profile documents (or even fields on the one document) that relate to different input (user’s role or access level, or response to a prompt or pick list), each containing a different script. Or you could write one script that invokes others according to the same inputs as above.