Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Custom Data Action

    Posted 06-05-2025 18:49

    ronak.shah | 2020-08-21 18:59:00 UTC | #1

    hello , Need assistance with the following error i get.. I am integrating CRM with Genesys Cloud , created Integration with (loginUrl,clientId and clientSecret) , then under Action here is my configuration.

    { "requestUrlTemplate": "${credentials.loginUrl}", "requestType": "POST", "headers": { "Authorization": "bearer realm=\"123456\",oauthconsumerkey=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",oauthtoken=\"abcdccddddddddddddddddddd\",oauthsignaturemethod=\"HMAC-SHA1\",oauthtimestamp=\"1598025673\",oauthnonce=\"S7v85tAdNDUyv\",oauthversion=\"1.0\",oauthsignature=\"VU%3834tdcACpN2XYGpTjbfdZFHkgd8k%3D\"", "Content-Type": "application/json", "Transfer-Encoding": "chunked", "Catch-Control": "no-cache", "requestTemplate": "granttype=client_credentials" }, "requestTemplate": "${input.rawRequest}" }

    but it fails at step 8 with following error:

    *8. Execute: *authentication bearer token specified in authorization header.**

    i run the same query in Postman and it works,not sure what i am missing here ?


    Jason_Mathison | 2020-08-21 19:56:59 UTC | #2

    Hi Ronak,

    A couple of things you could try:

    You have "Catch-Control" which is probably supposed to be Cache-Control. Also, you could try switching your transfer-encoding to buffered per this article: https://help.mypurecloud.com/articles/custom-action-fails-for-unexpected-reason/

    Beyond that I would suggest double and triple checking that you are actually sending the same headers and body as you are in postman. If you confirm that then your next step is probably to open a case with customer care for further troubleshooting and reproducing your issue.

    --Jason


    Jason_Mathison | 2020-08-21 19:59:40 UTC | #3

    One other thing I noticed is that you have %s in some of your values. You might want to see about getting the original value and wrapping it in $esc.url($input) See https://help.mypurecloud.com/articles/velocity-macros-data-actions/#StringEscaping for more on this topic.


    ronak.shah | 2020-08-21 20:16:58 UTC | #4

    Thanks Jason, I tried changing to Cache-Control and also switching transfer-encoding to buffered with no luck.

    I already have open Ticket with Support but they are referring to same article you posted here, so not sure where to go from here


    Jason_Mathison | 2020-08-24 12:42:06 UTC | #5

    What is the support case ID?


    ronak.shah | 2020-08-24 21:27:46 UTC | #6

    Case #0002793559


    system | 2020-09-24 21:34:15 UTC | #7

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