Integration hub ebonding spoke is enabled, now how to create trigger condition, action to integrate another instance incident module

Arun Prakash A1
Tera Contributor

Integration hub ebonding spoke is enabled, now how to create trigger condition, action to integrate another instance incident module.

Any script is required to configure ebonding spoke? Please provide the step by step document. 

1 ACCEPTED SOLUTION

@Arun Prakash A 

You can see the script being called by the Action by clicking the highlighted part

Regards
Ankur

 

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

17 REPLIES 17

Worknotes from Instance A is not captured on Instance B.

1. Below is the local instance, which shows worknotes as "Update"

find_real_file.png

2. Below is Remote instance and Correlation incident is not showing the worknotes and its not captured here.

find_real_file.png

@Arun Prakash A 

I just checked and there are few fields and only those seems to be copied over to other instance during creation and updating using ebonding.

Work notes is not present in that so it might not get copied over.

Create Remote Incident Action -

find_real_file.png

Update Remote Incident Action -

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Arun Prakash A 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Payloadbuildercustom, is this script available on the link which you have shared?

can i get the sample script for the ebonding spoke.

Hi,

I was able to locate it as script include

PayloadBuilder

You can try include work_notes in the script if required by updating this function.

Then test whether work_notes gets updated in other instance or not

Note: I haven't tested it yet

createIncidentPayload:function(incident_sys_id){
        var incidentSysId = incident_sys_id;
        var incidentRec = new GlideRecord('incident');
        incidentRec.get(incidentSysId);
        var incidentValues = {
            correlation_id: incidentRec.getDisplayValue('number'),
            short_description: incidentRec.getDisplayValue('short_description'),
            description: incidentRec.getDisplayValue('description'),
            state: incidentRec.getDisplayValue('state'),
            caller_id: incidentRec.getDisplayValue('caller_id'),
            business_service: incidentRec.getDisplayValue('business_service'),
            category: incidentRec.getDisplayValue('category'),
            impact: incidentRec.getDisplayValue('impact'),
            urgency: incidentRec.getDisplayValue('urgency'),
            cmdb_ci: incidentRec.getDisplayValue('cmdb_ci'),
            assignment_group: incidentRec.getDisplayValue('assignment_group'),
            assigned_to: incidentRec.getDisplayValue('assigned_to')
            work_notes: incidentRec.work_notes;
        };
        var contactType = incidentRec.getDisplayValue('contact_type');
        if(contactType)
        {
           incidentValues.contact_type =contactType;         
        }
        
        var subcategory = incidentRec.getDisplayValue('subcategory');
        if(subcategory)
        {
           incidentValues.subcategory =subcategory;         
        }
        return incidentValues;
    },

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader