cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
raghavat
Nintex Newbie

SharePoint REST API getbytitle with ampersand in title?

Jump to solution

Hi ,

I am trying to query SharePoint list using Nintex workflow Web API. It is working fine for all the lists except in the list title.

Tried below , nothing worked .

AB&C Company

AB&C Company

AB%26C%20Company .

Please suggest ...

Labels: (1)
Reply
10 Replies
Automation Master
Automation Master

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution
0 Kudos
Reply
raghavat
Nintex Newbie

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

Hi Tomasz ,

Thank you for your response .

Yes I tried both of them . Nothing worked for me ..

So I submitted my question here ..

0 Kudos
Reply
Automation Master
Automation Master

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

I found that one as well. Haven' tried myself, but Microsoft community claims it works:

Maybe this is something you can try out too. Maybe other on the forum have their suggestions?
Regards,
Tomasz
0 Kudos
Reply
Automation Master
Automation Master

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

I mean - I know you have already tried with %26, but maybe there is something else in your REST call you are missing? Maybe the ampersand is not the reason? What errors do you get? What is your query string, that you use for calls? Can you share it?

0 Kudos
Reply
raghavat
Nintex Newbie

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

I created a new List named ABC Company (With out & ) it worked fine without any issues .

The only issue is coming up with & . So Need a solution .

0 Kudos
Reply
paul_crawford
Nintex Newbie

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

Hi raghava t

Try /_api/lists/getbytitle('AB%20&%20C%20Company')

or

/_api/lists/getbytitle('"+encodeURI('AB & C Company')+"')

Hope this helps

0 Kudos
Reply
Automation Master
Automation Master

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

try to replace the & with %26

0 Kudos
Reply
Automation Master
Automation Master

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

Hi ‌ - have you managed to make it work?

Regards,

Tomasz

0 Kudos
Reply
raghavat
Nintex Newbie

Re: SharePoint REST API getbytitle with ampersand in title?

Jump to solution

Hi Tomasz ,

After I tried all the options and nothing worked out for me . 

I created a new list without having & (ampersand) .

0 Kudos
Reply