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
8 subscribers
Views
5231 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Calling Store Procedure via Script
andrin
over 8 years ago
Hi, I need to call store procedure from Web API. can anyone tell me how to do it?
OriginalPostID-271849
Discussion posts and replies are publicly visible
0
aloks0189
Certified Lead Developer
over 8 years ago
@andrin you can try using executestoredprocedure function inside Web API httpResponse
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
andrin
over 8 years ago
Hi aloks178 thanks for your help, will try it first.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
andrin
over 8 years ago
Hi @aloks178 ,
I'm trying to execute Stored procedure with param and it still failed,
Can you tell me how to do it.
local!spData: executestoredprocedure(
dataSourceName: "jdbc/Appian",
procedureName: "getallflatTable",
inputs :{15}
)
#### Result
{
"success" : true,
"error" : "",
"parameters" : { },
"result" : [ [ ] ]
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
andrin
over 8 years ago
Hi,
It solved using this script
local!spData: executestoredprocedure(
dataSourceName: "jdbc/Appian",
procedureName: "getallflatTable",
inputs :{{name: "premi", value: 15}}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 8 years ago
@andrin happy to see that it worked.. :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel