Hi, We had a few questions regarding webAPI introduced in Appian 7.9

Hi,
We had a few questions regarding webAPI introduced in Appian 7.9
Can we invoke the webAPI in the same environment?
Also, if it is possible how do we do it?
We tried to invoke the webAPI with the below code but got an error.

httpget(
endpoint : cons!URL,
paramNames :{},
paramValues :{},
headerNames : {"content-type"},
headerValues : {"application/json"},
user : username,
password : password
)

OR

a!httpQuery(
url : cons!URL,
basicAuthenticationCredentials :a!httpAuthenticationBasic(
username : a!scsField(
externalSystemKey : "testwebapi" ,
fieldKey : "testname" ,
usePerUser :false()
) ,
password : a!scsField(
externalSystemKey : "testwebapi" ,
fieldKey : "test" ,
usePerUser :false()
) ,
preemptive:true()

)

)




OriginalPostID-155986

OriginalPostID-155986

  Discussion posts and replies are publicly visible