What's new in Customer Journeys?

Connect and learn more!
Service call in Groovy Script — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Service call in Groovy Script

Accepted answer
edited Nov 26, 2018 6:19AM in Visual Builder 3 comments


Having issues calling a service call in a groovy script.


There was a nice blog showing how to do this in an old version:


But this doesn't seem to work anymore.

I've defined a REST service  with one POST endpoint. 

I try calling it based on the service name:

def VBSocketUpdateService = newService("VBSocketUpdate")
def callBody = '{ "label": "UpdateSampleData" }'
def callResponse = VBSocketUpdateService.post(callBody)

But I get an error:

Exception in expression "SampleData" trigger "BeforeUpdate_Rule_0" : oracle.adf.model.connection.rest.exception.RestConnectionException Service not found
at "SampleData" trigger "BeforeUpdate_Rule_0" line 11

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!