Answered by:
TransactionScope using CRM Web service

Question
-
Hello,
I wanted to know if there was a way to use TransactionScope with CRM web service. We have business rules in custom applications which need some updates to CRM records to be rolled back based on some business rules. Normally, when using a direct sql access through ADO.net, you would use TransactionScope and call the .Complete() at the end, and any exception would rollback whatever changes that have been made but not committed yet.
Using Microsoft CRM 4.0 API, I wanted to know if there is a way to do it.
Thanks,
Friday, May 14, 2010 5:00 PM
Answers
-
Hi.
Transactions are unaccessible in CRM 4.0. But this possibilities may appear in CRM 5.0.
Truth is opened the prepared mind
My blog (english)
Мой блог (русскоязычный)- Marked as answer by sarithab Friday, May 14, 2010 5:13 PM
Friday, May 14, 2010 5:06 PMModerator -
Hi
I am afraid, Transcations are not there with MS CRM WEbservices. It is also not there in plugins & workflows.
So if you want transactions the only option is to roll back manually in a try catch block. :(
I think MS CRM 5 might have transactions in Plugins.
Muhammad Ali Khan
http://malikhan.wordpress.com- Marked as answer by sarithab Friday, May 14, 2010 5:14 PM
Friday, May 14, 2010 5:07 PM
All replies
-
Hi.
Transactions are unaccessible in CRM 4.0. But this possibilities may appear in CRM 5.0.
Truth is opened the prepared mind
My blog (english)
Мой блог (русскоязычный)- Marked as answer by sarithab Friday, May 14, 2010 5:13 PM
Friday, May 14, 2010 5:06 PMModerator -
Hi
I am afraid, Transcations are not there with MS CRM WEbservices. It is also not there in plugins & workflows.
So if you want transactions the only option is to roll back manually in a try catch block. :(
I think MS CRM 5 might have transactions in Plugins.
Muhammad Ali Khan
http://malikhan.wordpress.com- Marked as answer by sarithab Friday, May 14, 2010 5:14 PM
Friday, May 14, 2010 5:07 PM -
Hi,
As per my knowledge there is no concept of TransactionScope in CRM 4.0, But I hope you can implement this through coding itself (Definitely you have to write some extra code for that :-) )
Mahain- Proposed as answer by HIMBAPModerator Friday, May 14, 2010 5:08 PM
- Marked as answer by sarithab Friday, May 14, 2010 5:14 PM
- Unmarked as answer by sarithab Friday, May 14, 2010 5:18 PM
Friday, May 14, 2010 5:07 PMModerator