Random Musings

March 19, 2009

Obtaining the link to download the attachment

Filed under: Dynamics CRM — haditeo @ 11:47 am

When i observed how does the CRM save the attachment such as Microsoft Word document or Microsoft Excel document, actually CRM is saving them as a series of text.

After trying to manually save that series of text with the correct file extension, it’s still cannot be read.

After googling around, i found this useful article : http://mscrm4ever.blogspot.com/2009/02/displaying-image-in-iframe.html

To obtain the correct link to the attachment inside the notes, i can use this link :

Subsitute the MSCRMOrganizationName with your correct MS CRM Organization Name. AttachmentType = 5 means that we are trying to retrieve an attachment from inside the Notes entity. Annotation object type code is 5. The AttachmentId here is referring to the annotationid of the particular attachment

To obtain the correct link to download the attachment of the email, i can use the following link : http://localhost/MSCRMOrganizationName/Activities/Attachment/download.aspx?AttachmentType=1001&AttachmentId=E0A91814-2614-DE11-9396-0003FF4F593C

AttachmentType=1001 is referring to the Email object type code. AttachmentId here is referring to the activitymimeattachmentid


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: