Scripted records not appearing in Requests list on portal for requested_for user

PLakin1
Tera Guru

This one is a complicated scenario due to the records currently utilized in our instance and also our integrations, but the impact is pretty straight-forward.

 

Records generated from a workflow in a catalog item are not being added to the Requests list for the user they were opened for. They are all Request records and the initial request generated from the catalog item is available, but the ones generated by the script are not. Could someone point me to whatever interaction creates the link to the Requests list for users?

 

Thanks!

Paul

7 REPLIES 7

Brian Lancaster
Tera Sage

Can you share you script? Please use the insert edit code sample when you are in the reply editor. 

BrianLancaster_0-1728571899746.png

What do you mean by the requests list for the user? Are you referring to Service Portal?

I used a Create Task workflow action on the sc_request table with the following Advanced Script:

 

 

I used a Create Task workflow action on the sc_request table with the following Advanced Script

task.assignment_group.setDisplayValue("Fake Assignment Group");
task.short_description = "Example Short Description;
task.description = "Example Description:";

The Requested For field is setup in the non-script portion of the workflow action. It's being set correctly in the ticket, but is not available from the Requests list in the Service Portal.

 


The Requested For field is setup in the non-script portion of the workflow action. It's being set correctly in the ticket, but is not available from the Requests list in the Service Portal.

Is the requested_for being set on the sc_request table or just the sc_req_item table?

I apologize if I'm not conveying this well. As I mentioned above, it's a Create Task workflow action set to the sc_request table. I can confirm it is working from the ticket itself having the desired requested_for. All of the tickets, for all intents and purposes, looks like it should. The only factor that I can't account for is that it isn't showing in their Requests list in the Employee Center (apologies for saying Service Portal).

PLakin1_0-1728577599862.png