Hello Cameron,
FYR, please see below contracts.

JSON
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"participants": {
"type": "array",
"items": {
"title": "output",
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"attributes": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"dialerContactId": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
I already used it in architect and created an expression to get the first value, which works fine. However, I also want to know how to do it in contracts to get only one output for future reference.


Thanks
------------------------------
Eajay Mogol
------------------------------
Original Message:
Sent: 08-13-2024 14:33
From: Cameron Tomlin
Subject: Data Actions - Multiple Output
Hello Eajay,
Can you provide more details?
How are the contracts setup?
Cheers,
------------------------------
Cameron Tomlin
Online Community Manager/Moderator
Genesys - Employees
------------------------------