RTD issue after upgrade latest version of Service bridge plugin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2025 11:39 PM - edited 02-19-2025 11:43 PM
after update service bridge plugins in provider & consumer instances. Remote task definition is not showing on flow designer in provider instance .it causes creation of remote task.
What could be the issue here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 04:39 AM
Hi @Vinay49 ,
Please delete the connections that has the same account which are not being used in the [sn_nowebonding_pro_customer_connection] and keep the connection which will be used further.
Please go through this kb : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1279096
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2025 08:23 AM
Hi Sandeep,
MY RTD is replicated on consumer instance. Also there is no duplicate connection in both instances(provider & consumer)
my issue is, I cannot select RTD in flow designer in provider instance. This was happened after upgrade the SB prvoider plugin. please see below image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 10:55 AM
Hi Vinay,
please use below script and run in background script
// Generate an Identity for a Remote Task Definition
var id = new GlideRecord('sn_sb_identity');
id.setNewGuidValue('b86dfa8f1ba79e10821999f2b24bcb13'); // The sys_id of the Identity on the RTD xml
id.published_revision_table = 'sn_sb_con_remote_task_def';
id.published_revision = 'cf34fac41b182a10821999f2b24bcb0f'; // The sys_id of the RTD
id.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Friday
Had the same issue and this is how i fixed that.. it worked for me ..
I run this background script
// Set the name of the identity you want to create or check
var identityName = "XXX - Incident Case to Incident";
// Set the Sys ID of the Remote Task Definition (RTD) that this identity will reference
var rtdSysId = "94691d6d3b4f32d08b9491ae53e45a93";
// Validate that the RTD exists in the 'sn_sb_pro_remote_task_def' table
var rtd = new GlideRecord('sn_sb_pro_remote_task_def');
if (!rtd.get(rtdSysId)) { // Try to fetch the RTD using its Sys ID
gs.info("Remote Task Definition not found: " + rtdSysId); // Log if the RTD does not exist
} else {
// Check if an identity with the same name already exists in the 'sn_sb_identity' table
var check = new GlideRecord('sn_sb_identity');
check.addQuery('name', identityName); // Filter records by the given identity name
check.query();
if (check.next()) { // If a record is found
gs.info("Identity already exists: " + check.sys_id); // Log the existing identity's Sys ID
} else {
// If identity does not exist, create a new one
var id = new GlideRecord('sn_sb_identity');
id.initialize(); // Initialize a new record
id.name = identityName; // Set the identity name
id.published_revision_table = 'sn_sb_pro_remote_task_def'; // Reference the table of the RTD
id.published_revision = rtdSysId; // Set the published revision to point to the RTD
// Insert the new identity record into the table
var newId = id.insert();
gs.info("Created Identity: " + newId); // Log the Sys ID of the newly created identity
}
}
If this was helpful don't forget to mark my anwer/reply
