get the notes attached with workflow RRS feed

  • Question

  • hi,
     I am trying to create documentation for the my crm customization
    i have a lot of workflow which are descriped in the note tap
    how can i get the description programatically

    i tried to retrive them from the annotation entity and pass the workflow guid but it doesn't return data

    any idea how to do it

    Best regards
    Sunday, September 27, 2009 2:15 PM


  • Hi,

    you can get the annotations for a worfklow with the code below. You have to pass the workflow id as filter value for the annotations objectid.
    ColumnSet columns = new ColumnSet(new[] { "notetext" });
    QueryExpression query = new QueryExpression
        EntityName = EntityName.annotation.ToString(),
        ColumnSet = columns,
        Criteria = new FilterExpression { FilterOperator = LogicalOperator.And }
    ConditionExpression belongsToWorkflowCondition = new ConditionExpression
        AttributeName = "objectid",
        Operator = ConditionOperator.Equal,
        Values = new Object[] { new Guid("8aff78ff-48a5-4105-8d9c-3c463e2a7041") }
    Monday, September 28, 2009 7:05 AM