Hi i need a related list created in the record producer as "Request PIR" once clicked i need problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 02:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 03:59 AM
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:
but still its not showing the ui action or related list and its not working not sure what i have missed in this
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 04:02 AM
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');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 04:12 AM
@Ankur Bawiskar right now after making changes its showing in record producer related list
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 .
i need that related list 'Request PIR " in this form
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 04:18 AM
Hi Ankur,
in record producer "request RCA" now in the related list i can see "Request PIR"
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.
in this there related list showing up as "request pir"
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 04:42 AM
that's what I already said
related list is not shown on record producer form; but only on normal form
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader