简体   繁体   中英

Create a workflow solution to send an email on new list item creation in SharePoint

如何在Visual Studio 2013中创建工作流解决方案以在SharePoint O365列表中创建新列表项时发送电子邮件。

You could send email messages from a workflow in sharepoint-hosted app :

  1. Create SharePoint Hosted APP Project.

  2. Create list workflow. Select the list on which you want to run the workflow, and creating new "WorkflowToHistory" and "WorkflowTaskList" for storing workflow history and task info.

  3. Choose the starting options accordingly. In this, you could to start the workflow automatically when an item added.

  4. Complete the workflow ,you should expand the SP – Utilities tab on the Toolbox then drag the Email activity onto the designer to send the email .For this part ,please click here for how to detail steps and refer to this link for a video .

  5. Deploy the app and testing .

In addition , since we are creating workflows in SharePoint Apps. However this has been limited to the workflows living exclusively within the AppWeb where the app was installed. If you wanted to have the workflow run in a regular SharePoint site, such as a Team Site, or a non-AppWeb site , for example, deploy Workflows to Host Web , you could deploy as Integrated Workflow Apps . Click this article about how to deploy site/List Workflow to host web , you could focus on list workflow part .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM