Flows and Datastores

Can someone advise if what I am trying to do is possible with flows ?

I am trying to move some of the actions for reading and writing to datastores into a flow as my application is getting large and difficult to keep track of.

I want to insert data from a table into a data store on the click of a button, this works with an inline flow but I could do the same thing with an action. I wanted to create an independent flow so I could reuse it and separate the logic from the UI.

Inline flow - works

Independent flow - not working

I have created an input parameter for the flow that gets passed the $index value from the selected record in the table. I have tried all sorts of combinations and the flow just inserts blank records

Button click calls: flow_AddToCart.run({record_id: $index})
Flow runs the datastore insert record with a value of: tableRepeat1[$param.record_id].pc_Part_no
if i just write the $param.record_id to the data store it writes the correct index value I cannot get it to write any data from the table, what am I doing wrong ?

Thanks, Paul

Community Page
Last updated: