Updating Array with API

Options
Hi Guys, hope you can help.

I try to update and array in the user table field called portfolio_id with an id that gets generated from a newly created record in the portfolio table by doing a merge,so keeping existing values and adding a new value.

What is strange is that it does not want to work when I make use of the var id called portfolio.id after I have added the new record but only works when I pass a value through the input field marked in yellow. The current screen shots are configured by trying to make use of the var portfolio.id after the record have been created

Any recommendations for me please.

I did had a look at this link (https://www.loom.com/share/79ff965fa7784ff3949e18c5ca1ed219).

[a.PNG]
[1.PNG]
[2.PNG]

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    Hi  merge is going to be used from array to array. Your set up here looks like an array to a scalar (or single integer). So you will need to use a filter like append, for example, instead of merge. 
  • Riaan Backer
    Riaan Backer Member
    Options
    Hi Michael.

    Apologies for only coming back to you. I can confirm that its working, my bad.