Hi i need a related list created in the record producer as "Request PIR" once clicked i need problem

siddharth26
Tera Guru

Hi ,

 

I have an requirement i need to create a Related list called Request PIR once i click on that it should create a problem task in problem table.

 

So am not able to find UI action in record producer to create a UI action,

and also could you please let me know how to create a related list in the record producer called" Request PIR" once clicked on that a problem record should be created

 

thanks in advance

 

thanks

Sid

11 REPLIES 11

Yes Ankur,

i tried creating same ui action with table "sc_cat_item_producer " since its a record producer.

and ui action named: "request PIR"

and in Ui condition i mentioned : !current.isNewRecord()

this is the below script:

siddharth26_0-1685962703242.png

but still its not showing the ui action or related list and its not working not sure what i have missed in this 

 

thanks

 

 

ui action script:

var pir = new PIRUtilities();
var answer = pir.createPIR(current);
if (answer) {
var ptaskSysId = answer.split('#####')[0];
var problemSysId = answer.split('#####')[1];
var problemNumber = answer.split('#####')[2];
var ptaskNumber = answer.split('#####')[3];
var ptaskLink = "<a href='/problem_task.do?sys_id=" + ptaskSysId + "' target='_blank'> " + ptaskNumber + "</a>";
var problemLink = "<a href='/problem.do?sys_id=" + problemSysId + "' target='_blank'> " + problemNumber + "</a>";
action.setRedirectURL(current);
gs.addInfoMessage(problemLink + ' and ' + ptaskLink + ' has been created successfully');

@Ankur Bawiskar right now after making changes its showing in record producer related list

siddharth26_0-1685963441451.png

Request PIR , but how do i get this related list in the end user form level.

here in this form i need this related list .

siddharth26_1-1685963535236.png

i need that related list 'Request PIR " in this form

thanks

Hi Ankur,

 

in record producer "request RCA" now in the related list i can see "Request PIR"

siddharth26_0-1685963776697.png

 

but in the form level when i click on "try it " and view the form from the end user perspective am not able to see the related list in the form level as shown below.

 

siddharth26_1-1685963856818.png

 

in this there related list showing up as "request pir"

thanks

 

 

@siddharth26 

that's what I already said

related list is not shown on record producer form; but only on normal form

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