<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Preblem with calling script include in Xanadu in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3196014#M2378</link>
    <description>&lt;P&gt;Hi, I am new to ServiceNow, have a Xanadu PDI instance and there is a very simple case that I would like to try, but it does not work.&lt;/P&gt;&lt;P&gt;When a Problem record is loaded, a client script (CS) calls a script include (SI) with the Problem number as the passed parameter. The SI simply returns the passed parameter, and the CS displays it as an infoMessage.&lt;/P&gt;&lt;P&gt;The steps I took:&lt;/P&gt;&lt;P&gt;1. Using Creator I created an application "abccompany" with global scoop.&lt;/P&gt;&lt;P&gt;2. Created a CS:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_0-1741131521110.png" style="width: 608px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424067i2507CB193939DC96/image-dimensions/608x149/is-moderation-mode/true?v=v2" width="608" height="149" role="button" title="MihlyD_0-1741131521110.png" alt="MihlyD_0-1741131521110.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onLoad() {
    var problemNumber = g_form.getValue('problem.number');
    var ga = new GlideAjax('Mdssechofromserver');
    ga.addParam('sysparm_name', 'echoParameter');
    ga.addParam('sysparm_num', problemNumber);
    alert('In client script');
    ga.getXMLAnswer(echoCallBack);

    function echoCallBack(response) {
        alert('In callBack of client script');
        var answer =
            response.responseXML.documentElement.getAttribute('answer');
        g_form.addInfoMessage(
            'This is the problem.number echo from server: ' + answer);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve above message:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Checked the "Isolation property" flag of CS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I created the app. property "&lt;SPAN&gt;glide.script.block.client.globals" and set it to false.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_2-1741132546077.png" style="width: 533px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424070i0D975093926FFCC0/image-dimensions/533x296/is-moderation-mode/true?v=v2" width="533" height="296" role="button" title="MihlyD_2-1741132546077.png" alt="MihlyD_2-1741132546077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Created SI:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_1-1741132173252.png" style="width: 577px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424069i02C59DDFE36A771F/image-dimensions/577x175/is-moderation-mode/true?v=v2" width="577" height="175" role="button" title="MihlyD_1-1741132173252.png" alt="MihlyD_1-1741132173252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var Mdssechofromserver = Class.create();
Mdssechofromserver.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
    echoParameter: function() {
        var problemNumber = this.getParameter('sysparm_num');
        return problemNumber;
    },
    type: 'Mdssechofromserver'
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alerts from JavaScript are displayed, but the infoMessage is not.&lt;/P&gt;&lt;P&gt;If I put an alert statement behind response.responseXML... like this&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        var answer =
            response.responseXML.documentElement.getAttribute('answer');
		alert(answer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This alert is not executed. Is it normal that the callback is called even if the SI failed or was not called at all?&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are several examples from earlier ServiceNow versions for calling SI from CS, but in Xanadu, they do not work because the settings are slightly different.&lt;/P&gt;&lt;P&gt;I appreciate all the help.&lt;/P&gt;&lt;P&gt;mdaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 00:38:04 GMT</pubDate>
    <dc:creator>MihályD</dc:creator>
    <dc:date>2025-03-05T00:38:04Z</dc:date>
    <item>
      <title>Preblem with calling script include in Xanadu</title>
      <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3196014#M2378</link>
      <description>&lt;P&gt;Hi, I am new to ServiceNow, have a Xanadu PDI instance and there is a very simple case that I would like to try, but it does not work.&lt;/P&gt;&lt;P&gt;When a Problem record is loaded, a client script (CS) calls a script include (SI) with the Problem number as the passed parameter. The SI simply returns the passed parameter, and the CS displays it as an infoMessage.&lt;/P&gt;&lt;P&gt;The steps I took:&lt;/P&gt;&lt;P&gt;1. Using Creator I created an application "abccompany" with global scoop.&lt;/P&gt;&lt;P&gt;2. Created a CS:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_0-1741131521110.png" style="width: 608px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424067i2507CB193939DC96/image-dimensions/608x149/is-moderation-mode/true?v=v2" width="608" height="149" role="button" title="MihlyD_0-1741131521110.png" alt="MihlyD_0-1741131521110.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function onLoad() {
    var problemNumber = g_form.getValue('problem.number');
    var ga = new GlideAjax('Mdssechofromserver');
    ga.addParam('sysparm_name', 'echoParameter');
    ga.addParam('sysparm_num', problemNumber);
    alert('In client script');
    ga.getXMLAnswer(echoCallBack);

    function echoCallBack(response) {
        alert('In callBack of client script');
        var answer =
            response.responseXML.documentElement.getAttribute('answer');
        g_form.addInfoMessage(
            'This is the problem.number echo from server: ' + answer);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve above message:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Checked the "Isolation property" flag of CS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I created the app. property "&lt;SPAN&gt;glide.script.block.client.globals" and set it to false.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_2-1741132546077.png" style="width: 533px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424070i0D975093926FFCC0/image-dimensions/533x296/is-moderation-mode/true?v=v2" width="533" height="296" role="button" title="MihlyD_2-1741132546077.png" alt="MihlyD_2-1741132546077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Created SI:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_1-1741132173252.png" style="width: 577px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424069i02C59DDFE36A771F/image-dimensions/577x175/is-moderation-mode/true?v=v2" width="577" height="175" role="button" title="MihlyD_1-1741132173252.png" alt="MihlyD_1-1741132173252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var Mdssechofromserver = Class.create();
Mdssechofromserver.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
    echoParameter: function() {
        var problemNumber = this.getParameter('sysparm_num');
        return problemNumber;
    },
    type: 'Mdssechofromserver'
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alerts from JavaScript are displayed, but the infoMessage is not.&lt;/P&gt;&lt;P&gt;If I put an alert statement behind response.responseXML... like this&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        var answer =
            response.responseXML.documentElement.getAttribute('answer');
		alert(answer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This alert is not executed. Is it normal that the callback is called even if the SI failed or was not called at all?&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are several examples from earlier ServiceNow versions for calling SI from CS, but in Xanadu, they do not work because the settings are slightly different.&lt;/P&gt;&lt;P&gt;I appreciate all the help.&lt;/P&gt;&lt;P&gt;mdaniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 00:38:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3196014#M2378</guid>
      <dc:creator>MihályD</dc:creator>
      <dc:date>2025-03-05T00:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Preblem with calling script include in Xanadu</title>
      <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3197262#M2391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/820283"&gt;@MihályD&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you please try the below code and check whether you're getting the response?&lt;BR /&gt;&lt;BR /&gt;Client script&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function onLoad() {
   //Type appropriate comment here, and begin script below
    var problemNumber = g_form.getValue('number');
    var ga = new GlideAjax('global.ScriptInclude');
    ga.addParam('sysparm_name', 'echoParameter');
    ga.addParam('sysparm_num', problemNumber);
    ga.getXML(echoCallBack);

    function echoCallBack(response) {
        var answer = response.responseXML.documentElement.getAttribute('answer');
        g_form.addInfoMessage('This is the problem number echo from server: ' + answer);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;Script include seems okay.&lt;BR /&gt;&lt;BR /&gt;Attaching the snippet for reference.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Gaurav_0-1741202174458.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424394i3E43ADC5F66230EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Gaurav_0-1741202174458.png" alt="_Gaurav_0-1741202174458.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Gaurav_1-1741202200694.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424395i6DB5B1E0D3348A59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Gaurav_1-1741202200694.png" alt="_Gaurav_1-1741202200694.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Also, I would like to hear what role you selected while creating a new script include?&lt;BR /&gt;Please mark this as helpful if this resolves your query.&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Mar 2025 19:27:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3197262#M2391</guid>
      <dc:creator>_Gaurav</dc:creator>
      <dc:date>2025-03-05T19:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Preblem with calling script include in Xanadu</title>
      <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3197331#M2393</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/263515"&gt;@_Gaurav&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your quick answer, but as you can see below on the alert pop up&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MihlyD_0-1741203474443.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/424411iD2C99ADD41A0822F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="MihlyD_0-1741203474443.png" alt="MihlyD_0-1741203474443.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the Problem number field reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;g_form.getValue('problem.number');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;is correct, because it returns the correct Problem number ( it was taken from the HTML source of the form).&lt;/P&gt;&lt;P&gt;I think the CS and SI naming conventions follows the related rules, so why change them?&lt;/P&gt;&lt;P&gt;The "global" prefix&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;new GlideAjax('global.Mdssechofromserver');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not solve the problem.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;mdaniel&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 20:04:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3197331#M2393</guid>
      <dc:creator>MihályD</dc:creator>
      <dc:date>2025-03-05T20:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Preblem with calling script include in Xanadu</title>
      <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3198304#M2395</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/820283"&gt;@MihályD&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you check adding gs.info in the SI and whether you're getting the problem number in the SI?&lt;BR /&gt;Also, what role have you selected while creating the SI?&lt;BR /&gt;&lt;BR /&gt;You can also check replacing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var problemNumber = g_form.getValue('problem.number');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;with this&lt;/P&gt;&lt;PRE&gt;var problemNumber = g_form.getValue('number');&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 14:33:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3198304#M2395</guid>
      <dc:creator>_Gaurav</dc:creator>
      <dc:date>2025-03-06T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Preblem with calling script include in Xanadu</title>
      <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3198665#M2399</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/820283"&gt;@MihályD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not use below code when you are using getXMLAnswe(). Use the below code when you are using getXML()&lt;/P&gt;&lt;PRE&gt;var answer =
            response.responseXML.documentElement.getAttribute('answer');
		alert(answer);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getXML()&lt;/STRONG&gt; returns the entire object response with extra option and the actual output is stored under the attribule answer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;getXMLAnswe()&lt;/STRONG&gt; returns only the output in a string format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mark this helpful/ Accept the solution if this helps you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 19:05:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3198665#M2399</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2025-03-06T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Preblem with calling script include in Xanadu</title>
      <link>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3198713#M2401</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/820283"&gt;@MihályD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this &lt;STRONG&gt;onLoad Client script&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function onLoad() {
    var problemNumber = g_form.getValue('number');  // Corrected field name
    if (!problemNumber) {
        g_form.addErrorMessage("Problem number is empty.");
        return;
    }
    var ga = new GlideAjax('Mdssechofromserver');
    ga.addParam('sysparm_name', 'echoParameter');
    ga.addParam('sysparm_num', problemNumber);
    g_form.addInfoMessage("Sending request to Script Include with problem number: " + problemNumber);

    ga.getXMLAnswer(function(answer) {
        g_form.addInfoMessage('This is the problem number echo from server: ' + answer);
    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To learn more about &lt;FONT color="#800000"&gt;getXML&lt;/FONT&gt; &amp;amp; &lt;FONT color="#800000"&gt;getXMLAnswer&lt;/FONT&gt; method refer to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="" href="https://www.servicenow.com/community/developer-articles/client-side-scripting-go-for-glideajax-with-getxmlanswer/ta-p/2324830" target="_blank" rel="noopener"&gt;Client Side Scripting: Go for GlideAjax (with getXMLAnswer)!&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A class="" href="https://www.servicenow.com/community/developer-articles/getxmlanswer-vs-getxml/ta-p/2307589" target="_blank" rel="noopener"&gt;getXMLAnswer vs getXML&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800000"&gt;Note:&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do NOT use &lt;FONT color="#800000"&gt;response.responseXML.documentElement.getAttribute('answer');&lt;/FONT&gt; when using getXMLAnswer().&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;getXMLAnswer&lt;/STRONG&gt; directly returns the processed value&lt;/LI&gt;&lt;LI&gt;If XML parsing is required, use &lt;STRONG&gt;getXML() &lt;/STRONG&gt;instead&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"If you found my answer helpful, &lt;STRONG&gt;please like and mark it as an "accepted solution".&lt;/STRONG&gt; It helps future readers to locate the solution easily and supports the community!"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;BR /&gt;Juhi Poddar&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 20:37:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/preblem-with-calling-script-include-in-xanadu/m-p/3198713#M2401</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2025-03-06T20:37:26Z</dc:date>
    </item>
  </channel>
</rss>

