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

Create a service fulfillment step type

Jacob_Heubner
Mega Expert

Good evening.

I'm trying to get a better understanding of the capabilities of the Service Request Fulfillment Flow Designer flow, in an attempt to enable a Citizen Developer program in our organization.  I see that out of the box, I can easily add a Task and Approvals.  The documentation https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/... implies it's possible to generate other actions, but, trying to extend the sc_service_fulfillment_step table, but states: the Domain master attribute should be added and its value should be set as service_fulfillment_stage.

 

I'm unclear on this step.  I have extended the table, I have built out a subflow, built out the record producer, tested the catalog item and my new task type action is present and my new questions get asked, but the record doesn't generate.  If I manually test the subflow in Flow Designer, I get the results I expect, but it doesn't seem like my custom item is attached to the main flow 

 

Does anyone have working examples of a custom Service Request Fulfillment step?

1 ACCEPTED SOLUTION

Jacob_Heubner
Mega Expert

Ok, I never did figure out what this means: the Domain master attribute should be added and its value should be set as service_fulfillment_stage. But, I did figure out what I was doing wrong.

I had completed steps 1, 2 and 3, but in step 4, I had the subflow pointing to the out of the box Task subflow, so my custom flow wasn't being triggered.  Once I made that update, my custom actions worked as expected.  

View solution in original post

5 REPLIES 5

I figured out how to add domain master use below background script

Create a new attribute in the dictionary entry give value as service_fulfillment_stage leave attribute empty, takes it sys_id and query using below glide record and update attribute with d95bb0b3eb321100d4360c505206fe02

var gr = new GlideRecord('sys_schema_attribute_m2m');
if (gr.get('<Sys_id of attribute record')) {
gr.attribute = 'd95bb0b3eb321100d4360c505206fe02';
gr.value = 'service_fulfillment_stage';
gr.update();
gs.print('Record updated successfully: ' + gr.sys_id);
} else {
gs.print('Record not found.');
}

screenshot