Join two SharePoint 2013 lists using operator

I have two SharePoint lists. 1) Posts and 2) Categories

The Posts list has a lookup field called 'Category' into the Categories list.

I am trying to use the $expand option to join the two lists but I'm unsuccessful.  I'm trying to follow the example used in this site but I'm confused.

Any ideas?

I've tried the following and many other combinations but I get errors'Posts')/items/?&select=Title,Category/Id&$expand=Title/Id

Here's where you can look at my lists

Please help!
IsaacSharePoint Client Side DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rajendra ShekhawatSolution ArchitectCommented:

I have used following REST Query to get the data related to lookup.

Posts - Parent List
Posts has Category Lookup Column - Display Column 'Title'

Please try below query -

origin + "/_api/web/lists/getbytitle('Posts')/items?$select=Title, Category/Title&$expand=Category/Title

Let me know, in case of any issues.

IsaacSharePoint Client Side DeveloperAuthor Commented:
That did not work.'Posts')/items/?&select=Title,Category/Title&$expand=Category/Title
When using a blog site, it's really different. If you have access to a blog site, try it for your self. Post and Categories are created by default.
Rajendra ShekhawatSolution ArchitectCommented:

As you said lists in your question, i missed blog.

Field Name of Category in blog is PostCategory .

I have tried below query on blog and works fine, gives me list of categories.

Try this -


Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Rajendra ShekhawatSolution ArchitectCommented:

Did it work ?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IsaacSharePoint Client Side DeveloperAuthor Commented:
That worked! Thank you very much.  I've been dealing with this for days.
IsaacSharePoint Client Side DeveloperAuthor Commented:
Rajendra Shekhawat,

Can you please assist with this question? Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.