cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering Web Service from out of the box BO

Former Member
0 Kudos

Hi all,

I want to trigger an external web service from account BO.

for example, each time the "Save" button is been clicked, C4C will trigger the WS.

I know that for a custom object I can create a custom action for triggering the WS, and add it to the BeforeSave event or another event.

However, this is not a custom BO, so is there a way to add custom action to account BO without using embedded component?

Thanks,

Dror.

Accepted Solutions (1)

Accepted Solutions (1)

NagaPrakashT
Contributor
0 Kudos

Hi Dror,

You can do like this.

1. Create a custom solution in CAS

2. Upload the external WSDL file into the solution

3. Create Communication System,Communication Scenario and Communication Arragement for the web service.

4. Create a "BeforeSave" ABSL script file for the Account BO

5. Trigger the web service in the script file.

These videos may help you

SAP Cloud Dev: Integration - 2 - Provide Web Service - YouTube

SAP Cloud Dev: Integration - 4 - Invoke External Web Service - YouTube

Thanks,

Naga

fceylan_hs
Participant
0 Kudos

videos are hidden. can you provide an updated video?

Answers (1)

Answers (1)

Former Member
0 Kudos

Only esf2 BOs allow custom actions. Horst created a list what is and what is not in c4c. For your reference the BP (account) is not esf2 based.

What this means is you cannot trigger code via a button ( since actions are what allow you to do this).

The save is a unique situation where it triggers a BO save. Because of this you can just add the code to the before save exit of the account XBO.