cancel
Showing results for 
Search instead for 
Did you mean: 

get LastModified from KM Document / Folder IResource = null

Former Member
0 Kudos

IWDClientUser wdClientUser = WDClientUser.getCurrentUser() ;
  com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("km_svc");
IResourceContext resourceContext = new ResourceContext(user);
IResourceFactory resourceFactory = ResourceFactory.getInstance();
RID file =  RID.getRID(PathForRid);
  IResource i_resource = resourceFactory.getResource(file, resourceContext);







I have the Code above. I would know the LastModified - Date from the specific Km - Path given in RID. BUT i_resource is allways null 😞 What should be the right way?

kind regards

Micha

Accepted Solutions (0)

Answers (1)

Answers (1)

SandipAgarwalla
Active Contributor
0 Kudos

Micha

I am not sure if your problem is solved, but I think here are couple of things you can check

change the code at,

IResourceFactory resourceFactory = ResourceFactory.getInstance();  

make it,

IResourceFactory resourceFactory = ResourceFactory.getInstance(user);  

RID file =  RID.getRID(PathForRid); 

What is the value in PathForRid ??