Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

HPOV 4.5 ITEmplate API

Highlighted
fred_fr
Acclaimed Contributor

HPOV 4.5 ITEmplate API

Hello All,

I want to create servicecall and workorder templates by using the API.

 

I tried the following code:

ITemplateHome temp_home = sessionHP.getTemplateHome();

new_template=temp_home.openNewTemplate();

 

but I have the error message

 

For template, the following fields are required: Item

 

I tried this code without success:

 

IEntityInfoHome Ie_home = sessionHP.getEntityInfoHome();
IServicecallHome sc_home = sessionHP.getServicecallHome();
IEntityInfo ient = Ie_home.openEntityInfo(sc_home.getEntityID());
new_template=temp_home.openNewTemplate(ient.getID());

 

Any help will be greatly appreciated.

thank's in advance

Fred

//Add this to "OnDomLoad" event