Skip to Content

KM API : Creating External Link with Overwriting feature

Hi,

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

This is the code which I am using for it.

    try
    {
      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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 09, 2009 at 04:36 AM

    I could not get any response to this question here. Seems like I need to post this to Portal forum??

    For the time being, I am deleting existig Resource and creating a new one!

    Add comment
    10|10000 characters needed characters exceeded