Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

RTD issue after upgrade latest version of Service bridge plugin

Vinay49
Tera Expert

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.

Vinay49_0-1740037105719.png

What could be the issue here.

 

5 REPLIES 5

Jappau
Tera Contributor

I had the same issue, and this is how I fixed it... 

My findings:

Service Bridge Integration – Investigation Summary

Environment: Provider and Consumer instances of Service Bridge
Plugins: Service Bridge for Providers and Consumers (upgraded to latest version, 2.0.55)
Feature Affected: Flow Designer Remote Task Definition (RTD) selection in the provider instance

Investigation Summary:

  • Whenever a trigger attempts to recreate a remote incident, the Flow errors out and loses the “Create Remote Task” information.
  • After reviewing the provider instance following the plugin and instance upgrades, I found that the RTD dropdown in Flow Designer is empty, preventing the creation of remote tasks and breaking automation flows that rely on RTDs.
  • The root cause is that Flow Designer now pulls RTDs from the sn_sb_identity table rather than directly from the RTD table.
  • The recent plugin upgrade introduced mismatched version support and the identity table, but the instance upgrade did not automatically populate identity records for existing RTDs. As a result, existing RTDs do not appear in the dropdown.

Impact:

  • Existing flows that rely on RTDs fail until identity records exist.
  • Any new RTDs also require identity records to appear in Flow Designer.

Resolution Implemented:

  • I created a script that automatically checks for missing identity records in sn_sb_identity and creates them for the affected RTDs.
  • After running the script, the previously missing RTDs appeared in Flow Designer, and remote tasks can now be created successfully.
var identityName = "XYZ Name - Incident Case to Incident";  // Name of the identity you are looking to create 
var rtdSysId = "94691d6d3b4f32d08b9491ae53e45a93";       // Sys ID of the existing RTD with the missing identity

// Check if the RTD exists
var rtd = new GlideRecord('sn_sb_pro_remote_task_def');
if (!rtd.get(rtdSysId)) {
    gs.info("Remote Task Definition not found: " + rtdSysId);
} else {
    // Check if an identity record already exists for this RTD
    var check = new GlideRecord('sn_sb_identity');
    check.addQuery('name', identityName);
    check.query();

    if (check.next()) {
        gs.info("Identity already exists: " + check.sys_id);
    } else {
        // Create a new identity record so Flow Designer can see the RTD
        var id = new GlideRecord('sn_sb_identity');
        id.initialize();
        id.name = identityName;
        id.published_revision_table = 'sn_sb_pro_remote_task_def'; // Link to RTD table
        id.published_revision = rtdSysId;       // Link to specific RTD

        var newId = id.insert();
        gs.info("Created Identity: " + newId);
    }
}


If my response helpful then please mark as helpful and accept the solution.