Mahendra RC
Mega Sage

Hello Martina,

Your script include GLSRecuperaClienteTOP has issue like you have used ga.addParam with is used for GlideAjax() call to pass the parameter from client script to server script. It seems have little less knowledge about Client script and Server side scripting and hence you used the code in Script include that was actually supposed to be used in Client side.
Could you please remove your  makeCall() function script and replace that with the below script and check if you are able to achieve your requirement:

var GLSRecuperaClienteTOP = Class.create();
GLSRecuperaClienteTOP.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
    makeCall: function(idSpedizione, idSegnalazSedeSede) {

        gs.info('PM20220627 entro GLSRecuperaClienteTOP idSpedizione  ' + idSpedizione + 'idSegnalazSedeSede ' + idSegnalazSedeSede);
        var tipo = "S"; //for numero_di_spedizione the tipo is always "S"

        //make a call to a script include, which in turn will make a call to DBServ.
        var sedeSede = new GlideRecord("u_gls_comunicazione_sede_sede");
        sedeSede.addQuery('sys_id', idSegnalazSedeSede);
        sedeSede.query();
        if (sedeSede.next()) {
           gs.info('PM20220627 faccio');
           sedeSede.setValue("u_reclamo_top", true);
           sedeSede.update();
        }
        gs.info('PM20220627 post chiamata makeCall ');
    },

    type: 'GLSRecuperaClienteTOP'
});

If my answer helped you in any way then please do mark it as helpful. If it answered your question then please mark it correct and helpful. This will help others with similar issue to find the correct answer.

Thanks