Insert binding in array

I have this script

$data = '
{
"codCliente":"000000",
"datiSpedizione":[{"idLdv": "{{session1.data.ldv}}","ultimoStato": "N"}],
"descrizioneStatus": "E",
"postazione": "00000",
"tipologiaCliente": "SDA"
}       			
';

but it doesn’t work.

How to insert binding data “{{session1.data.ldv}}” ? @Teodor

Hello can you give us more detail ?
I think this is php script and you want to use session info inside your script ?

You can call session info with php codes .

this is $data for rest request

Is this session info or serverconnect info ? Which one ?
Session1.data.ldv

session

Did you try php code ?

$_SESSION[“xyz”]

Is this the return of an API action call? Are you using it in server action? Did you generate schema for it?

Then you should be able to pick it in the data bindings.

Of course if you want to iterate through the array values you have to make repeater first on the array and then inside you can access its children

1 Like