You are viewing limited content. For full access, please sign in.

Question

Question

LinkTypeID

asked on April 14, 2015 Show version history

What is the id for attachment?

Where can I find all these const values in the documentations? I can't find it in the SDK document.

0 0

Answer

SELECTED ANSWER
replied on April 14, 2015

Document Links are user-defined (like fields, templates, etc) so there are no constant values for them.  You can use LFDatabase.GetAllLinkTypes() to return a collection of LFLinkType objects.  That class exposes properties for the ID and names.  You can also refer to the link_types table to see the current list of link types.

That said, the Supersedes/Superseded by and Attachment/Message link types do exist by default and will probably have ids 1 and 2, respectively.  This is just because they were the first 2 created, not because those ids were reserved for them.  If you want to make your code portable across repositories, you should avoid hard-coding the ids.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.