Template on Service Catalog item

Ruth_Porter
Kilo Explorer

Hi everyone,

From trial and error it seems that if you link a template to a service catalog item it only uses it if the item type is record producer.

We would really like to preset some values using a template but do not want to use a record producer.

So my question is:
1. Is that correct (that template only used on a record producer)?
2. If so, does anyone have any tips on preseting values?

Thanks in advance, Ruth

8 REPLIES 8

Not applicable

Hi Ruth,

I'm looking at doing the same thing, and the only other way I can see to do it is to set every field as a hidden variable for the item and set the default tot he value you want. I don't think this is the best way of doing things, so I was considering using templates. I'll be interested to see the responses you get..

Jenny.


Where are you trying set default values?
On the item order variables, request, requested item, or in the sc_task record?


Hi John,

On the request

Thanks


Build the request template you want.
Create a business rule to apply the template.


//business rule: Apply Request Template
//table: sc_request
//run at: server
//when: before (insert)
//condition: define the requests that you want to apply the template to
//script:

current.applyTemplate('my_req_template');