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

REST API Web service returning null

Accepted answer
102
Views
3
Comments
in Sales 3 comments

Summary:

REST API Web service returning null

Content (required):

def WService = adf.webServices.XX_OSS_GetEmailDomain

def Headers=['Content-Type' :'application/json','REST-Framework-Version' :'2']

WService.requestHTTPHeaders = Headers

WSResponse = WService.GET()

println('Response inside Object trigger is : '+WSResponse)


URL of web service XX_OSS_GetEmailDomain is : https://{Instance URL}/crmRestApi/resources/latest/accounts

The code is written inside a Object Trigger and is getting executed but response is coming as null.

Here WSResponse is coming as null. Why is it so ?



Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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