Getting Null Values while performing User Defined (oAuth) Authentication

Dear Team,

We are currently integrating Genesys Cloud with Mulesoft using web service data actions to fetch employee records.

I have followed the documentation on how to use the User Defined (OAuth) credential type from the Genesys Cloud Resource Center (mypurecloud.com) to set up authentication and have successfully created two data actions. However, we are encountering an issue where we are receiving null values from the second data action.

I have tested the values in Postman, and they work perfectly fine there. Could you please guide me on whether I might be missing any configuration?

Below is my data action code:

1, Generates the access token (1st data action)

{
  "name": "Web Services Data Actions (MuleSoft) (Auth) - Exported 2024-04-07 @ 22:14",
  "integrationType": "custom-rest-actions",
  "actionType": "customAuth",
  "config": {
    "request": {
      "requestUrlTemplate": "${credentials.loginUrl}",
      "requestType": "POST",
      "headers": {
        "Authorization": "Basic $encoding.base64(\"${credentials.clientId}:${credentials.clientSecret}\")",
        "Content-Type": "application/x-www-form-urlencoded"
      },
      "requestTemplate": "grant_type=client_credentials"
    },
    "response": {
      "translationMap": {},
      "translationMapDefaults": {},
      "successTemplate": "${rawResult}"
    }
  },
  "contract": {
    "input": {
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "Auth Input",
        "description": "No Input Value",
        "type": "object",
        "properties": {}
      }
    },
    "output": {
      "successSchema": {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {},
        "additionalProperties": true
      }
    }
  },
  "secure": false
}
  1. Input the access token to GET values from Mulesoft endpoint
{
  "name": "Get Account info from Phone Number (Mulesoft) - Exported 2024-04-08 @ 0:46",
  "integrationType": "custom-rest-actions",
  "actionType": "custom",
  "config": {
    "request": {
      "requestUrlTemplate": "https://dev-apint.bat.net/bat-e-md2b-sf-petra-d/v1/contacts?endMarketISO=DE&phoneNumber=09628914600",
      "requestType": "GET",
      "headers": {
        "Authorization": "Bearer ${input.access_token}",
        "Content-Type": "application/json"
      },
      "requestTemplate": "${input.rawRequest}"
    },
    "response": {
      "translationMap": {},
      "translationMapDefaults": {},
      "successTemplate": "${rawResult}"
    }
  },
  "contract": {
    "input": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "endMarketISO": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "access_token": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "output": {
      "successSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": true
      }
    }
  },
  "secure": false
}

Hello Team,

Could you please help with above topic...