Forum Academy Marketplace Showcase Pricing Features

Toolbox Server Script, Batching text conversion

Hey Everyone :wave:

A while back I asked about converting a string to date as part of a backend workflow . I successfully got this working as recursive workflow doing the lift line by line using the Data Converter plugin.

When I’m working over a couple of thousand records however this is pretty painful and it’s much faster to do this in batches of say 50 records at a time. The problem is the plugin can’t work on a list :sob:

Toolbox’s server script looks to be the goods and I’ve done a little playing around including reading Toolbox plugin help - server script - #3 by paul29 and the excellent examples from @viquarahmed07 but doco is thin on the ground and I’m not sure i have the context right.

What I’m doing is converting a unix time string into a list of dates. I then have a steps further in the workflow that takes the result of this step and updates each record in the batch. So for this step I want to create a list of dates from the list of text.

Here’s my Server script

heres my error

reading the error it looks like the ThingList isn’t being populated but If I pop that in the data field, then it won’t know its a list (at least that what Im assuming) . Of course I could have the code utterly wrong as well :roll_eyes:

I’d like to nail how to user server scripts because this kind of problem happens all the time and while theres tons of examples doing this at the front end, I’d really like to learn how to do this away from the user and slowing their experience.

Cheers - John