Tablescripts Insert/Update - can you make javascript API calls from them? (Sage CRM 2018 R2)

SOLVED

Is this possible at all  ?  I have tried using $.ajax (which im assuming is not available as its serverside) , the XMLHttpRequest() object, and the fetch() function and none of them appear to work for me.When a particular field value changes I want to call a 3rd party JSON API.

Any pointers or should I try and stick to doing it clientside (which I could do but I will have to remember all the screens where this field value could change in)?

Thanks in advance

Chris