Skip to Content
Technical Articles

How to implement actions – Cloud Application Programming Model

Github repository:

To be published soon…

 

Introduction:

  • In this session, we will look at how to implement actions in Cloud Application Programming Model

 

Synopsis:

  • In OData specifications, Actions are operations exposed by an OData Service that may have side effects when invoked
  • Actions may return data
  • You can learn more about Actions in OData in the following blog – https://www.odata.org/blog/actions-in-odata/

 

Steps:

  • In this example, we have 2 entities: Projects and Users
  • There is a 1 to many relationship between Projects and Users.  So a Project can have multiple Users, while a User can belong to only 1 Project
  • We will look at how we can move a User from one Project to another
  • We have also introduced a few hypothetical business requirements that need to be met before a User can be moved from one Project to another
  • Also, we will return a custom object as the response

 

YouTube link:

 

Conclusion:

  • This video should give you a clear idea on how to implement actions in Cloud Application Programming Model
  • If you have any questions or comments, please list them below and I will be happy to answer

 

Previous post:

https://blogs.sap.com/2020/08/23/how-to-implement-functions-cloud-application-programming-model/

 

1 Comment
You must be Logged on to comment or reply to a post.