I'm currently debugging some code which is supposed to return an attachment for a given document, but no attachment is coming back. Raven studio indicates that there are attachments in the database - it shows me that a number of attachments exist - but I can't see, via the studio web UI, if a particular document has an attachment.
Is there a way to query attachments via the studio UI? Also is there a way to tell if a document has an attachment via the studio UI? Online documentation don't seem to be clear on this. Alternatively is there a way to query ravendb using the http API for attachments?
I've tried the url suggested in RavenDB attachments but it returned an empty array as a response
GET databases/{databaseName}/static/ will give you the list of attachments in the db.
Related
I want to forward Lotus Notes mail using a REST API with Objective C. With this method, the mail is still in the Draft directory, but never sent.
https://servername/mail/xxx.nsf/($Drafts)/$new/?EditDocument&Form=l_JSVars&PresetFields=Form=m_SentView,s_NotesForm;memo,s_CopyFromUnid;parentUnid
How can I do this?
To the best of my knowledge, there is not a URL command to forward or send an email. I believe that the way to do this would be by using the Domino Data Service's Document PUT command to create a new document in the server's mail.box database. If your goal is to forward, your code will have to read the existing document, add the required item values for mailing (e.g., SendTo, etc.) and PUT the result into mail.box.
We are trying to download attachments of embedded email within an email. Unfortunately embedded email is of type message/RFC822 and does not have any information available even if ItemAttachment is loaded into memory using ItemAttachment.Load().
When we then try to load EmailMessage using ItemAttachment.Item.Load() we get an exception saying "This operations isn't supported on attachments".
Could anyway please help? Spent two days researching how to get it done and after many tries, still without success.
Is there a way to retrieve ALL of the attachments from Rally? All of the export options in Rally appear to export only data, not the attachments. I want to be able to export attachments as well.
Does the API support retrieving attachments?
you can get at attachments through the web services api. You would need to issue a query for the artifacts you want to loop over and then check the Attachments field on that artifact - it should be a collection of attachment artifacts. This should be documented in the web services api documentation (Help in Rally > Web Services API in the upper right) For example - look at Defect, then look for the Attachments field and the Attachment Type for more information.
Hope that helps.
I am writing an Outlook addin that inserts content into an email, and I have a emailSent event that I would like send an event back to my server letting me know some content was shared.
Is there a way to attach some meta information to the email (or the word doc, which is what you are creating in outlook) so that I can grab that meta info so I can send it back to my server.
Right now, the only way I think I can do it is to search through the email on the send event looking for my content with regex and pull out the info i need, but that seems cumbersome, and also means I need to run the regex for every email sent, even when they haven't added my content.
There is the concept of MAPI user properties, which you can add to an Outlook item. Since Office 2007 the object model allows access to them. If your add-in must run also with older Outlook version, you should recurr to use Redemption (which I prefer also for higher office versions because it has more flexibility, albeit a greater footprint in distribution).
See UserProperties Interface on MSDN.
On my SharePoint 2010 site I have a list of items (Document Library). This library contains xml files.
Also, I have a Visual Web Part which displays data from these xml files.
Is there a way to somehow bind the web part to this document library so that the items will be opened via the web part?
Note:
At this point the list item has a hyperlink field which points to the web part page and provides the location of xml file as query string. When the link is accessed, the web part gets provided xml data and parses it as it should.
The problem with this approach is that an absolute url is saved in item's field, which will result into problems when server is changed.
Thank You!
Look into the Sharepoint 2010 "Related List" feature. Sharepoint 2010 allows to send and receive data between webparts, so even your custom webpart.
See the following link for a how-to: SP 2010: How To - Relational lists in SharePoint 2010