web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 SearchByTitleKbArticleRequest returns no records

(0) ShareShare
ReportReport
Posted on by 266

I am trying to retrieve a kbarticle from Dynamics 365 online instance. I use a very simple query provided by SDK sample but it never returns any kbarticle.

Below is the code:

SearchByTitleKbArticleRequest searchByTitleRequest =
                    new SearchByTitleKbArticleRequest()
                    {
                        SubjectId = subjectId, // I have retrieved subjectid earlier. 
                        UseInflection = false,
                        SearchText = "My Article",
                        QueryExpression = new QueryExpression()
                        {
                            ColumnSet = new ColumnSet(true),
                            EntityName = "kbarticle" // I've tried knowledgearticle as well.
                        }
                    };

var searchByTitleResponse = (SearchByTitleKbArticleResponse)
                    serviceProxy.Execute(searchByTitleRequest);

        // check success
        var retrievedArticles = searchByTitleResponse.EntityCollection.Entities;                      
        Console . WriteLine ( "  Results of search (titles found):" + retrievedArticles.Count ); // It is always 0
        foreach ( var article in retrievedArticles )
            Console . WriteLine ( article .Id );

  1. In the new version of SDK, kbarticle is renamed to knowledgearticle. I have tried using knowledgearticle with no luck.
  2. The connection to the CRM Online instance is also correct and I am able to run other queries with RetrieveMultiple service.
  3. The article is published and I have also permissions to access the article.
  4. I am able to retrieve the same article using REST and also using RetrieveMultiple, so I don't see any issue in the article or my connection.

Can anyone point me to the right direction to make this message working?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    JandostKhoso Profile Picture
    266 on at

    I had a long engagement with MS support to and following is the outcome:

    The SearchByKeywordKBArticle and SearchByTitleKBArticle work only with 'kbarticle' entity and if you use 'knowledgearticle' entity you should only use FullTextSearch message.

    It is documented in a confusing way however, 'kbarticle' is being deprecated and going forward only FullTextSearch message will work.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
RichardM Profile Picture

RichardM 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans