Skip to Content
Technical Articles
Author's profile photo Syed Haider

Trigger workflow by OData service


This blog is define to trigger the workflow by custom application through Odata services it is a simple workflow with user decision, when a user approve the workflow the record will be created in database table.

To Create an Odata services check my first blog


  1. Goto Tcode SWO1 to create a custom business object

  • Create two events SAVE and EDIT


Add the key fields of the object


Generate the business object



Goto Tcode SWDD and create a workflow.

Define its starting events


Create a container element


Assign the agent

Assign General Task to agent (The one who is triggering will get notification in its own inbox)


Create a user decision





Now Goto Create_entity method and add this FM


Also write this FM in update_entity


Now Create a Method and Add in the Activity

Activate the workflow



By following this blog you can trigger the workflow whenever you create or edit the data from your fiori application.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo sweta agrawal
      sweta agrawal


      Nice Blog ! I have a similar requirement in my company, but I am still a little confused, can we connect plz ?