Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

KM API : Creating External Link with Overwriting feature


I am using KM API to create an external link on a KM folder.

This is the code which I am using for it.

      pathRID = RID.getRID(p_parent);
      collection = (ICollection)p_ResourceFactory.getResource(pathRID, p_ResouceContext);
      collection.createLink(p_childname, URL.getInstance(p_linkValue), LinkType.EXTERNAL, null);
    catch (NameAlreadyExistsException naee) {}

Now, in my case, there are chances that an external link with same name already residing in same folder. In this case I want my method to overwrite existing external link with the new one.

How to do it?

Thanks and regards,

Amey Mogare

Not what you were looking for? View more on this topic or Ask a question