Get all Item File associations

Get all Item File associations

Anonymous
Not applicable
938 Views
1 Reply
Message 1 of 2

Get all Item File associations

Anonymous
Not applicable

Is there any call to get all file associations to an Item (other than Attachments)

The GetItemFileAssociationsByItemIds call passes a second argument of  ItemFileLnkTypOpt which can be Primary, Primary Sub et, but not one for All. This would seem to indicate the only way the find all associations is to repeatedly call GetItemFileAssociationsByItemIds passing each of the options in turn and collecting the results together. Any better advice?

0 Likes
Accepted solutions (1)
939 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Foud it

Create  a field like this and pass to argument

    ItemFileLnkTypOpt allOptions;   = ItemFileLnkTypOpt.Primary | ItemFileLnkTypOpt.Secondary | ItemFileLnkTypOpt.Tertiary | ItemFileLnkTypOpt.StandardComponent | ItemFileLnkTypOpt.PrimarySub | ItemFileLnkTypOpt.SecondarySub;     

0 Likes