How do I know current REQUEST number while Workflow is executing on sc_req_item table?

Rajanmehta
Mega Guru

Hello 

 

We are on Jakarta. 

I have Workflow executing on Request Item. (sc_req_item) and is generating a REQ and RITM. 

I found out that current.number will give me RITM number. 

How can I find corresponding  REQ number for the existing Workflow in progress? 

Please advise.

 

Thanks,

Rajan Mehta

 

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

you can use current.request

to get number you can do current.request.getDisplayValue()

View solution in original post

11 REPLIES 11

Mike Patel
Tera Sage

you can use current.request

to get number you can do current.request.getDisplayValue()

Thank you Mike. 

It works. 

Thanks.

 

Hi Mike, 

 

I have a wf on sc_req_item. 

I'm creating a incident in this wf.

I want to update the work notes of INC with REQ and RITM number.

How can i achieve it?

Please suggest.

I tried "current.work_notes += ' - ' +current.request;" these codes but no luck.

How are you creating INC in workflow using task activity ? 

If so than you can add something like below in advance script section of create task activity in workflow.

var notes = "Request Number: " + current.request.getDisplayValue();
notes += "\nRequested Item: " + current.number;
task.work_notes = notes;