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

Examples of how to Modify a field using the WEB API

SOLVED
Go to solution
Highlighted
Victor Garzón
Acclaimed Contributor

Examples of how to Modify a field using the WEB API

Hi,
I'm developing a web interface for a company that uses SD. I'v already sorted how to GET the information stored in a service call, and also SET a new service call.
The problem is that I can't find any example of how to MODIFY, the call history for inserting a follow up commentary.
Could you tell me where to look for that information? How may I use the API's entities to accomplish my goal?

Thanks in advance,
Victor
1 REPLY
Shilovskiy.Oleg
Occasional Contributor
Solution

Re: Examples of how to Modify a field using the WEB API

IHistoryLineServicecallHome vHLHome = bean.sd_session().
getHistoryLineServicecallHome();
IHistoryLineServicecallWhere lineServicecallWhere = vHLHome.createHistoryLineServicecallWhere();
lineServicecallWhere.
addCriteriumOnSubject("Any Subject");
IHistoryLineServicecall[] vHL = vHLHome.findHistoryLineServicecall(lineServicecallWhere);

Replace addCriteriumOnSubject on Your condition from IHistoryLineServicecallHome Entity

Good Luck!
//Add this to "OnDomLoad" event