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
2 replies
Subscribers
7 subscribers
Views
1138 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I need to call webservice for create data into db need to know how to call it.
rahulr391
over 8 years ago
I need to call webservice for create data into db need to know how to call it.
signature of method is GenericSvcRespMsg Test(String id, String name, int status, String rollno)
which returns json format. "SUCCESS" if successfully create data into database.
below code is single row for test.. i have to pass list of data to webservice how do it.
load(
local!response:a!httpWrite(
method: "POST",
url: "http://..../Service.svc/Common/LookupCode/CreateCauseCat",
/* headers: a!httpHeader("X-Appian-User", loggedInUser()),*/
queryParameters: { a!httpQueryParameter("id", "XX"), a!httpQueryParameter("name", "Static Test"),
a!httpQueryParameter("status", 1), a!httpQueryParameter("rollno", ri!username)}
),
local!json:local!response,
if(
isnull(local!json),
local!json,
local!json
)
)
OriginalPostID-171068
OriginalPostID-171068
Discussion posts and replies are publicly visible
Parents
0
Shyam Bommakanti
Certified Lead Developer
over 8 years ago
Adding to what Rawich said. Httpwrite and all expressions that return writer object can only be used using bind(). And the actual writing only happens when user interacts. Like, clicking a link/button.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Shyam Bommakanti
Certified Lead Developer
over 8 years ago
Adding to what Rawich said. Httpwrite and all expressions that return writer object can only be used using bind(). And the actual writing only happens when user interacts. Like, clicking a link/button.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data