Service Catalog Interaction Creation Process (251 Views)
Reply
Valued Contributor
KH_Ng
Posts: 66
Registered: ‎03-24-2013
Message 1 of 3 (251 Views)

Service Catalog Interaction Creation Process

Hi Experts,

 

I want to populate a value in the interaction ticket using a javascript when a user submits a ticket through the service catalog. Any idea where I can call my javascript to input a value into a field in the interaction ticket?

 

Thanks in advance.

Trusted Contributor
dpetrich
Posts: 64
Registered: ‎07-06-2011
Message 2 of 3 (222 Views)

Re: Service Catalog Interaction Creation Process

Are you talking about populating the interaction field with a value submitted in the service catalog service options field?

If so, check out my post here:

http://h30499.www3.hp.com/t5/HP-Service-Manager-Service/Catalog-Approvals/m-p/6511052#M111138

 

If you just simply want to populate a field in the interaction, I don't see why you wouldn't be able to accomplish this by calling the javascript on an add event within the format control (just ensure that the add event only gets called for interactions of category 'service catalog')

Honored Contributor
Piku
Posts: 4,128
Registered: ‎06-17-2010
Message 3 of 3 (179 Views)

Re: Service Catalog Interaction Creation Process

Hi,

You can achieve this by trigger on 'incidents’ table.
Create a new trigger with 'before add’ condition and put the if statement checking if record is created from SR. Check can be done on base of any unique field used/filled with some particular value only in case of SR. Mostly such interaction has 'service catalog' as category.

And put you field value like,
record.field_name="value to be made"

hth,
____________________________________
Assign Kudo, if found post useful and mark it accepted if solves the issue.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.