This question already has an answer here:
i am working on SharePoint online and i have got one requirement of workflow which is almost 10-12 level.
if it is SharePoint on-premise then i can achieve it by sequential workflow using visual studio. but i have no idea how to do the same in the SharePoint Online Do i need to go by app model (SharePoint hosted/provider hosted app)? if i will create app also how it will trigger the workflow automatically when a new item would be added on a SharePoint List.
eg: if i am creating a list item and List workflow it will be triggered when ever a new item will be created or item will be updated.
In My case Item created from List is also from different application using CSOM?
My question is how app will be triggered while creation/update of List item