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

Sharepoint 2013: Create new list item using REST not working consistently

$
0
0

Greetings,
I have a local intranet hosted SP site and a Microsoft 365 SP site for validation. I've successfully used the REST api on the Microsoft 365-SP hosted site to create a new list item. Using the exact same method, it does not run on the local intranet hosted SP site. I’ve reviewed the ‘Site Settings’ – ‘Site Features’ and they appear correct.
Any suggestions?

Note - I'm using SPD. Trying to keep this OOTB.

Dictionary = request header
Accept : application/json;odata=verbose
Content-Type : application/json;odata=verbose
content-length: 255
X-RequestDigest: achieved by POST - [Site URL]_api/contextinfo and read d/GetContextWebInformation/FormDigestValue
Dictionary = _metadata 
type: SP.Data.[VarListName]ListItem
Dictionary = request content
__metadata: _metadata 
Title: [title variable]
POST - [site URL]_api/web/lists/getbytitle(‘VarListName’)/items

Kind regards,





Viewing all articles
Browse latest Browse all 7589

Trending Articles



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