Reputation: 877
How to create a Workflow solution in Visual Studio 2013 to send an email on new list item creation in SharePoint O365 list.
Upvotes: 0
Views: 816
Reputation: 27578
You could send email messages from a workflow in sharepoint-hosted app :
Create SharePoint Hosted APP Project.
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.
Choose the starting options accordingly. In this, you could to start the workflow automatically when an item added.
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 .
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 .
Upvotes: 1