Saturday, May 2, 2015

Send Email with Contents of List Item (not from workflow)

Hi Echo Train,

I would still look at using a Workflow for this. Easiest option to setup and maintain, and you can still enter an email (or multiple emails) on demand.

For the List Workflow click on Initiation Parameters and add one with Field name of Email for example.

  • Description (something like): "Please enter the email(s) you wish to send the list item information. Separate each email with a semi colon ;"
  • Information type: Single line of text
  • Default value: leave it blank

Next add a Send an Email action with the following settings:

  • To: Select from existing Users and Groups > Workflow Lookup for a User...
  • > Data source: Workflow Variables and Parameters
  • > Field from source: Parameter: Email
  • > Return field as: As String

Then setup your Subject and Body using the Fields from the Current List Item

Save the Workflow then go back into the Workflow settings and ensure that: Allow this workflow to be manually started is the only option selected.

Publish the workflow and your users should now be able to click on the Workflow with the ability to enter one or more emails.

There are other options apart from using a Workflow such as setting up an Action with some ECMA script, but much more difficult to create and maintain, which in this instance I would still opt for the Workflow solution.

No comments:

Post a Comment