Variable editor not showing on dynamic request items

kchorny
Tera Guru

I have a catalog item, let's call it 'Request a network', where the user fills out a multi-row variable set (MRVS). Then the flow designer flow creates a request item (Catalog item = New connection) for each row in the MRVS. All that is working fine, the RITMs get created, but the Variables section is not visible on them at all.

 

When I view the form layout, I see Variable editor listed. I have several variables in this catalog item, so I'm stumped. I have checked for UI policies and client scripts running on the sc_req_item table and found nothing that would cause this. Nor are there any catalog UI policies or catalog client scripts for this catalog item. And even if there were, they wouldn't hide the entire Variable editor.

1 ACCEPTED SOLUTION

kchorny
Tera Guru

I figured this out. In my flow designer flow, I was using the OOB 'Create record' action to create the RITM records. I had to change my strategy and use a custom action with a script step that creates the RITMs using the following lines:

var helper = new GlideappCalculationHelper();
helper.addItemToExistingRequest(parentRequest,catItem,1);
helper.rebalanceRequest(parentRequest);

 

Where parentRequest and catItem are values that are passed into the custom action. When passing in parentRequest, the action input is a string and should be the related Request's sys_id.

View solution in original post

17 REPLIES 17

Hey @Community Alums i have already posted the code of custom action wher i have create the variable record baed on the RITM i'm creating from flow using for each loop. you can refer that.

 

If still you have any doubts.. i'll explain more about the code.

 

Please mark it helpful if the code helps you. Thank You.

How are you creating your REQ/RITM?

Community Alums
Not applicable

Hi @kchorny ! Thank you for your answer. RITMs are created through the service portal for each catalog item. I'm not sure how they did it since I didn't do the development myself, but the problem that the Variable Editor is not visible is occurring for all catalog items. Where can I search from how the creation of the RITM is done? Thank you.