I would like to create a button or a link on a record so that it emails the details of the record either as an HTML email or a PDF. How can I accomplish that?
Hi Martin,
You can create an "Advanced Print View" that can then be used with the email script function... take anything from the product record, formatted as you like and in turn send it to someone.
Advanced Print View
http://help.autodesk.com/view/PLM/ENU/?guid=GUID-5656EE8A-2DB3-476A-AF53-BCF14541EDC4
Email Script
http://help.autodesk.com/view/PLM/ENU/?guid=GUID-BBBBAB3B-FEAE-4EB7-8D1B-29E76EC6BC65 (go to email function)
Then you can use the new "on demand script" function which creates a button to fire that email function.
On Demand Script
These are set up as a behavior...
http://help.autodesk.com/view/PLM/ENU/?guid=GUID-E1877EFA-6E07-4AB9-9A33-9B88593681E8
The ONLY challenge I see figuring out who to send it to. There isn't a prompting function (like a popup box)
You would have to have the email as a field on the item...
Hope this helps.
Thanks Brian. I was hoping there would be a way to execute a mailto and open an Outlook message window. The script below requires that I either hardcode the receiver or select it from a field on the record. The subject and message would also need to be hardcoded.
Is this the only option?
Hi Martin,
I did what you said and got an error when saving the field: There was an error processing your request.
MailTo supports "Body" as well - here is a quick reference:
http://www.labnol.org/internet/email/learn-mailto-syntax/6748/
not sure if you can inject HTML tags into that string and if the email would accept it...
Thanks Jared. This was very helpful. It wasn't until I viewed the source code behind the 'click here to email' URL that I was able to make it work. It appears that this computed field can't access my request/record number which is also a computed field. Any way around that? Also, any way to add the record URL to the email? I realize the mailto can only print text and the URL wouldn't be hyperlinked.
Lastly, what I'm trying to accomplish here is to allow for the manager of this process, or potentially an approver, to send an email to anyone they want that includes details about the record. This would allow the manager to prompt that person or ask them questions about the request or items associated with the request. The mailto is a simple way of doing that. If you have other ideas, please let me know.
Thanks @Jared for catching the double pipe as string concatenation (eg "foo" || "bar").
@Martin,
As you detemined, referencing computed fields from a computed field isn't going to work; these are dinamically generated/calculated fields.
You can use this format to define what goes out with the draft email:
<a href="mailto:userA@company.com, userB@company.com?subject=Some Subject&body=To learn about next generation cloud based product lifecycle management, please visit http://www.autodeskplm360.com/ site.">Send Email...</a>