- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 08:58 AM
I am trying to develope servicenow portal my scenario is that when i create the incident by caller who is system administratior from service portal at that time it will be populate service portal thats why i am writing code in
SERVICE PORTAL LIKE THIS
<!-- your widget template -->
<h1>
Incident Details
</h1>
<p>
You Will get Incident Details
</p>
<table>
<tr>
<th>number</th>
<th>short Description</th>
<th>caller</th>
</tr>
<tr>
<td>{{data.number}}</td>
<td>{{data.short_description}}</td>
<td>{{data.caller_id}} </td>
</tr>
</table>
</div>
Incident Details
You Will get Incident Details
number short Description caller
WHY INCIDENT IS DATA IS NOT POPULATE IN THIS SCENARIO PLEASE HELP ME TO GET OUT OF THIS.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 10:08 AM
Hi @sagar patil2312 ,
Here in your script the issue is
Inside while loop yoi are doing
grInc.getValue(caller_id)
Which is not correct instead of that you have to do like
grInc.getValue('caller_id');
It should be in string
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 06:01 AM
i dont think your query line is right.... line 5 in the server script, id adjust this to:
grInc.addQuery('caller_id', gs.getUserID());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 06:25 AM
hii sarthan your ans is great but my problem is this is not working in my pdi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 10:00 AM
Hi @sagar patil2312 ,
Can you please share me some images for reference. This would be help
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 06:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 06:22 AM
hii sarthak i am greatful for you answer but your answer is not work in my pdi my issue is that while i am writing server screapt for gliding incident record which is not trigger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 10:08 AM
Hi @sagar patil2312 ,
Here in your script the issue is
Inside while loop yoi are doing
grInc.getValue(caller_id)
Which is not correct instead of that you have to do like
grInc.getValue('caller_id');
It should be in string
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak