Call Support:Direct: (214) 420-1337Toll Free: (877)
Monday through Friday 8 a.m. to 6 p.m. Central
We are on 18.104.22.168688 version of Telligent Community.
I have a Blog with multiple “authors” associated with it. If I want to filter the Blog Posts based on “author”, I am building the query like shown below, but it seems like no matter which author I set, I always get all the blog posts in the blog. Can you please tell me how to filter based on Author ID?
IBlogService service = Telligent.Common.Services.Get<Telligent.Evolution.Api.Services.IBlogService>();
BlogPostsListOptions options = new BlogPostsListOptions();
options.BlogId = blogId;
options.AuthorId = authorId;
PagedList<BlogPost> blogPosts = service.GetBlogPosts(options);
If I wanted to sort the Blog Posts by "Rating", then the API Documentation says to specify "SortBy" as "Score:SCORE_ID".
1) Where exactly do I find this SCORE_ID?2) What is the format in which I specify it in C# syntax?
I tried something like this:
// The GUID below comes from te_Content_Scoring_CalculatedScores table - not sure if that is what I useoptions.SortBy = "Score:\"86BEEAB2-BCE6-4DF2-9797-CA4E72A15C88\"";
But it throws an exception saying
BlogThreadSortBy of 'Score:"86BEEAB2-BCE6-4DF2-9797-CA4E72A15C88"' does not exist.
I am not sure I understand.
Telligent Systems, Inc. ©2013, All Rights Reserved