Legacy Dev Forum Posts

 View Only

Sign Up

ServiceNow Web Services Data Action Auth

  • 1.  ServiceNow Web Services Data Action Auth

    Posted 06-05-2025 19:26

    jon.nolan | 2024-10-04 16:50:31 UTC | #1

    I am following the document (https://help.mypurecloud.com/articles/how-to-use-the-user-defined-oauth-credential-type/)" to create a data action, which is trying to send a request to serviceNow with oAuth. When following the GC how to, I get it set up and saved, but fails out.

    ![image

    690x223](upload://2LruyeUlu0AjH6lkW8yyCGBRyZ4.jpeg)

    ![image

    690x353](upload://eSP7jLE6VE3ZsI4nbLT9QWgJtnU.png)


    tim.smith | 2024-10-04 16:54:38 UTC | #2

    It appears you've set the content type to application/json but are instead sending form data in the body.


    jon.nolan | 2024-10-04 16:56:55 UTC | #3

    Hey Tim. Sorry, I initially had it as Content-Type": "application/x-www-form-urlencoded". We switched because we had iniitally gotten a content-type error.


    jon.nolan | 2024-10-10 16:02:31 UTC | #4

    Still looking for a solution to this. Anything we can try?


    Adrien_Boutet | 2024-10-15 15:27:38 UTC | #5

    Hi Jon,

    Try with granttype : password instead of clientcredential

    Here is my config - instance no longer active, don't worry for clear password :slight_smile:

    ![1

    451x471](upload://bt8ncqrKZ7xiEUbxDH6nak7y83x.png)

    ![2

    620x278](upload://9rEV7v3ml4cZMbDEK9Ucco9TFhm.png)

    ![3

    690x67](upload://64DzmGhPAgIApTzKiJPldg7V8lq.png)

    ![4

    690x65](upload://e0JOv2uaeyHgM2lgJtfLejVpChD.png)

    Adrien


    jon.nolan | 2024-10-15 15:28:24 UTC | #6

    Thank you. Will give that a try now!!


    RobertWit | 2024-10-24 13:42:41 UTC | #7

    This was winning information. Thank you for the response! Works great!


    system | 2024-11-24 13:42:23 UTC | #8

    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: 29707