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
5 subscribers
Views
1482 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Appian 7.8: I am using getdatasubsetdownloadlinkfromprocess() from Download Data
simranjits
over 10 years ago
Appian 7.8: I am using getdatasubsetdownloadlinkfromprocess() from Download DataSubset (Cloud) Plugin to export data to excel sheet. I am sending 2 lists as inputs to the target process model using the syntax: a!toJson({abc: ri!XXX.abc,xyz: ri!XXX.xyz})
I am using the following code on a script task in the target process model:
with(
local!pagingInfo1: a!pagingInfo(startIndex: 1, batchSize: -1),
local!search: a!fromJson(pv!input),
local!newData: apply(
rule!PPR_XXX,
merge(
local!search.abc,
local!search.xyz
)),
local!DataSubset: todatasubset(
local!newData,
local!pagingInfo1
),
'type!{urn:appian:plugin:datasubsetdownload:types}ExportableDataSubset'(
filename: "Exported Data",
fieldNames: {
"abc",
"xyz"
},
fieldLabels: {
"ABC",
"XYZ"
},
datasubset: local!DataSubset )
)
The definition of rule!PPR_XXX is:
with(
local!newData: type!TEST(
fundName: ri!fundNa...
OriginalPostID-146924
OriginalPostID-146924
Discussion posts and replies are publicly visible
0
simranjits
over 10 years ago
...me,
sedolReference: ri!sedolReference,
policyNo: ri!policyNo
),
local!newData
)
It is not displaying the link on the SAIL form. While trying to debug the process model, I am getting the following error even though I am passing lists to the merge() function:
Expression evaluation error at function 'merge' [line 6]: Only list arguments are allowed)
Please suggest.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simranjits
over 10 years ago
Sorry..Updated definition of rule!PPR_XXX is:
with(
local!newData: type!TEST(
abc: ri!abc,
xyz: ri!xyz
),
local!newData)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel