I have a POST HTTP request
{
"data": {
"sipPort": 0,
"workGroupId": 0,
"capabilities": [{
"$clazz": "hubchannel.catalog.ContactCenterCatalog$StandardAgent",
"ordinal": 1,
"value": "STANDARDAGENT"
}],
"statusReason": 0,
"connectionList": [{
"interactionId": "${interactionId}",
"$clazz": "hubchannel.catalog.ContactCenterCatalog$Connection",
"media": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$UnknownMediaType",
"ordinal": 0,
"value": "INVALID"
},
"serviceId": ${worktype},
"interactionType": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$InteractionTypeUnavailable",
"ordinal": 0,
"value": "CallTypeUnavailable"
},
"involvedParty": {
"name": "${sfid}",
"ldapname": "${user}@${organization}.com",
"$clazz": "hubchannel.catalog.ContactCenterCatalog$InvolvedParty",
"id": 228,
"stationAddress": "8005"
},
"connectionType": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$Interaction",
"ordinal": 1,
"value": "INTERACTION"
}
}],
"ctiId": 24,
"domainTenantInfo": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$DomainTenant",
"tenantId": 1
},
"mailBox": "${user}@${organization}.com",
"resourceGroupId": 0,
"$clazz": "hubchannel.catalog.ContactCenterCatalog$InvolvedPartyLoggedInEvent",
"switchId": 127,
"eventTimeStamp": "${__time(yyyy-MM-dd'T'HH:mm:ssX)}",
"involvedEventSequenceNumber": 1,
"serviceStates": [{
"$clazz": "hubchannel.catalog.ContactCenterCatalog$ServiceInfo",
"serviceId": ${worktype},
"serviceState": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$Active",
"ordinal": 1,
"value": "ACTIVE"
}
}, {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$ServiceInfo",
"serviceId": ${worktype},
"serviceState": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$Active",
"ordinal": 1,
"value": "ACTIVE"
}
}, {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$ServiceInfo",
"serviceId": ${worktype},
"serviceState": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$Active",
"ordinal": 1,
"value": "ACTIVE"
}
}, {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$ServiceInfo",
"serviceId": ${worktype},
"serviceState": {
"$clazz": "hubchannel.catalog.ContactCenterCatalog$Active",d(kV$*=i2VGOq5OxN5PI4%36OQwOM&eD
"ordinal": 1,
"value": "ACTIVE"
}
}],
"circuitId": 1,
"sipIpAddress": "",
"siteId": 1,
"eventSequenceNumber": 0,
"channelId": 1
}
}
I want to extract eventSequenceNumber from this body and use it in the next HTTP POST request after increment it by 1.
Aucun commentaire:
Enregistrer un commentaire