New answers tagged rest
0
There is a hybrid approach where you use SharePoint's documents storage, lists, workflow engine, account authentication/authorization, and web services with a highly customized UI. James Love mentions this in his comments to Igaud's answer.
I have found this approach to be very successful, especially to users who for some reason have a bad taste in their ...
2
Have you tried using the "recycle" command using the REST API? (not using HTTP DELETE)
Endpoint URI structure:
http://<sitecollection>/<site>/_api/web/lists(listid)/items(itemid)/recycle()
Please refer to the documentation regarding recycle on MSDN: http://msdn.microsoft.com/en-us/library/jj247053.aspx
2
I'm not exactly sure what which aspect is confusing your so I will break down the process into some steps. Let's imagine we have a custom list titled Issue Tracker with the following definition:
Fields:
Id (number) the default field
Title (text) the default field
Problem Description (text)
Products (multiselect ...
0
I don't believe it is possible using the ListData.svc. But you can do it using the Managed Client Side Object Model. I'm not on my dev system right now but I will add a code sample tomorrow.
Edit:
Just to be certain I attempted to check in a document in my dev server's Shared Documents library using ListData.svc. I attempted to do it by sending a DELETE ...
0
Both are useful, depending on what you need to do with the returned data. With all the web services, I usually use jQuery and would just do a .split(", ")[0] or .split(", ")[1] to get the appropriate peice of the data.
If you are processing via xslt, then you do a substring-before(@thefeld, ", ")or substring-after(@thefeld, ", ").
0
From what I understood from other posts, you should encode the url parameter in base64. You could try this :
url: encodeURIComponent(url1)
Or, if you're writing Mozilla or Chrome specific code, then you can use btoa() and atob() to convert to and from base64 encoding.
I also prefer to remove all white spaces from REST endpoints like this :
var url1= ...
1
I haven't done that with REST before, but in this article he uses this syntax:
http://<site url>/_api/web/GetFileByServerRelativeUrl(
'/Shared Documents/a.txt')/CheckOut()
http://<site url>/_api/web/GetFileByServerRelativeUrl(
'/Shared Documents/a.txt')/CheckIn(comment='Comment', checkintype=0)
0
just in case anyone else runs into this I figured out what was going on:
I usually create multiple custom aspx pages in SP2010 and never really ran into this issue before. When I do, I always add the scriptlink back in:
<SharePoint:ScriptLink name="SP.js" defer="true" runat="server" Localizable="false"/>
but it appears that you must also include a ...
0
To add an item to the array you send a POST to the URL of the item you wish to update:
dev.domain.com/sites/plm/_vti_bin/ListData.svc/MarketNeed(1)
with the following payload:
{
"Grouping": [
{
"__metadata": {
"uri": "http://dev.domain/sites/plm/_vti_bin/ListData.svc/MarketNeedGrouping('Special%20Kitting')",
...
0
Unfortunately REST api doesn't support this. One of the solutions would be to use SharePoint Batch API and send ajax request to Lists.asmx web service. It's possible to add/update/delete several items in one request through Batch API. Here is how it might look like:
var batchCommandXml = '<?xml version="1.0" encoding="utf-8"?> \
<soap:Envelope ...
Top 50 recent answers are included
