How do you read system jobs in Dynamics CRM?
Posted
by Dan Crowther
on Stack Overflow
See other posts from Stack Overflow
or by Dan Crowther
Published on 2010-04-01T09:37:35Z
Indexed on
2010/04/01
9:43 UTC
Read the original article
Hit count: 345
The CRM SDK says this is possible but the following code fails. Does anyone know why?
var request = new RetrieveMultipleRequest();
var query = new QueryExpression(EntityName.asyncoperation.ToString());
query.ColumnSet = new AllColumns();
request.Query = query;
var response = _connection.Execute(request);
The error is:
<error>\n
<code>0x80040216</code>
<description>An unexpected error occurred.</description>
<type>Platform</type>
</error>
If I change the entity name to account, it works fine.
© Stack Overflow or respective owner