I am trying to create a workflow which can find email addresses from a list based on another column's value in the list and then send email to those addresses. However the only problem is while trying to create the workflow in Sharepoint designer 2013, i
get a notification saying only first value found will be used. I want all the records that have the valuein another column to be extracted. Please can anyone help as this is urgent.
According to your post, my understanding is that you wanted to create a workflow which can find all different email addresses from a list based on another column's values in the list and then send email
to those addresses in SharePoint Designer 2013.
You need to get all the items based on the specific column's value in the list, and extract the corresponding email addresses, then merge all the email addresses to a workflow variable. Finally, you can
send email to the workflow variable.
In SharePoint Designer 2013, you can use the important “Call HTTP Web Service” , “Build Dictionary” , “Extract Substring of String from Index with Length”, “Create ListItem” actions to implement the workflow.
I recommend that you can follow the steps as below to create the workflow.
Create a workflow associated to this list in SharePoint Designer 2013.
Add a new “Build Dictionary” action to define the http request header.
Add the “Call HTTP Web Service” action, click on “this” and paste your http request.
To associate the RequestHeader variable, select the “Call HTTP Web Service” action’s property, set the RequestHeaders property to RequestHeader.
In the “Call HTTP Web Service” action, click on response and associate the response to a new
variable: ResponseContent (of type Dictionary).
After the “Call HTTP Web Service” action add “Get item from Dictionary” action to get the Maximum ID.
Add “Set Workflow Variable” action to get the Minimum ID.
Add Loop Shape (Loop with Condition) to get all different addresses of duplicate columns.
Use the “Extract Substring of String from Index with Length” and “Create ListItem” actions to integrate those addresses to a string.
Add “Send an Email” action to send email to those addresses.
Start the workflow automatically when an item is created.
Here is a similar article about how to merge values to a multi-value enabled column and add item to another list based on the merged value using SharePoint Designer 2013 for your reference: