I'm trying to build an Architect flow that allows a user to key in an external ID, retrieve user information via SCIM API, then compile a subset of the data for use in creating an email.
So far, I built a GC data action that pulls all the required information and populates it in Test in the action editor, but once published, I am not sure how to retrieve the data. There are nested arrays as the response is an array, and I am pulling in ACD skills and proficiencies which are also an array.
I was able to see the attribute names in the flow, but when I try to use them (for instance, play them as TTS), the variables can't be selected in the communication builder.
The issue is likely with my response template, but I don't know where to start. Right now, I have the default response template in place for testing.
The output template is:
{
"type": "object",
"properties": {
"Resources": {
"type": "array",
"additionalItems": true,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"active": {
"type": "boolean"
},
"userName": {
"type": "string"
},
"displayName": {
"type": "string"
},
"title": {
"type": "string"
},
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"type": "object",
"properties": {
"department": {
"type": "string"
},
"manager": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User": {
"type": "object",
"properties": {
"routingSkills": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
And the response template is:
{
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}
The flow variables are:
How do I get from point A to point B?