Everyone's signed up, matches has started and scoring is underway. Now all we need to do is visualize who predicted what - and more importantly, a leaderboard.
To do that I need to fetch the data from XConnect. Again, I was happy to find it well documented by Sitecore. Even better, the API seems easy to use if you're familiar with LINQ. Unfortunately almost too easy for this post. I had imagined myself having to setup some indexing and doing some clever work to get my data out as I wanted it. But between the ease of use of the API, and the simplicity of my datamodel for what I need here, it's basically down to a copy/paste of a few lines from the documentation.
To do that I need to fetch the data from XConnect. Again, I was happy to find it well documented by Sitecore. Even better, the API seems easy to use if you're familiar with LINQ. Unfortunately almost too easy for this post. I had imagined myself having to setup some indexing and doing some clever work to get my data out as I wanted it. But between the ease of use of the API, and the simplicity of my datamodel for what I need here, it's basically down to a copy/paste of a few lines from the documentation.