Answered by:
MSCRM 2011 - Connecting to none MSCRM Db from a plugin

Question
-
Hi,
I would like to access another dB from my plugin. But I am not sure if this is something I should do and if I can use EntityFramework ta handle this other dB?
Indeed I am wondering if my plugin is not going to be too heavy and if it is technically possible. I want to do this to keep track of my data transaction between MSCRM and queuing system. Once I create an Account/Contact I insert record with transaction ID with status "Sent" into another dB. Once I receive the aknowledge I change status to Succeed/Failed. I do not want to put those information in MSCRM dB.
I hope it is clear and you could advice me.
Thanks.
CC
Thursday, June 30, 2011 5:00 PM
Answers
-
As long as you are not working with the CRM database I don't see why ado.net or entity framework connections should be a problem from within a plugin.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Thursday, June 30, 2011 5:36 PM
Thursday, June 30, 2011 5:36 PMModerator -
There is no restriction to access a DB unless you are on sandbox mode. However, if you are trying to access the CRM database directly from a plugin there might be better ways (and supported ways) to achieve what you need using the SDK from the plugin.
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Friday, July 1, 2011 10:54 PM
- Marked as answer by Cedric Carvalho Monday, July 4, 2011 7:55 AM
Friday, July 1, 2011 10:54 PMModerator
All replies
-
As long as you are not working with the CRM database I don't see why ado.net or entity framework connections should be a problem from within a plugin.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Thursday, June 30, 2011 5:36 PM
Thursday, June 30, 2011 5:36 PMModerator -
There is no restriction to access a DB unless you are on sandbox mode. However, if you are trying to access the CRM database directly from a plugin there might be better ways (and supported ways) to achieve what you need using the SDK from the plugin.
Gonzalo | gonzaloruizcrm.blogspot.com
- Proposed as answer by Gonzalo Ruiz RModerator Friday, July 1, 2011 10:54 PM
- Marked as answer by Cedric Carvalho Monday, July 4, 2011 7:55 AM
Friday, July 1, 2011 10:54 PMModerator -
Ok so I will use Entity Framework. I am not using it to connect to MSCRM db for my requirements SDK is enough. It is just to have a monitoring dB which is out of MSCRM.
Thanks you very much.
CC
Monday, July 4, 2011 7:55 AM