JArray.RemoveAt(ID) - Expression does not produce a value

I’m just trying to remove items from my JArray based on their position.
The JArray is working, as I use it to do stuff. I just want to be able to also remove things.

image

1 Like

Hi @Axel_Albert,

Instead of using an assign activity, try using an invoke method activity:

image

If it solves your problem, kindly mark this answer as the solution.

Thanks!

1 Like

Thank you, it worked.

I actually tried invoke method before but it told me something along the lines of “JArray doesn’t have a method called RemoveAt”.
It was because I had to use the “parameters” property to put the value there… And I didn’t know.

1 Like

My pleasure, @Axel_Albert!

I am glad it helped you.

Yeah, the paremeters are extremely important when we are using this activity :slight_smile:

Unless the method does not expect parameters :sweat_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.