Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
31d7cdd
Add script to display user mentions in Service Portal
raghavs046 Oct 22, 2025
c06f874
Delete Modern Development/Service Portal Widgets/My Mentioned Items d…
raghavs046 Oct 22, 2025
f1473d6
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 22, 2025
1e5fce5
Create script.js
raghavs046 Oct 22, 2025
f368a8d
Delete Modern Development/Service Portal Widgets/My Mentioned Items d…
raghavs046 Oct 22, 2025
f2ce7d2
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 23, 2025
c3f00eb
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 23, 2025
5752145
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 23, 2025
df002e4
Create script.js
raghavs046 Oct 23, 2025
31be0ba
Delete Server-Side Components/Scheduled Jobs/Retire Rating 1 Articles…
raghavs046 Oct 23, 2025
db7b48d
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 24, 2025
dd6ade3
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 24, 2025
6579f1b
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 25, 2025
02b9a72
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 27, 2025
8e55fcb
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 27, 2025
a59cfcb
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 28, 2025
3b8d029
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 28, 2025
6065b0b
Merge branch 'ServiceNowDevProgram:main' into main
raghavs046 Oct 28, 2025
7d0cd6a
Create script.js
raghavs046 Oct 28, 2025
b0dd356
Create README.md
raghavs046 Oct 28, 2025
dc205d1
Update README.md
raghavs046 Oct 28, 2025
58ea522
Update script.js
raghavs046 Oct 28, 2025
bf93048
Update and rename README.md to README.md
raghavs046 Oct 29, 2025
82a5852
Update README.md
raghavs046 Oct 29, 2025
c464083
Create script.js
raghavs046 Oct 29, 2025
180255d
Delete Specialized Areas/Fix scripts/Cacel Struck Slack Conversations…
raghavs046 Oct 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Use Case**
1. Sometimes due to network or connecton issue, users are not able to end the conversations using **restart** or **end** command from slack.
2. This script will cancel the struck slack conversations, allowing the users to interaction with ServiceNow again through slack.
3. The encoded Query device type specify the source of conversation.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
This script will mark the struck slack conversation as canceled.
Use Case: Sometimes due to n/w or connecton issue, users are not able to end the conversations using restart or end command from slack.
Device Type in Encoded Query specify the source of conversation, slack in this case.
*/
var struckConv = new GlideRecord('sys_cs_conversation'); // conversation table glide record
struckConv.addEncodedQuery('stateINopen,faulted,chatInProgress^device_type=slack'); // Query can be enhanced based on user (consumer) or date range.
struckConv.query();
while(struckConv.next()){
struckConv.setValue('state','canceled'); // set the state to cancel for struck conversation.
struckConv.setWorkflow(false);
struckConv.update();
}
Loading