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

WEB API Java - IIncident - How to find the last modified date?

SOLVED
Go to solution
Highlighted
cheval_1
Acclaimed Contributor

WEB API Java - IIncident - How to find the last modified date?

Hi,

I'm using the web api from a portal to connect the HPOV database.

I want to get the last modification date for an IIncident but I don't know how to do that.
There are no solutions in the given examples and I didn't find anything on this forum.

If someone knows how to do this, please let me know !

Thanks.
4 REPLIES
The Pike
Honored Contributor
Solution

Re: WEB API Java - IIncident - How to find the last modified date?

Did you look in the web-api javadoc?
cheval_1
Acclaimed Contributor

Re: WEB API Java - IIncident - How to find the last modified date?

Yes I looked at the javadoc and tried to use several things such as IHistoryLineIncident but I didn't find any solution to my problem.

I tried to use almost every method I found which contained the word "date" but I can't find the right one!
cheval_1
Acclaimed Contributor

Re: WEB API Java - IIncident - How to find the last modified date?

OK, I think I've found the solution.

In fact you have to use the IRegistration interface and its getModified() method.

Let the incident be inc.
To get the last modification date use the following command:

inc.getRegistration().getModified();


Bye
cheval_1
Acclaimed Contributor

Re: WEB API Java - IIncident - How to find the last modified date?

Thanks
//Add this to "OnDomLoad" event