How to display fields data on service portal approval record for RITM and change approvals

prasad8
Giga Expert

I need to populate fields based on the approval request in service portal, if change request approval need to populate Assignment group and assigned to fields. for RITM approvals not required those two fields. I can see these two fields in both Approval requests (change / RITM)

I need to populate only in RITM approval request.

 

Can any one help me on this

find_real_file.png

4 REPLIES 4

Sai Kumar B
Mega Sage
Mega Sage

Hi Author,

1.) If you're using the OOB widget Clone the "Approval Record" widget and do the following modifications

2.) In line 21 Include assignment_group and assigned_to as well

find_real_file.png

3.) In HTML add the assigned_to and assignment_group in the following format

find_real_file.png

 

HI @Sai Kumar ,

 

I have already added in the widget as you mentioned, It is visible in RITM approval request as well. But i need to populate Assignment group and assigned to in Change approvals not in RITM approval record. 

Thanks,

prasad

 

 

before 21 line in Server script include the condition to check table 

if(task.getRecordClassName() == 'change_request') {

pass assigned_to and assignment_group as well

} else {

//keep it as is

}

prasad8
Giga Expert

Hi @Ankur Bawiskar

 

Could you please help me on this, How we can restrict only for Change approval form.

 

Thanks,

Prasad