Answered by:
CRM 2013: Format and C# code to add attachment

Question
-
I have created a very simple custom entity. I want to be able to add attachment to this entity record. Now I have 2 questions
1) What kind of field should I create and how do make it available in the entity form.
2) What would be the simplest C# code to add attachment to a entity record
Hasibur Rahman
Wednesday, April 29, 2015 11:54 PM
Answers
-
Hi Hasibur,
1. To enable notes section in your entity form, have a look at the below given link for a step by step tutorial.
http://www.powerobjects.com/2012/03/06/a-tip-for-notes-when-you-create-a-new-entity-in-dynamics-crm/
2. To add attachment to a crm record using C# follow the below link:-
https://msdn.microsoft.com/en-us/library/gg328429.aspx?f=255&MSPPError=-2147217396
Let me know if you facing any issues.
Hope this helps!!!
Thanks,
Prasad
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.
- Marked as answer by Hasibur Rahman Saturday, May 2, 2015 12:17 AM
Thursday, April 30, 2015 5:20 AM -
Thanks - this resolved the issue
http://www.powerobjects.com/2012/03/06/a-tip-for-notes-when-you-create-a-new-entity-in-dynamics-crm/
Hasibur Rahman
- Marked as answer by Hasibur Rahman Friday, March 25, 2016 7:46 PM
Friday, March 25, 2016 7:46 PM
All replies
-
Hi Hasibur,
1. To enable notes section in your entity form, have a look at the below given link for a step by step tutorial.
http://www.powerobjects.com/2012/03/06/a-tip-for-notes-when-you-create-a-new-entity-in-dynamics-crm/
2. To add attachment to a crm record using C# follow the below link:-
https://msdn.microsoft.com/en-us/library/gg328429.aspx?f=255&MSPPError=-2147217396
Let me know if you facing any issues.
Hope this helps!!!
Thanks,
Prasad
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.
- Marked as answer by Hasibur Rahman Saturday, May 2, 2015 12:17 AM
Thursday, April 30, 2015 5:20 AM -
Thanks - this resolved the issue
http://www.powerobjects.com/2012/03/06/a-tip-for-notes-when-you-create-a-new-entity-in-dynamics-crm/
Hasibur Rahman
- Marked as answer by Hasibur Rahman Friday, March 25, 2016 7:46 PM
Friday, March 25, 2016 7:46 PM