Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
2141 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Can anyone tell how httpget function works with xpath query? Please find code as
pallavis
over 10 years ago
Can anyone tell how httpget function works with xpath query? Please find code as below :
httpget(
endpoint:"http://<server-name>/resource/?xpath=/Person[FirstName='Smith']&attributes=FirstName",
paramNames:{},
paramValues:{},
headerNames :{"Content-Type"},
headerValues:{"application/json"},
user: <user_value>,
password:<password_value>
)
This gives error as Interface Definition: Error evaluating function 'httpget' : Invalid uri 'http://<server-name>/resource/?xpath=/Person[FirstName='Smith']&attributes=FirstName': Invalid query.
Also how to pass query parameters using paramNames and paramValues? We also tried below code but no success.
httpget(
endpoint:"http://<server-name>/resource/?xpath=/Person&attributes=FirstName",
paramNames:{"FirstName"},
paramValues:{"Smith"},
headerNames :{"Content-Type"},
headerValues:{"application/json"},
user: <user_value>,
password:<password_value>
)
OriginalPostID-143921
OriginalPostID-143921
Discussion posts and replies are publicly visible
Parents
0
PhilB
A Score Level 1
over 10 years ago
Great! :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
PhilB
A Score Level 1
over 10 years ago
Great! :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data