Faça uma chamada para
http://<URLSANKHYA>/service.sbr?serviceName=ActionButtonsSP.executeJava&outputType=json&preventTransform=false
Com esse corpo
{
"serviceName": "ActionButtonsSP.executeJava",
"requestBody": {
"javaCall": {
"actionID": "480",
"refreshType": "NONE",
"params": {
"param": [
{"type": "S","paramName": "PEDIDOID","$": 1937077},
{"type": "S","paramName": "DOWNLOAD","$": "N"}
]
},
"rows": {
"row": [{"field": [
{"fieldName": "PEDIDOID","$": "1937077"},
{"fieldName": "SEQUENCIA","$": "1"}
]
}]
}
},
"clientEventList": {"clientEvent": [{"$": "br.com.sankhya.actionbutton.clientconfirm"}]
}
}
}
Notas
Você precisa passar o elemento rows se vc faz algo com os registros “em tela”, todos os campos que você usa lendo ctx.getCampo(), ou no minimo a chave primaria . Se não usa pode omitir
Se a função tem parâmetros precisa enviar a tag param