REST API Update blog post discussion

Discuss the
REST API Update blog post.

Asymmetric keys stored in Key Vault are not intended for bulk data encryption. They are to be used as master keys. For bulk data encryption recommended method is to use an AES key and then WRAP this AES key with the RSA key stored in the key vault. Then
Store the WRAPPED AES key and the URI to the key in Key Vault as metadata with the encrypted data.
Depending on the scenario one could use a chain of keys that end in an asymmetric key in the Key Vault. It's difficult to recommend a solution without knowing your specific scenario. There can be several things to consider and many trade-off of different
approaches.
Reach out to the Key Vault Team via azurekeyvault at microsoft dot com if you want to discuss more.
Thanks,
Amit [ambapat@MSFT]

Similar Messages

  • Sharepoint angulr REST API update file item userd field property

    Hi All,
    I'm working on a project using SharePoint with angular to upload files to document library, for now every thins is working fine and good but when updating the related item fields I was using JSOM its work but it increase the version # of the file which is
    not acceptable to the client I found a solution to update the fields using REST without increasing the version # but the problem am facing now updating a user field it does not take the value it go to the success function but the field not set
    here's my code
     $scope.updateMetadataNoVersion=function(fileUrl) {
        var fld=$scope.SelectedFolder.replace(_spPageContextInfo.siteAbsoluteUrl, "");
           var restSource ="";
            if(fld.replace("lists/DepartmentDocuments","")=="")
           restSource = currentWeb.get_url() + "/_api/web/lists/getbytitle('DepartmentDocuments')/rootfolder/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem";
    else
           restSource =  currentWeb.get_url() + "/_api/web/getfolderbyserverrelativeurl('"+fld+"')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem";
            var dfd = $.Deferred();
            $.ajax(
                'url': restSource,
                'method': 'POST',
                 'data': JSON.stringify({
                    'formValues': [
                        '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
                        'FieldName': 'ShareWith',
                        'FieldValue': '24'
                    'bNewDocumentUpdate': true,
                    'checkInComment': ''
                'headers': {
                    'accept': 'application/json;odata=verbose',
                    'content-type': 'application/json;odata=verbose',
                    'X-RequestDigest': $('#__REQUESTDIGEST').val()
                'success': function (data) {
                    var d = data;
                    dfd.resolve(d);
                'error': function (err) {
                    dfd.reject(err);
                    console.log(err);
            return dfd.promise;
    any help please im search about this since 3 days with no success
    Thanx in advance
    khatib7

    Yes, your correct. The validateupdatelistitem method does not work with Lookup values. You will have to use the standard way of updating the list item via REST but it will increment the version. I agree with you that many customers want to upload files and
    set data without creating 2 versions.  This is how SharePoint upload works. However, the only way to do this with REST is to use the validateupdatelistitem method.
    You can make a request for this to be added to SharePoint at User Voice:
    http://officespdev.uservoice.com/
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • REST API sync issue

    Hi expert,
      I created a Excel file into SharePoint 2013 Excel library and Post the URL into MS word quick parts of IncludePicture. in MS Word, I can get the Excel Chart. but when I update the chart and publish into SharePoint again, the word file does not change.
    does anybody knows how to sync both ?
    the URL like this,
    http://www.sharepointsite.com/_vti_bin/excelrest.aspx/Excel%20Library/TeamTasks_data.xlsx/model/
    charts('Task%20Status')?$format=image
    Thanks
    James Liang

    Hi,
    There’s a setting in your Trusted File Locations (in the configuration of the Excel Service Application) that you have to check, in order to have the REST API update the connections.
    http://www.sharepointblogs.be/blogs/vandest/archive/2014/02/20/excel-rest-api-not-refreshing-data.aspx
    If the issue still exists, please check whether you have select "Data not stored with document" in the "Field options".
    http://blogs.office.com/2009/11/09/excel-services-in-sharepoint-2010-rest-api-examples/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Office 365 REST API - Mail, Calendar, Contacts Update

    UPDATE: We have announced General Availability of our REST APIs. The refreshed documentation which covers all the changes and much more is now available
    here.
    I wanted to share an update on our Mail, Calendar, Contacts REST API. Over the last few months we have been heads down updating the APIs. Most of the changes are a direct result of all the great feedback that we have received from
    customers like you and we are very excited about sharing these changes. 
    These changes are starting to light up in the service and we have already received questions/comments about them from some of you.
    Some of these changes are not backward compatible.  
    Due to versioning not yet implemented (but coming soon!), and these API’s being in preview, they might require simple updates to your code.
      Once versioning is in place, introducing non-backward compatible changes won’t impact your existing code. 
    Stay tuned for a full list of these changes along with the refreshed documentation and client libraries. 
    We have received a number of questions on some specific changes which I wanted to share a workaround for:
    1. Folder names after ../ews/odata/Me, such as Inbox, SentItems, DeletedItems, Drafts will additionally require a “Folders” in front of them in the URL.
    REST URL:
    Before  :
    https://outlook.office365.com/ews/odata/Me/Inbox
    Now      :
    https://outlook.office365.com/ews/odata/Me/Folders/Inbox
    .Net code sample:
    var messageResultsBefore = await (from i in client.Me.Inbox.Messages select i).ExecuteAsync();
    var messageResultsNow = await (from i in client.Me.Folders.GetById("Inbox").Messages select i).ExecuteAsync();
    2. The Namespace has been updated from "#Microsoft.Exchange.Services.OData.Model" to “Microsoft.OutlookServices” and hence the fully qualified type names have to be updated to reflect that. In most cases though, you do not need to provide the odata.type
    property as we can infer it based on where you make the post. For example, if you POST to ../Me/Contacts, we know you are trying to create a contact.
    3. Contacts changes: To make the API easier to use, we have replaced EmailAddress1, EmailAddress2, EmailAddress3 with a collection of a new type called EmailAddress. We have similarly also changed BusinessPhones, HomePhones to collections.
    Sample payload showing how to create a contact with EmailAddresses and BusinessPhones:
    "GivenName": "John", 
    "EmailAddresses": [    
    "Address": "[email protected]",
    "Name": "John"
    "BusinessPhones": [
    "123-456-7890" 
    4. Event Changes: The property Attendees now includes the type “EmailAddress”.
    Sample Event payload showing how to create an Event.
    "Subject": "Discuss the Calendar REST API", 
    "Body": {   
    "ContentType": "HTML",   
    "Content": "I think it will meet our requirements!" 
    "Start": "2014-07-02T18:00:00Z", 
    "End": "2014-07-02T19:00:00Z", 
    "Location": {     
    "DisplayName": "Conference Room 1"   
    "ShowAs": "Busy", 
    "Attendees": [   
    "EmailAddress": {
    "Name":"Alex Darrow",
    "Address": "[email protected]"
    "Type": "Required"   
    "EmailAddress": {
    "Name": "Anne Wallace",
    "Address": "[email protected]"
    "Type": "Optional"   
    "EmailAddress": {
    "Name": "Conference Room 1",
    "Address": "[email protected]"
    "Type": "Resource"   
    5. We have introduced a simple API for sending email called SendMail, and have removed the custom parameter MessageDisposition which was difficult to understand and discover.
    The sendmail action, takes two parameters, a required parameter which is the Message itself and an optional parameter, "SaveToSentItems" which by default is set to true.
    Sample Request to create and send email with one call:
    POST:
    https://outlook.office365.com/ews/odata/me/sendmail
    "Message":{   
    "Subject": "Have you seen this new Mail REST API?",   
    "Importance": "High",   
    "Body": {     
    "ContentType": "HTML",     
    "Content": "It looks awesome!"   
    "ToRecipients": [{         
    "EmailAddress": {           
    "Name": "John Doe",           
    "Address": "[email protected]"         
    If you are running into any issues please post on stackoverflow here:
    http://stackoverflow.com/questions/tagged/office365
    We apologize for any inconvenience and thank you for your continued feedback!

    Hi, 
    I was trying to create and update the calendar event using [POST] https://outlook.office365.com/api/v1.0/me/events and [PATCH] https://outlook.office365.com/api/v1.0/me/events/<eventId> respectively.
    When i try with poster or postman, I get this error
    {error: {code: "ErrorInvalidRequest" message: "Cannot read the request body."} }
    its not working . Any help will be appreciated.
    Note: GET events and DELETE Events are working. I think the API with payload is not working.

  • Update item in list using rest api - failed when browsing in juniper session

    this issue is about browsing to an on premises sharepoint 2013 inside a LAN using Juniper session
    the user can see everything and can create new list items with rest api but
    cannot update existing items using the function below.
    we've got this function which we use to update list items in rest
    it works like a charm when browsing inside the LAN
    function updateListItem(itemIdentityField, itemIdentity, listName, siteUrl, item, success, failure) {
    getListItemWithId(itemIdentityField, itemIdentity, listName, siteUrl, function (data) {
    $.ajax({
    url: data.__metadata.uri,
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "X-HTTP-Method": "MERGE",
    "If-Match": data.__metadata.etag
    success: function (data) { success(data, callBackIndex, null) },
    error: function (data) {
    getError(data);
    }, function (data) {
    failure(data);
    the error i get in ULS log is:
    Original error: Microsoft.SharePoint.Client.InvalidClientQueryException: The parameter __metadata does not exist in method GetItemByStringId.
    at Microsoft.SharePoint.Client.MethodInformation.GetParameter(String parameterName)
    at Microsoft.SharePoint.Client.ClientCallableEdmModelBuilder.CreateFunctionImportForMethodBodyParser(MethodInformation clientMethod, List`1 parameterNames, ProxyContext proxyContext)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ParseParametersFromBody(MethodInformation methodInfo, Boolean allowPostBodyAccess, Boolean isLeafSegment, ClientValueCollection args)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ParseParametersFromBodyOrQueryString(MethodInformation methodInfo, Boolean allowPostBodyAccess, Boolean isLeafSegment, ClientValueCollection args)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.CreateMethodArgumentsUsingNamedParameters(MethodInformation methodInfo, IList`1 parameterList, Boolean isLeafSegment, Boolean allowPostBodyAccess)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()
    at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)
    Any help?
    Somebody?
    Thanks

    Hi patrik
    Really appreciate your replying.
    Could you try and refer to the issues below:
     this error occurs even with site collection administrator (i tested it with three different
    users)
    there isnt any difference between items in list - all have same permissions
    it occurs in several lists in site (all lists have same permissions)
    if browsing inside the LAN everything works just fine
    updating from the UI works fine in all means
    It really seems like a Rest related problem(is there anyone from the Microsoft REST team who can take look at this error?)
    Thanks
    Hushay

  • REST API to get and update Task Data

    On CPSC 9.4.1 R2, I am unable to find any REST API operation to get and update task data details (all the service form and dictionary fields).
    Task operations only return limited task meta-data not the details of the task/requisition data submitted, fields, etc.
    Does anyone know if such thing exist?
    Thanks.

    Hi Rakesh,
    To enable anonymous Search REST queries, we need to create queryparametertemplate.xml and upload it to the correct library in SharePoint.
    From your description I can know that you have created the file, then I recommend to check the things below:
    Please use “QueryTemplatePropertiesUrl” instead of “queryparametertemplate” in the Search REST API query as following: &QueryTemplatePropertiesUrl='spfile://webroot/queryparametertemplate.xml'.
    Make sure that the Query Properties you need have been added to the QueryProperties element in the queryparametertemplate.xml file.
    Make sure that the query parameters you need have been added to the WhiteList element in the
    queryparametertemplate.xml file. For example, if you want to use Refiners in the REST API, then the Refiners should be added to the
    WhiteList element in the queryparametertemplate.xml file as following:
    <a:string>Refiners</a:string>.
    You can also debug setting properties in anonymous Search Rest queries following the link below:
    http://www.mavention.com/blog/debugging-setting-properties-anonymous-search-rest-queries
    More references about anonymous Search REST:
    http://blog.mastykarz.nl/configuring-sharepoint-2013-search-rest-api-anonymous-users/
    http://msdn.microsoft.com/en-us/library/office/jj163876%28v=office.15%29.aspx#bk_AnonymousREST
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Post/Create a poll using Yammer REST API

    Hi everybody,
    I have been working on a project where there is a requirement to develop a custom web part that displays the feeds from Yammer. Also, the logged in user should be able to post messages, attachments, polls from the web part.
    I was able to post messages and attachments using rest api and with yammer embed. But I couldn't find any information/documentation on how to post/create a poll via Yammer API using JavaScript. I've browsed through the documentation provided by Yammer( https://developer.yammer.com/documentation/ )
    and googled a lot, but couldn't get any help.
    Any suggestions regarding this would be highly appreciated.
    Regards,
    Srivikas Nallamilli.
    -- Thanks & Regards, Srivikas.

    Hi,
    Use the same API that you use to fetch messages from yammer i.e https://www.yammer.com/api/v1/messages.json
    When you post a poll, above api will return json respose something as below:
    "external_references":[
    "meta":{
    "requested_poll_interval":60,
    "realtime":{
    "uri":"https://7-791.rt.yammer.com/cometd/",
    "authentication_token":<TOKEN>
    "channel_id":<CHANNEL ID>
    "last_seen_message_id":null,
    "current_user_id":1530316230,
    "followed_references":[
    "ymodules":[
    "id":12147685,
    "inline_html":"<INLINE HTML>",
    "viewer_id":1530316230
    "newest_message_details":null,
    "feed_name":"Company Feed",
    "feed_desc":"",
    "direct_from_body":false
    you will get the poll message in inline html section highlighted in code above.
    Let me know if it works.
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How to update 500 list items using Rest API

    Hi All,
    i have requirement that is "required to update 500 list items using rest Api".
    how can i do it,please share your thoughts with me.
    Thanks,
    Madhu.

    Didn't get you correctly, if you asking reference for REST API to update list items please refer below links
    http://msdn.microsoft.com/en-us/library/office/jj164022(v=office.15).aspx
    Destin -MCPD: SharePoint Developer 2010, MCTS:SharePoint 2007 Application Development

  • How to send a encrypted packet to the REST API Service using Fiddler or Post Man

    Hi,
    I am trying to send encrypted (AES) JSON packet to the REST API on the Azure cloud using tools like Fiddler.
    I am trying to use POST method and attaching the encrypted .aes file to the Fiddler tool.
    I am getting the 3 types of error messages.
    1) HTTP/1.1 502 Fiddler - DNS Lookup Failed
    2) HTTP/1.1 500 Internal Server Error
    3) HTTP/1.1 407 Proxy Authentication Required
    I have tried with my company network and tried with external internet connection also.
    Please help me.
    Thank you!
    Regards,
    Krishna

    Hi,
    you can create a simple rest api on the Azure cloud, and then try to use fiddler to do some test, so that we can exclude the environment issue.
    Regards

  • REST API POST and GET Error--Retriving following sites news feed

    i have used below code to retrive the newsfeeds but im getting 403 error.i think url formation for POST and GET is wrong.Kindly anyone worked help mee. 
    var feedManagerEndpoint;
    // Get the SPAppWebUrl parameter from the query string and build
    // the feed manager endpoint.
    $(document).ready(function () {
    var appweburl;
    var params = document.URL.split("?")[1].split("&");
    for (var i = 0; i < params.length; i = i + 1) {
    var param = params[i].split("=");
    if (param[0] === "SPAppWebUrl") appweburl = param[1];
    alert(appweburl);
    feedManagerEndpoint = decodeURIComponent(appweburl)+ "/_api/social.feed";
    alert(feedManagerEndpoint);
    postToMyFeed();
    // Publish a post to the current user's feed by using the
    // "<app web URL>/_api/social.feed/my/Feed/Post" endpoint.
    function postToMyFeed() {
    alert('pOST');
    $.ajax( {
    url: feedManagerEndpoint+"/my/Feed/Post",
    type: "POST",
    data: JSON.stringify( {
    'restCreationData':{
    '__metadata':{
    'type':'SP.Social.SocialRestPostCreationData'
    'ID':null,
    'creationData':{
    '__metadata':{
    'type':'SP.Social.SocialPostCreationData'
    'ContentText':'This post was published using REST.',
    'UpdateStatusText':false
    headers: {
    "accept": "application/json;odata=verbose",
    "content-type":"application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: getMyFeed,
    error: function (xhr, ajaxOptions, thrownError) {
    alert("POST error:\n" + xhr.status + "\n" + thrownError);
    // Get the current user's feed by using the
    // "<app web URL>/_api/social.feed/my/Feed" endpoint.
    function getMyFeed() {
    alert('get');
    $.ajax( {
    url: feedManagerEndpoint +"/my/Feed",
    headers: {
    "accept": "application/json;odata=verbose"
    success: feedRetrieved,
    error: function (xhr, ajaxOptions, thrownError) {
    alert("GET error:\n" + xhr.status + "\n" + thrownError);
    // Parse the JSON data and iterate through the feed.
    function feedRetrieved(data) {
    var stringData = JSON.stringify(data);
    var jsonObject = JSON.parse(stringData);
    alert(jsonObject);
    var feed = jsonObject.d.SocialFeed.Threads;
    alert(feed.results);
    var threads = feed.results;
    var feedContent = "";
    for (var i = 0; i < threads.length; i++) {
    var thread = threads[i];
    var participants = thread.Actors;
    var owner = participants.results[thread.OwnerIndex].Name;
    feedContent += '<p>' + owner +
    ' said "' + thread.RootPost.Text + '"</p>';
    $("#message").html(feedContent);

    Hi Scott,
    With EnableQueryRules and ProcessBestBets set to true in the search rest api, we can get the promoted results(best bets) in SharePoint 2013.
    I recommend to type the search rest api URL in the browser directly and then check if the best bets are displayed at the top of the search results.
    It will not displayed inside the table for normal results.
    Please also make sure that the query text matches the query rule condition.
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • OneDrive for Business REST API - PUT,POST - 401 Unauthorized

    Hi,
    We've a trial version of Microsoft azure and are playing with the One drive for Business CRUD operations via the REST
    API from java client as per the link : https://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations
    After getting the token, i'm able to list any folder, download file and get attributes of a file using GET successfully.
    But, the operations such as PUT, POST which are required for create folder, upload file,  rename file/folder, etc are not working. I get back "401 UnAuthorized" error.
    Error Response json : 
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":"Access denied. You do not have permission to perform this action or access this resource."}}
    I set the access token in the similar way how i set for GET in the http request and i'm using jboss rest easy client for accessing the rest API
    Here is a code for "Creating a folder"
    ResteasyProviderFactory factory = ResteasyProviderFactory.getInstance();
    ResteasyProviderFactory.pushContext(javax.ws.rs.ext.Providers.class, factory);
    ResteasyClientBuilder resteasyClientBuilder = new ResteasyClientBuilder().providerFactory(factory);
    ResteasyClient client = resteasyClientBuilder.build();
    ResteasyWebTarget target = client.target(BASE_URL + "/getByPath('/TestFolder1')");
    Invocation.Builder request = target.request();
    request.header("Authorization", "Bearer " + this.token);
    Response response = request.put(Entity.text(""));
    And as per documentation, 401 UnAuthorized error means "Required authentication information is either missing or
    invalid."
    Am i missing any header that's supposed to be in the request/ Any other issue with the request?
    Thanks,
    Kathir

    Hi Kathir,
    Here's the official document about "X-RequestDigest":
    https://msdn.microsoft.com/en-us/library/jj164022(office.15).aspx#WritingData
    In addition, here's an example header information which works for me :
    Referer: https://xxxxxxxx.sharepoint.com/
    Accept: application/json;odata=verbose
    Accept-Language: en-US,en;q=0.8,zh-Hans-CN;q=0.5,zh-Hans;q=0.3
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
    Host: xxxxxxxx.sharepoint.com
    Content-Length: 83
    X-RequestDigest: 0x4F26025E572CD220FBBAAD26654318A0B771CF72B09C0BFC45AFF8F1B2B301968040BC16377159210B4D7451BAD63BC93A406BF2357807E86BBD9BFF1EC5FB31,09 Apr 2015 13:31:50 -0000
    Cookie: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+RmFsc2UsMGguZnxtZW1iZXJzaGlwfDEwMDM3ZmZlODU1NmRmYTJAbGl2ZS5jb20sMCMuZnxtZW1iZXJzaGlwfHJla2VubGl1QG8zNjVlM3cxNS5vbm1pY3Jvc29mdC5jb20sMTMwNzM0NjU5MzE5ODYyNTE2LEZhbHNlLGU5VkJQdk83UStLVDh4Z3poSEp3WWRwS2NUY1FuUlNFYjI3anpRMktIbzh0WWN0YVhNcEMzRjh3Z1hLeEJyQy9wSFBzR3NIeHViUnlqcEZTZFp6aFN4S0VFNmFaT3BBcGN3RUJWL2dyUXVHQ2VocmdQTmVFYUxXMGNxOWhYVnV5UXV5Qyt3MDg5MFVhKytnamZGVTNCZjRQT1lMV09QWGR1OG5FRCswUUdTdlZGTCtGdURHUisrMUltYUE2Nk5ITHh3TWpzTnN3UlFaN09VVytJb3RQNzhrV0hDcWZmbUt3TDZQVkRoMUJTdjd2amdraG9xaGRUTlVXNDFwWUpWZUVtdGE3SWk3WVAwalJSMkhteVNnclNEL0I0dnVQUzdheXRQNU5TaEVmSzg3UWl4Y2RUUm9jcE1XYkMvR2UrV2VmeDN1RHRJeWM3ZG4yNm80WVErYmkxdz09LGh0dHBzOi8vbzM2NWUzdzE1LnNoYXJlcG9pbnQuY29tLzwvU1A+; d7cc986c54074ba596c0f3f0c6a07e93c796165acdb446f0984f8653a924f5d0i%3A0%23%2Ef%7Cmembership%7Crekenliu%40o365e3w15%2Eonmicrosoft%2Ecom=0; SearchSession=3a9a1891%2D2085%2D4317%2Dae7d%2D358347ff5be6; WSS_FullScreenMode=false; d7cc986c54074ba596c0f3f0c6a07e93b4f54f20f4c04590a868420e78a3abbd=%3Ci%20p%3D%22d22c909f%2Dae4e%2D42e9%2D82ab%2Dbe906418413e%22%20m%3D%22lN63W5c9pPYyHWKxxdMl6WGWh6W6TASoSI78S9d1Uc0%3D%22%20%2F%3E; _InfoPath_Sentinel=1; _InfoPath_CanaryValueAGATTETXKDJ6KT4YXQ7Z6AULOUFCEL2MNFZXI4ZPJRXWGYLUNFXW44ZPJF2GK3JPORSW24DMMF2GKLTYONXCW3TQOVRU45KPMNKDI42KJJVU6TJYJ5UW65SWOB2EIVTMOZ3TEVTLOZYXOVSHPE2UK4BUJU=jkwaTNwRGHKjf96CdilK1qmjja8eMACiZvpNPbf6MqN+JaJ50wJVlC8//+5LQd5vHu1g5hM19pyNKgu7mkjxHw==|635641728335513421; rtFa=DbSfJe2tMA+9NtxyLWKWXkI6P5gUPQNGv+VYIvKXiLoX3B2zsHXjfIA5BgjT/aafd0uMETloZVbS+6Ks9Op+Epaiz9uAN3sCSpREr/K2URBpcO/8Io8CIv0SG8T0LpH+gTnEdL+Pa8cyGsqHuL1kUMjZoc7Qq07cqiwn1NO8bkyxK6HFXg+0bs7vqhTGAnZDYfUg2WG7WMWGk1QxxswZVQrnwBBInvGIIipzc7BJ9lu9XBmbfGDB+tgU78AsKS6BRDRdgSmPXq1ftMDTOACyzdHKrEUxJN5s2N6AOsujcDaFFyn8466SVD9zPxthkCDW+RDBJDIEinfW+UVPF8hmrz3gO/c3+OkH1pt65b3ydbcIQAWE9249X3nszh9KJSIzIAAAAA==
    I don't think it is related to a trial version. Please check whether you have missed the "User-Agent" header.  I suggest you first test it with JS in your environment.
    Thanks,
    Reken Liu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Indexed field num_comments on blog post not updating during incremental crawl

    Hi,
    Have a webpart that rolls blog posts from MySite and other Team sites.
    Everything works fine excepts that the property ows_numcomments (which I have a managed property mapped to) is only updated after a full crawl has run (ie once per night or manually started).
    Why is it so and what can I do to make updating during an incremental crawl?
    Thanks,
    /Owe
    Background:
    Query resulttype is RelevantResults
    TrimDuplicate is true 
    MPNumComments is mapped to ows_numcomments
    Searchstring
    "SELECT Title, Author, Path, SiteTitle, MPNumComments, MPPublishedDate FROM SCOPE() WHERE scope='Blogs' AND contentclass='STS_ListItem_Posts' ORDER BY MPPublishedDate DESC";

    Can you do full crawl and check this property is getting updated. If not then either incremental crawl is not updating the value or there is some problem with the field configuration.
    Regards,
    Milan Chauhan
    LinkedIn
    |
    Twitter | Blog
    | Email

  • POST to SharePoint Online REST API - 405 Method Not Allowed

    Good afternoon,
    I am writing C# with the intention of uploading a file to a document library using the REST API.
    The code must run on an on-premise machine and the target SharePoint site is in SharePoint Online (Office 365 E-plan).  It has to handle large files, so CSOM is not an option.
    I have successfully tested a few different "get" messages, so I believe the authentication part is working.  However, so far I have no such luck with POST.
    In fiddler, my most recent attempt looks like this (I redacted the parts in <> because I'm not sure if they are sensitive somehow):
    POST http://org.sharepoint.com/sites/site/_api/web/GetFolderByServerRelativeUrl('Documents')/Files/add(url='test2.txt',overwrite=true) HTTP/1.1
    Accept: application/json;odata=verbose
    X-RequestDigest: <digest value>,15 Jan 2014 17:48:49 -0000
    BinaryStringRequestBody: true
    Host: org.sharepoint.com
    Content-Length: 6
    Expect: 100-continue
    stuff!
    Seems like it should work, but the result is "301 Moved Permanently."  This request is immediately followed by this one: 
    GET https://org.sharepoint.com/sites/site/_api/web/GetFolderByServerRelativeUrl('Documents')/Files/add(url='test2.txt',overwrite=true) HTTP/1.1
    Accept: application/json;odata=verbose
    X-RequestDigest: <formdigest>,15 Jan 2014 18:01:51 -0000
    BinaryStringRequestBody: true
    Host: org.sharepoint.com
    Cookie: FedAuth=<cookiestuff>; rtFA=<cookiestuff>
    Response:
    HTTP/1.1 405 Method Not Allowed
    Cache-Control: private, max-age=0
    Transfer-Encoding: chunked
    Content-Type: application/json;odata=verbose;charset=utf-8
    Expires: Tue, 31 Dec 2013 18:01:52 GMT
    Last-Modified: Wed, 15 Jan 2014 18:01:52 GMT
    Server: Microsoft-IIS/7.5
    X-SharePointHealthScore: 0
    X-SP-SERVERSTATE: ReadOnly=0
    SPClientServiceRequestDuration: 25
    X-AspNet-Version: 4.0.30319
    SPRequestGuid: dd936a9c-f4fc-a05d-27e1-2c948f0eb575
    request-id: dd936a9c-f4fc-a05d-27e1-2c948f0eb575
    X-FRAME-OPTIONS: SAMEORIGIN
    X-Powered-By: ASP.NET
    MicrosoftSharePointTeamServices: 16.0.0.2308
    X-Content-Type-Options: nosniff
    X-MS-InvokeApp: 1; RequireReadOnly
    P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
    Date: Wed, 15 Jan 2014 18:01:51 GMT
    128
    {"error":{"code":"-1, Microsoft.SharePoint.Client.ClientServiceException","message":{"lang":"en-US","value":"The HTTP method 'GET' cannot be used to access the resource 'Add'. The operation type of the resource is specified as 'Default'. Please use correct HTTP method to invoke the resource."}}}
    0
    So it looks to me as if my request is being redirected to the same address but with a "GET" method rather than "POST," resulting in the 405 Method Not Allowed error because "add" needs POST.
    I appreciate any insight you can offer.

    Mkay, perhaps I should rephrase:  
    I want to synchronize a SharePoint Online library with a local file share.  There are a large quantity of files, and many of them are large (actually it's all too large to fit in one SharePoint Online site collection due to the 100gb limit, but I'll
    deal with that separately).
    The approach I was working on here was to create a C# method basically like this:  UploadFile(File, Destination, username, password).  I would use this method in the script component of an SSIS package which would run on a server and push the files
    up to SPO, but right now I'm just testing it as a console application.
    I got the CSOM methods working, but obviously that won't work because the files are too large.  Above is what's happening with the REST version.
    Can anyone see what's wrong with my REST calls - why is it being redirected as a GET request?  Is this even possible?

  • Blog post Publish vs Update

    This question was asked in February here and answered, but it clearly was never addressed.
    When a blog post is saved as a draft, the PUBLISH button becomes the UPDATE button and there is no longer any clear indication to the client of whether their post is public or not. 
    This includes the post list which does not show the status of a blog post.  Is a fix coming?
    Best,
    Rob

    It's a 2-step process. 'Creating pages' does exactly what it says. It's like publishing to a local folder, but with .Mac functionality included. Actual uploading to .Mac only commences when page creation is complete. That's when the progress indicator(s) appear, and it's only then that you regain control of the application.
    As to your concern that the process takes a long time when you add 'just a new photo page', you go on yourself to explain why doing this necessitates re-creation of every page in the site — it's precisely because of 'the name of the new page being added to the list of available photo pages in the list at the top of each page'. Once you add a page and include this on the navigation bar, every page which displays the navigation bar has to be updated.
    [ Visit here for iWeb Tips, Tricks and Hack ]

  • Use REST API to query contacts with a field updated since certain time?

    Hello,
    Using the REST API and trying to figure out how I can query for contacts that have had a field updated since a specified time. I've tried using the "lastUpdatedAt" arg, but to me it seems like I'm getting back contacts that maybe haven't had any data change, but were probably sent an email or something of that sort (so the updated at value was changed)
    Is there a way to query for contacts that have had fields change (Like subscriptions, address, title, etc) but exclude those contacts that only have their updated values changes because they were sent an email?
    Thanks!

    Hi Chris,
    lastUpdatedAt or "Date Modified" fields don't change when the contact is sent an email, but rather, when ANY field is modified on the contact record. You can certainly query for and export contacts that had their data touched in some way since a specified time, but it won't be on a per-field basis. There is effectively no field level change history or tracking. You can work around this with extra logic. First, you can get a snapshot of what the values were in the specific fields you want to track across your entire database.
    The next time you run an export using Date Modified, it will contain more records than you might care about, but you can filter offline for the ones you do care about by comparing their before and after values for the specific 'tracked' fields.
    Regards,
    Bojan

Maybe you are looking for

  • Deletion of AppSet in SAp BPC 7 NW

    Hi all, I have a problem with deletion an AppSet in SAP BPC 7.0. When I launch the operation from BPC Client I get this message error during processing: Failed to connect to ABAP Server Time limit Exceeded In NW System I modified the abap/buffersize

  • What's wrong with my select?

    Hi! What's wrong with my select? The message I got is: "("has no closing ")" SELECT SINGLE iclclaim~claim      INTO os_namir_stabi-claim      FROM ( ( iclclaim     INNER JOIN iclpoloau       ON iclpoloauclaim = iclclaimclaim     CLIENT specified     

  • Printing a PDF document using SMARTFORMS

    What is the easiest way to print a PDF document from an ABAP program?  I have the data in the following formats: Binary (XSTRING) String (from function module HR_KR_XSTRING_TO_STRING) OTF What format can I use in a smartform to print the PDF in the b

  • Inconsistent WRT160N / WMP600N connectivity, drops.

    Hi, I installed a Linksys WRT160N router two days ago and am trying to get a desktop running Windows XP SP2 (+ WPA patch) to maintain a wireless connection to it, using a Linksys WMP600N card. I have NetZero DSL (it looks like they're leasing Verizon

  • I installed the latest version of Flash, but PowerPoint 2010 won't play videos

    I installed the latest version of Flash, but PowerPoint 2010 won't play embedded videos.  I keep getting a message telling me to install Flash, even though it is clearly on my machine.