REST API Web service returning null
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):
0