Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adding a variable to the secondary fields displayed on header

ShaziyaS4380655
Tera Contributor

@Brad Tilton 

 

 

 

If i want to add the variables that is present in the variable set , and when a request is created form the portal we will have this variable onto the requested item ,so how to add the variable to the secondary fields displayed on header in the workspace , how can it be achieved.

1 ACCEPTED SOLUTION

svirkar420
Tera Guru

Hello @ShaziyaS4380655 ,

This can be done using a business rule here is how you can do it.

create secondary custom fields on the sc_req_item table for the variables that you want to display in the workspace header example u_location u_customer_name etc then use a business rule on the ritm creation to copy the values from the catalog item variables into these fields this ensures that whenever a request is submitted the values from the variable set are stored in dedicated fields finally go to ui builder open the record header configuration for sc_req_item and add these custom fields into the secondary fields section now when an agent opens the request in workspace the variable values will be visible in the header.

 

@ShaziyaS4380655 , Please mark this solution as Accepted and Helpful as it will be helpful for other users as well.

Best Regards,

Saurabh V.

View solution in original post

8 REPLIES 8

@svirkar420 

I want to add view for table like requested items , catalog tasks so that only specific fields are visible into the workspace,  even i have created workspace view rules, ui view , configured viewruleconfigid into the ux page property, but the thing is if i create view from the table and added the fields which are required , it is getting added into the form section , but not getting reflected to the workspace.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ShaziyaS4380655 

 

Any screenshot , what you looking for ?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

ShaziyaS4380655_0-1757938638987.png



here is the screenshot , here I have shared the incident record form, into my application it represents the requested item form beside category I want to add the variable  , that is present on the requested item when a request is created ..

can u please help over this...

Hi @ShaziyaS4380655 

 

Thanks for sharing this. I have some doubts about whether this can be achieved. Generally, the header you're referring to involve fields or dictionary entries, which travel along with the table. However, in this case, you're talking about a variable, which is stored in a different table—so I'm not sure if it's possible.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************