cheehow | 2019-01-24 08:04:16 UTC | #1
Hi,
We’ve a Web Service Data Action not working, but running OK in Postman. When we run it from PureCloud UI, we are seeing 403 Forbidden.
Please find below the data action configuration:
INPUT CONTRACTS: { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": {} }
OUTPUT CONTRACTS: { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "required": [ "accesstoken" ], "properties": { "accesstoken": { "description": "Secure token provided by OMNI.", "type": "string" } } }
REQUEST: { "requestUrlTemplate": "https://exlmobility-uat.exlservice.com/HRDigitalIntegration/token", "requestType": "POST", "headers": { "Content-Type": "application/x-www-form-urlencoded" }, "requestTemplate": "userName=OMNI&password=Omni%40123&grant_type=password" }
RESPONSE: { "translationMap": { "accesstoken": "$.accesstoken", }, "translationMapDefaults": {}, "successTemplate": "{\"accesstoken\": ${accesstoken}}" }
The URL is a public URL and not having any firewall restriction. Are you able to tell why we're getting the 403 error here?
Thanks in advance!
Jason_Mathison | 2019-01-24 15:29:38 UTC | #2
Hi Cheehow,
I think that this troubleshooting page will get you fixed up: https://help.mypurecloud.com/articles/custom-action-fails-for-unexpected-reason/
In the future please export your action and attach it to your post. It saves me some cut and paste and it avoid the forum messing with things like string escaping.
--Jason
system | 2019-02-24 15:37:56 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 4414