C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Microsoft Dynamics »

How to read custom entity in ms crm 4.0


Posted Date: 06 Apr 2009      Posted By: Mahain      Member Level: Gold     Points: 1   Responses: 1



Hi all,
i m using followind code to read custom entity but getting exception "server unable to process the request"

is there something wrong in my code .........

CrmService CrmWebServe = CreateCrmService();

QueryByAttribute query = new QueryByAttribute();
query.ColumnSet = new AllColumns();
query.EntityName = "enrollment";
query.Attributes = new string[] {"Last_Name"};
query.Values = new string[] {"HOWARD"};
RetrieveMultipleRequest request = new RetrieveMultipleRequest();
request.Query = query;
request.ReturnDynamicEntities = true;
RetrieveMultipleResponse response = (RetrieveMultipleResponse)CrmWebServe.Execute(request);

thank in advance.........





Responses

Author: bajibabusk    08 Apr 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

When using the CRM web service in a custom workflow, you'll need to use DynamicEntity objects. The workflow context webservice is just an ICrmService so it doesn't know about your specific customizations. There's a pretty sample here: http://www.stunnware.com/crm2/topic.aspx?id=CustomWorkflowActivity

I imagine you could also add the CRM web services as a web reference to your workflow project. Then you'd have strongly types objects for your custom entities. I've never done this for my custom workflows, but it works for other custom apps accessing CRM.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : How to communicates two views using the smart client software factory?
Previous : How to take backup of exchange server...?
Return to Discussion Forum
Post New Message
Category: Microsoft Dynamics

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use