Skip to content

Transform Http

Jair Andres Diaz Puentes edited this page Apr 30, 2018 · 5 revisions

function http

allows to recover any value of an external dataset

Param Description Required
URL url where the POST is made yes
Type HTTP verb used is supported POST and GET yes
Mode Web =0 , Server =1 yes
Headers arrangement with the following structure that represents the header of the POST to send, by default it is assigned "Content-Type", "application / json" the others must be specified if not required you must send null, eg [{'name': 'filter','value': {'tabla': 'adquiriente','nit': '900032159'}},{'name': 'field','value': 'email'}]' yes
body body of the request in JSON format if it does not exist, do not send the value eg httpPost ('url', null)}} yes

in case of requiring values of the data as parameter of the function use the syntax

[[data]]  httpPost('[[id]]',null)

the parameters of the function must be encoded see

example

httpPost('webhook%2F860001619','POST',1,'%5B%7B%27name%27%3A%20%27filter%27%2C%27value%27%3A%20%7B%27tabla%27%3A%20%27adquiriente%27%2C%27nit%27%3A%20%27900032159%27%7D%7D%2C%7B%27name%27%3A%20%27field%27%2C%27value%27%3A%20%27email%27%7D%5D')
Clone this wiki locally