Given a path, locate the Attachment ....?
Posted: Tue Jun 09, 2020 2:45 pm
Hello-
SPS version 4.3
My starting point is a path string, which identifies an Attachment in my currently active Order.
Is there a way to resolve that path to the desired IAttachmentFile ?
Here's a snippet from an example in the SDK :
....but I'm assuming it only queries files within the given folderitem, but I want to use the SDK to locate the target anywhere in the Attachments tree.
Please advise.
Thank you.
SPS version 4.3
My starting point is a path string, which identifies an Attachment in my currently active Order.
Is there a way to resolve that path to the desired IAttachmentFile ?
Here's a snippet from an example in the SDK :
Code: Select all
IAttachmentFile fileItem =
folderItem.Items
.Where(t => t.Path == filePath)
.Cast<IAttachmentFile>()
.FirstOrDefault();
Please advise.
Thank you.