Karthikeyan_Arumugam | 2021-08-25 12:21:44 UTC | #1
Hello , I am trying to Export Recordings to a external S3 Bucket. I have already enabled S3 Bulk Recording export Integration in Genesys cloud.
I have Implemented /api/v2/recording/jobs and my Request looks like this { "action": "EXPORT", "actionDate": <currentTS>, "includeScreenRecordings": true, "integrationId": "<IntegrationID XXXXXXXXXXXXXX>", "order": "asc", "orderBy": "conversationStart", "conversationQuery": { "interval":<Yesterdays Interval in UTC String>, "conversationFilters": [ { "type": "or", "predicates": [ { "type": "dimension", "dimension": "conversationEnd", "operator": "exists", "value": null } ] } ] } }
After Creating Recording Job when i check status of the Job using /api/v2/recording/jobs/{jobId} I get response like
{
"id": "<jobID>",
"state": "READY",
"recordingJobsQuery": {
"action": "EXPORT",
"actionDate": "2021-08-23T12:00:00Z",
"integrationId": "<Intgration ID>",
"includeScreenRecordings": true,
"conversationQuery": {
"conversationFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "conversationEnd",
"operator": "exists"
}
]
}
],
"interval": "2021-08-23T12:00:00.000Z/2021-08-24T12:00:00.000Z",
"startOfDayIntervalMatching": false
}
},
"dateCreated": "2021-08-24T15:16:43.726Z",
"totalConversations": 6764,
"totalRecordings": 10374,
"totalSkippedRecordings": 0,
"totalFailedRecordings": 0,
"totalProcessedRecordings": 0,
"percentProgress": 0,
"selfUri": "/api/v2/recording/jobs/<JOB ID>",
"user": {
"id": "<OAuth USer>",
"selfUri": "/api/v2/users/<OAuth USer>"
}
}
Its been almost 20 + hours and Every time when i check status it returns status as Ready
Am i missing something here ? Do i have call Execute Job PUT : /api/v2/recording/jobs/{jobId} ?
If i use PUT: : /api/v2/recording/jobs/{jobId}
const recordingsAPI = new platformClient.RecordingApi(); await recordingsAPI.putRecordingJob(jobID,{})
If i call this i am getting error with '{"message":"Expected State to not be null","code":"bad request","status":400,...... }'
Can anyone help me with this ?
Jerome.Saint-Marc | 2021-08-26 09:42:34 UTC | #2
Hello,
Once the job is ready, you have to change its state to PROCESSING. See this tutorial.
As a note, Genesys employees should use internal chat rooms for questions (the ones available in the genesys org).
Regards,
Karthikeyan_Arumugam | 2021-08-26 09:42:25 UTC | #3
Thank you ! it worked as expected.
system | 2021-09-26 09:42:51 UTC | #4
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: 11824