Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

how to include columns with a space in name in clientcontext load method in JSOM

$
0
0

Hi Gurus,

I have a situation where I need to read a list that has a column 'Repositary Name'.

While I am reading the list in my JSOM I need to load this column in the clientcontext.load method.

My code likes this below.

this.collListItem = list.getItems(camlQuery);

    ctx.load(collListItem, 'Include(Title, 'Repositary Name')')

The Issue is I can not load this 'Repositary Name' column. I tried with its internal name, removing the space, putting the name in single quote but nothing works.

Please advice how to include a column in clientcontext.load method that has a space in its name .

Changing the column is not a option and I have to have call it before I use it my Async Methods.


Viewing all articles
Browse latest Browse all 25064

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>