In SOW view need to set field value.

Abhilasha G T
Tera Contributor

Hi Team,

Given that I am a SOW user in the ITSM space
When I open an interaction ticket
Then the Custom Product field on an Interaction is set to Incident

 

How to achieve this.

 

Regards,

Abhilasha G T

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@Abhilasha G T 

you can use onLoad client script on interaction table which applies to workspace view and then set the field you want

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi Ankur ,

i have written BR for that,

Product field is not available on the form , in list we can see , and i want to set the View as SOW.

 

Regards,

Abhilasha G T

@Abhilasha G T 

try this in business rule script if that works

var isPresent = gs.action.getGlideURI().toString().indexOf('viewname') > -1;

if(isPresent){
// your logic to set the field
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

hi Ankur,

i tried BR, it's not working,

 

Product field is a reference field to product inventory

any code like onsubmit client script with script include?

Regards,

Abhilasha G T