How to return multiple values from script include in #servicenow

preview_player
Показать описание
In this video I've explained that how to return multiple values from script include and pass it to the client side.

If you really like my effort please like this video, subscribe my channel and share to your friends.

If you have any feedback, please write in the comment box.

//client script
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

//Type appropriate comment here, and begin script below
var ga = new GlideAjax('Asset_details');

function getData(response)
{
var parsedval = JSON.parse(response);
}

}

// script Include


details:function()
{
var obj = {};
var gr = new GlideRecord("alm_asset");

}
return JSON.stringify(obj);

},

type: 'Asset_details'
});
Рекомендации по теме
Комментарии
Автор

Explained with good example. Thank you

maddiletya
Автор

Nice explanation sir, we expecting more videos
on scripting

livingston
Автор

i am not getting value of mode, asset tag, serial no it coming unknown

somyagupta
Автор

What if caller have more than one assets? Which asset details will be populated?

simba
visit shbcf.ru