Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Custom Data Action

    Posted 06-03-2018 21:13
    No replies, thread closed.
    Hi All, 

    In fact I'm having an issue with Custom data action I'm unable to get it run and it keep throwing an error indicating that "There was an error updating -Action Name-". 

    here is the Input Contract 

    {
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [
    "employeenumber"
    ],
    "properties": {
    "employeenumber": {
    "type": "integer"
    }
    }
    }

     and Output Contract 

    {
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [
    "UserID",
    "Name",
    "Email",
    "User_status"
    ],
    "properties": {
    "Email": {
    "type": "string"
    },
    "UserID": {
    "type": "string"
    },
    "User_status": {
    "type": "string"
    },
    "Name": {
    "type": "string"
    }
    }
    }



    Request Config

    {
    "requestUrlTemplate": "https://instance.service-now.com/api/Example/getemplyee?employeenumber=${input.employeenumber}",
    "requestType": "GET",
    "headers": {
    "Authorization": "Basic 0000000000000",
    "Cache-Control": "no-cache",
    "Content-Type": "application/json",
    "Accept": "application/json",
    },
    "requestTemplate": "${input.rawRequest}"
    }


    Response Config

    {
    "translationMap": {
    "UserID": "$.UserID",
    "Name": "$.Name",
    "Email": "$.Email",
    "User_status": "$.User_status"
    },
    "successTemplate": "{\r\n \t\"UserID\": ${UserID},\r\n \t\"Name\": ${Name},\r\n\"Email\": ${Email}\r\n, \t\"User_status\": ${User_status}\r\n }"
    }

    Any assistance rendered in this matter is indeed highly appreciated.

    Thank you & regards, 

    Hussein

    ------------------------------
    Hussein Alshamiri
    Hadef Information Technology Co.
    ------------------------------