开发者

How do you read system jobs in Dynamics CRM?

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 unexpe开发者_C百科cted error occurred.</description>
  <type>Platform</type>
</error>

If I change the entity name to account, it works fine.


Found the answer. It appears that it doesn't like the "new AllColumns()" bit. If I specify a column list it works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜