SharePoint sends an email to the users specified in the field

I have a list of SharePoint issues and set the column (called Alert) to "Person or Group" (resolving multiple names).

I would like the system to send an email to all users listed in the Warning box if the corresponding problem has been changed.

How do I configure a workflow to send email to users indicated in the data in the Warning field (if any)? I know how to use Workflow, etc. - The "To" problem in the workflow email.

(Sorry if this item is already taken - I searched for Qaru and Googled but couldn't find the answer)

Preferably through SharePoint Designer. that is, preferably without a code.

Sincerely.

+3
source share
5 answers

I have limited experience working with SP Designer workflows, but have you tried the email action using the "Workflow Lookup" selected in the "To" field? This allows you to use specific fields from the presented list item.

+6
source

You will need to use the SPUtility.SentEmail method, which will send an email to the string that it sends from the context of the SharePoint server, saving you from writing code to send it.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.sendemail.aspx

+2
source

"Work Dynamic String" . TO. " " .

+2

, SPD , . , ( http://www.codeplex.com/SPDActivities) Windows Visual Studio.

+1

I found a workaround for the workflow to send emails to several users entered under the field type Person/Group:

  • Create a workflow variable of type String
  • Assign a variable Current Item field nameand enter a typeString
  • Then send an email to: Variable Name
-1
source

Source: https://habr.com/ru/post/1723881/


All Articles