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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.