Can anyone explain why data is not save in the "saveInto".Below is the

Can anyone explain why data is not save in the "saveInto".Below is the code snippet-using Appian 7.5 and 7.8
load(
local!aggregateID,
local!var1,
local!data: {{label : "ABC",aggregateID : "123"},{label : "XYZ",aggregateID : "456"}},
{
a!linkField(
label:"( Set same as that of household )",

links:fn!apply(
a!dynamicLink(
label :_,
value:_,
saveInto: {
local!aggregateID,
local!var1
}
),
merge(fn!index(local!data,"aggregateID",{}),fn!index(local!data,"aggregateID",{}))
)),
a!textField(value : fn!index(local!data,"aggregateID",{})),
a!textField(value : local!aggregateID)
}

)

Error in 7.5 as :- An error occurred while executing a save: Expression evaluation error : You must specify a variable to ...

OriginalPostID-141120

OriginalPostID-141120

  Discussion posts and replies are publicly visible

Parents
  • Just to add some more information for which I was struggling to get an answer on that, in case you want to save single value from DynamicLink's saveInto remove curly braces and put variable directly.

    Don't use with curly braces,
    a!applyComponents(
    function: a!dynamicLink(
    value:_,
    saveInto: {local!selectedRecord}
    ),
    array: local!attachments_list
    )

    Use without curly braces as shown below,
    a!applyComponents(
    function: a!dynamicLink(
    value:_,
    saveInto: local!selectedRecord
    ),
    array: local!attachments_list
    )
Reply
  • Just to add some more information for which I was struggling to get an answer on that, in case you want to save single value from DynamicLink's saveInto remove curly braces and put variable directly.

    Don't use with curly braces,
    a!applyComponents(
    function: a!dynamicLink(
    value:_,
    saveInto: {local!selectedRecord}
    ),
    array: local!attachments_list
    )

    Use without curly braces as shown below,
    a!applyComponents(
    function: a!dynamicLink(
    value:_,
    saveInto: local!selectedRecord
    ),
    array: local!attachments_list
    )
Children
No Data