I have a requirement to display a SharePoint 2010 document library in an IFrame which will be hosted in a MS Dynamics CRM 4 entity form.
Through the IFrame to the document library, I want to be able to add new and upload existing documents. These documents need to be tagged in SharePoint 2010 with certain CRM entity attributes.
It is proposed these tags will be passed to SharePoint via the IFrame url i.e. ID1=123&ID2=456 etc.
I'm thinking an application page to capture the parameters and an event receiver to tag the documents.
I'm able to extract the parameters from the URL in the app page and add them to a helper class but I can't think how I can join this up with the event receiver - the event receiver can't get access to the existing instance of the helper class and using a static wont support more than 1 update at a time.
The other option that comes to mind is to code all of the required New document and upload functionality and thereby have the paramrters to hand. I think I'd need to throw up a dialog when a document was being created / uploaded that the user would need to close so that I can update the metadata.
I'm open to other solutions .....