Thank you so much, created a new data action that works now.
Original Message:
Sent: 05-05-2025 08:35
From: Jason Mathison
Subject: Turning on Forward Calls for an Agent as a Supervisor
In the configuration you provided earlier it appeared that you did have an output contract configured. I would try clearing that all out and running test mode again.
------------------------------
--Jason
Original Message:
Sent: 05-05-2025 03:55
From: Thomas Repking
Subject: Turning on Forward Calls for an Agent as a Supervisor
Thank you Jason, placed your input to my data action input contract, left output contract empty and placed your request to the request body template of the data action. Unfortunately there is still an error message that I can´t resolve:
{
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "4fd0f2e1-4f69-4cbb-af04-99ab0b42ce86",
"details": [
{
"errorCode": "ACTION.PROCESSING"
}
],
"errors": [
{
"message": "Action failed validation. Errors: [JSON failed schema validation of contract.output.successSchema for the following reasons: the following keywords are unknown and will be ignored: [calls, enabled]]",
"code": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
------------------------------
Thomas Repking
CS
Original Message:
Sent: 05-02-2025 10:59
From: Jason Mathison
Subject: Turning on Forward Calls for an Agent as a Supervisor
Data actions only allow simple key / value pairs for the input values, however your endpoint takes a more complex input object. The solution is to take the inputs and insert them into a request template to get the required object.
My input contract looks like this:
{
"type": "object",
"properties": {
"target-type": {
"type": "string"
},
"target-value": {
"type": "string"
},
"userId": {
"type": "string"
}
}
}
And my request template looks like this:
{
"calls": [
{
"targets": [
{
"type": "${input.target-type}",
"value": "${input.target-value}"
}
]
}
],
"enabled": true
}
Hopefully that gets you going in the right direction.
------------------------------
--Jason
Original Message:
Sent: 05-02-2025 03:52
From: Thomas Repking
Subject: Turning on Forward Calls for an Agent as a Supervisor
Hi Jason, here is the example of the working input to that endpoint. I also add my data action:
{
"calls": [
{
"targets": [
{
"type": "PHONENUMBER",
"value": "+4961023061396"
}
]
}
],
"enabled": true
}
Invocations:
{
"name": "",
"user": {
"name": "",
"division": {
"name": ""
},
"chat": {
"jabberId": ""
},
"department": "",
"email": "",
"addresses": [
{
"address": "",
"mediaType": "",
"type": "",
"extension": "",
"countryCode": "",
"integration": ""
}
],
"title": "",
"username": "",
"manager": {
"name": "",
"division": "",
"chat": "",
"department": "",
"email": "",
"addresses": [
""
],
"title": "",
"username": "",
"manager": "",
"images": [
{
"resolution": "",
"imageUri": ""
}
],
"version": 0,
"certifications": [
""
],
"biography": "",
"employerInfo": "",
"preferredName": "",
"acdAutoAnswer": true,
"lastTokenIssued": ""
},
"images": [
""
],
"version": 0,
"certifications": [
""
],
"biography": {
"biography": "",
"interests": [
""
],
"hobbies": [
""
],
"spouse": "",
"education": [
{
"school": "",
"fieldOfStudy": "",
"notes": "",
"dateStart": "",
"dateEnd": ""
}
]
},
"employerInfo": {
"officialName": "",
"employeeId": "",
"employeeType": "",
"dateHire": ""
},
"preferredName": "",
"acdAutoAnswer": true,
"lastTokenIssued": {
"dateIssued": ""
}
},
"enabled": true,
"phoneNumber": "",
"calls": [
{
"targets": [
{
"type": "",
"value": ""
}
]
}
],
"voicemail": "",
"modifiedDate": ""
}
Response:{
"id": "50549017-63b2-4303-afda-b4576507f794",
"user": {
"id": "50549017-63b2-4303-afda-b4576507f794",
"selfUri": "/api/v2/users/50549017-63b2-4303-afda-b4576507f794"
},
"enabled": true,
"phoneNumber": "+4961023061396",
"calls": [
{
"targets": [
{
"type": "PHONENUMBER",
"value": "+4961023061396"
}
]
}
],
"voicemail": "NONE",
"selfUri": "/api/v2/users/50549017-63b2-4303-afda-b4576507f794/callforwarding"
}
Data action:
{
"name": "CLE - PUT /api/v2/users/{userId}/callforwarding – Exportiert am 2025-05-02 @ 9:41",
"integrationType": "purecloud-data-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "/api/v2/users/${input.userId}/callforwarding",
"requestType": "PUT",
"headers": {},
"requestTemplate": "${input.rawRequest}"
},
"response": {
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}
},
"contract": {
"input": {
"inputSchema": {
"title": "calls",
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"value": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
}
},
"output": {
"successSchema": {
"title": "calls",
"type": "object",
"properties": {
"targets": {
"type": "array",
"items": {
"type": "string",
"title": "value"
}
},
"enabled": {
"type": "boolean"
},
"userId": {
"type": "string"
}
}
}
}
},
"secure": false
}
------------------------------
Thomas Repking
CS
Original Message:
Sent: 05-01-2025 11:44
From: Jason Mathison
Subject: Turning on Forward Calls for an Agent as a Supervisor
Are you able to use this endpoint with the API Explorer? Data actions are a tough place to debug the usage on an API, tools like the API explorer or postman are much nicer to use while you sort out usage.
Once you can provide an example of the input to that endpoint that works, and a data action that doesn't, we can help you out.
------------------------------
--Jason
Original Message:
Sent: 04-30-2025 09:44
From: Thomas Repking
Subject: Turning on Forward Calls for an Agent as a Supervisor
If I test the data action in the API explorer with my userID it works. So I tried to use in a data action but I can´t figure out as to how to configure the data action. My input contract looks like this: {
"title": "calls",
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"value": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
}
the outputcontract like this {
"title": "calls",
"type": "object",
"properties": {
"targets": {
"type": "array",
"items": {
"type": "string",
"title": "value"
}
},
"enabled": {
"type": "boolean"
},
"userId": {
"type": "string"
}
}
} the error message is {
"message": "The request conflicts with the current state of the target resource.",
"code": "request.conflict",
"status": 409,
"messageParams": {},
"contextId": "8538f5b2-4b74-41ce-a40c-7989e1de5e36",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\"message\":\"Call forwarding is not allowed to be enabled without calls\",\"code\":\"callforwarding.enablednotallowedwithoutcalls\",\"status\":409,\"messageWithParams\":\"Call forwarding is not allowed to be enabled without calls\",\"messageParams\":{\"organizationId\":\"e896c921-94da-4b36-9980-5467b2e5f55f\",\"userId\":\"50549017-63b2-4303-afda-b4576507f794\"},\"contextId\":\"b323f95b-060f-4e54-ae8b-3de108df869b\",\"details\":[],\"errors\":[]} [8538f5b2-4b74-41ce-a40c-7989e1de5e36]",
"code": "REQUEST_CONFLICT",
"status": 409,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Could someone please give me advise as to how to configure the data action correct? Genesys customer care advised me to ask here...
------------------------------
Thomas Repking
CS
Original Message:
Sent: 04-29-2025 09:15
From: Thomas Repking
Subject: Turning on Forward Calls for an Agent as a Supervisor
Thank´s Sam, voted and the API works perfect.
------------------------------
Thomas Repking
CS
Original Message:
Sent: 04-28-2025 12:02
From: Samuel Jillard
Subject: Turning on Forward Calls for an Agent as a Supervisor
Hi Thomas,
This cant be done via the UI, but there is an API: /api/v2/users/{userId}/callforwarding - https://developer.genesys.cloud/useragentman/users/
I also found and Idea on the Genesys Cloud Ideas Portal: Admin Ability to Configure Call Forwarding for Users Through Web UI which I would recommend voting on and adding your use case to so that it can be taken into consideration
------------------------------
Sam Jillard
Online Community Manager/Moderator
Genesys - Employees
Original Message:
Sent: 04-28-2025 10:50
From: Thomas Repking
Subject: Turning on Forward Calls for an Agent as a Supervisor
Hi,
would it be possible to turn on Forward Calls for an Agent as a Supervisor? Use case would be that we don´t want to have messages on personal voicemails in absence and Agents should forward calls to a queue while they are on hols. Could a Supervisor turn this on if an Agent forgets to turn on?
Kind Regards,
Thomas
#Telephony
------------------------------
Thomas Repking
CS
------------------------------