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

Karan Chhabra6
Mega Sage
Mega Sage

@Prashanth Ranga  - is it a before insert business rule? If yes, please change to after business rule and check again.

 

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

 

Thanks!

Hi Karan  ,

 

I have used after insert BR

 

PrashanthRanga_0-1687268299509.png

 

 

Thanks in Advance 

Prashanth 

@Prashanth Ranga  - please try with the below line

var REQNumber = current.request.getDisplayValue();

 

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

 

Thanks!

Hi karan , 

 

I have tried , still the same result - blank

 

PrashanthRanga_0-1687269325391.png

 

any other way , please suggest  

 

Thanks in advance 

Prashanth