Skip to Content
Technical Articles
Author's profile photo Jerry Wang

Step by step to create web service in Cloud Application studio and bind it to a custom action in standard BO

My series of Cloud Application Studio Blogs

I have a requirement to execute some custom action modeled in standard BO, CustomerQuote.
The background is, I have created a new extension field with the following possible entries:
I would like to change this extension field in third party system outside C4C, using web service or OData service.
I have created a new action in BO CustomerQuote:
And implement this custom action, simply setting extension field to a constant value ( for example 4 represents “Production in process” ).
First I try to create a new Custom OData service, and would like to bind my custom action setProductionInProcess to a OData function import:
Soon I realized it’s not feasible since I found that only standard actions of BO Customer Quote are supported.
Then I try web service. Create a new Web service via wizard:
Choose my custom action setProductionInProcess from drop down list:
Create a new UI view for web service Authorization control. Only those user who are assigned with this view could have access to this web service.
Activate the web service and download the WSDL file for later usage.
Now create a new work center and put the web service just created to this work center.
Assign this new work center to the business user who will consume the web service.
As the last step, import the WSDL file in SoapUI application and fire the web service. In the screenshot below, my aim is to execute the custom action on Sales Order 9000000318 via web service execution.
The web service execution result shows message “Action YS5XJ942Y_S9B018D81BFD966DC executed executed”, indicating that the web service is executed successfully.
Now go back to Sales Order TI page, the extension field is set as 4 – Production in Process as expected.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      Hi Jerry,


      This loooks promising, So I can create an oData from action! Btw I have for example twp BOs. IDentity BO and Sales Territory BO and i want a service which fetches SalesTerritory from User ( OData) how can I do that?





      Author's profile photo Mauricio Pinheiro Predolim
      Mauricio Pinheiro Predolim

      Hey Jerry, excellent blog series! well done!

      I'm a beginner into C4C SDK and i would like to know if it's possible to consume a third-party web service and display into C4C WorkCenter view instead of create a view and upload a file into it.