How to get request field number which is in RITM form which is a ref field

Prashanth Ranga
Tera Contributor

Hi All , 

 

I have written a business rule on sc_req_item table 

 

I need to get the request number which is on RITM form . I am getting blank value currently 

I have tried below 

var REQNumber = current.getDisplayValue('number'); 

var REQNumber = current.request.getDisplayValue('number');

var REQNumber = current.request.getDisplay('number');

 

Please let me know in code how to get the request number which is in RITM form 

 

Thanks in advance ,

Prashanth 

7 REPLIES 7

@Prashanth Ranga  - please try this, it should work

var reqRef = current.request.getRefRecord();
var reqNum = reqRef.number;

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

Tried , 

 

I feel getting the object , but not the request number 

 

PrashanthRanga_0-1687271541146.png

 

 

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Prashanth Ranga,

 

use this

var REQNumber = current.request.number.toString();

 

mark helpful if it works

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)