Hi all,
we're trying to develop this flow:
- from Architect, we call a data action that ask to a webservice to receive a set of data in array format;
Input Contract:{
Input Contract:{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "gsysGetOpenCases",
"description": "Questo entryPoint restituisce l’elenco dei Casi aperti di interesse per Genesys",
"type": "object",
"properties": {}
}
Output Contract:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "gsysGetOpenCases",
"description": "Questo entryPoint restituisce l’elenco dei Casi aperti di interesse per Genesys",
"type": "object",
"properties": {
"id": {
"description": "id",
"type": "array",
"default": ""
},
"nome": {
"description": "nome",
"type": "array",
"default": ""
},
"posizione": {
"description": "posizione",
"type": "array",
"default": ""
},
"date_entered": {
"type": "array",
"default": ""
},
"datarichiamo": {
"type": "array",
"default": ""
},
"targa": {
"type": "array",
"default": ""
},
"nomecli": {
"type": "array",
"default": ""
},
"cognomecli": {
"type": "array",
"default": ""
},
"companyid": {
"type": "array",
"default": ""
},
"company": {
"type": "array",
"default": ""
},
"agencyid": {
"type": "array",
"default": ""
},
"agency": {
"type": "array",
"default": ""
},
"ffirstcall": {
"type": "array",
"default": ""
},
"ismono": {
"type": "array",
"default": ""
},
"provinciares": {
"type": "array",
"default": ""
},
"tpolizza": {
"type": "array",
"default": ""
},
"broker": {
"type": "array",
"default": ""
},
"hasticket": {
"type": "array",
"default": ""
},
"telefono1": {
"type": "array",
"default": ""
},
"telefono2": {
"type": "array",
"default": ""
},
"posizione_desc": {
"type": "array",
"default": ""
},
"tpolizza_desc": {
"description": "posizione_desc",
"type": "array",
"default": ""
},
"area": {
"type": "array",
"default": ""
}
}
}
Request JSON:
{
"requestUrlTemplate": "https://genesystest.carclinic.it/carclinictest/index.php?entryPoint=gsysGetOpenCases&limit=99",
"requestType": "GET",
"headers": {},
"requestTemplate": "${input.rawRequest}"
}
RESPONSE:
{
"translationMap": {
"area": ".list[*].area",
"nomecli": ".list[].nomecli",
"agency": ".list[*].agency",
"nome": ".list[].nome",
"agencyid": ".list[*].agencyid",
"broker": ".list[].broker",
"targa": ".list[*].targa",
"datarichiamo": ".list[].datarichiamo",
"companyid": ".list[*].companyid",
"provinciares": ".list[].provinciares",
"hasticket": ".list[*].hasticket",
"posizione": ".list[].posizione",
"date_entered": ".list[*].date_entered",
"ismono": ".list[].ismono",
"telefono1": ".list[*].telefono1",
"posizione_desc": ".list[].posizione_desc",
"company": ".list[*].company",
"telefono2": ".list[].telefono2",
"tpolizza_desc": ".list[*].tpolizza_desc",
"id": ".list[].id",
"cognomecli": ".list[*].cognomecli",
"tpolizza": ".list[*].tpolizza",
"ffirstcall": ".list[*].ffirstcall"
},
"translationMapDefaults": {},
"successTemplate": "{\n\"id\":{id},\n"nome":{nome},\n\"posizione\":{posizione},\n"date_entered":{date_entered},\n\"datarichiamo\":{datarichiamo},\n"targa":{targa},\n\"nomecli\":{nomecli},\n"cognomecli":{cognomecli},\n\"companyid\":{companyid},\n"company":{company},\n\"agencyid\":{agencyid},\n"agency":{agency},\n\"ffirstcall\":{ffirstcall},\n"ismono":{ismono},\n\"provinciares\":{provinciares},\n"tpolizza":{tpolizza},\n\"broker\":{broker},\n"hasticket":{hasticket},\n\"telefono1\":{telefono1},\n"telefono2":{telefono2},\n\"posizione_desc\":{posizione_desc},\n"tpolizza_desc":{tpolizza_desc},\n\"area\":{area}}"
}
from Architect, we take the first or the second position of array, and we use a data action to put data in DataTable: all works correctly.
But if from Architect we try to take from third position of array (in case of image below, is the fifth), nothing is write in datatable using the same action.
What could be the cause of this? maybe the build of array is not correct or there is a sort of limitation in this case?