How can we get Request details from Requested Item?

kmishra76k
Tera Expert

Hi

Need  a code : Request details associated with Requested Items.

Number

SLA Due

Opened

 

Thanks in advance,

Keyur

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

If using client script you can use g_form.getReference('request',callback function).

If using Business rule you can dot walk to request field on Requested item form.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Hi Jaspal,

 

Thanks for your reply.

I am looking for mail script.

to send notification to User with Request Details.

But I am configuring it on sc_req_item table.

 

Request: ${URI_REF}

Item Name: ${cat_item.name} has been closed

Description: ${mail_script:request.var_req_description}

Additional comments: ${comments}

 

 

THis is my code. I want one more mail script with Request Details.

  • Link to the request
  • Request number
  • Sla due
  • When it was opened

Could you please help me out.

hi,

you can use anchor tags to embed the URI of request by adding the lines:

 

var str='<a href="sc_request.do?sys_id=' + current.request + '"> ' + current.request.number+ '</a>';

use the variable accordingly

  • Request number-current.request.getDisplayValue();
  • Sla due-current.request.sla_due.getDisplayValue();
  • When it was opened-current.request.opened_at.getDisplayValue();

all assuming the the notification is on sc_req_item table.