New answers tagged

0

There is no code above for updating or adding items what I can see.My guess is that you where using GET requests for those requests as well? That will not work, you would have to use POST requests for that as outlined here


3

Have you tried moving your code into the jQuery.getScript() success callback? Like this: $.getScript(hostweburl + "/_layouts/15/SP.RequestExecutor.js", function() { var executor = new SP.RequestExecutor(appweburl); // rest of code... });


0

The person/group column allows you to select which information to pull from the profile. So if you wanted to display Name, Phone Number, and Title, you would add 3 person/group columns, then choose the corresponding "Show field" option. Then you just select the same person for all 3 fields and they will stay in sync from AD as long as your profile sync job ...


0

I successfully retrieved items from the SharePoint list to .ASPX page of my external website using the following piece of code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.SharePoint.Client; using Microsoft.SharePoint; using System.Security; ...


0

You may also get help from this blog for migrating SharePoint on-premises to SharePoint Online natively, which involves usage of Azure Storage: http://sharepoint-content-migration.blogspot.in/2016/05/a-4-step-guide-for-migrating-sharepoint.html


0

The answer was to simply upgrade Internet Explorer. I could then see the login screens as expected.


0

The best thing is to not try to alter default behavior of SharePoint. It will break the user experience (different functionality on same type of action). I would create a JavaScript function for this using the SharePoint JavaScript API or REST API. You can then add a "script editor" web part on the page with a "Create new document" button in html. The ...


0

This will help you get started: Using the SharePoint 2013 search Query APIs C# example: using (ClientContext clientContext = new ClientContext("http://<serverName>/sites/<siteCollectionPath>")) { KeywordQuery keywordQuery = new KeywordQuery(clientContext); keywordQuery.QueryText = "SharePoint"; SearchExecutor searchExecutor = new ...


-1

I am not very clear on what you are trying to achieve here, but to show a managed metadata column as a filter, you need to map it to a refinable field on the search schema screen. Here is a guide on how to achieve that. Logon to Microsoft Online Portal (MOP) Go to SharePoint Online Administration Center page. On the Left Panel -> Select ‘Search’ Click ...


0

I had been confronted to that and the parent ID is not the best way. Because if you want to order your answers, if you have answers of answers, and that you delete more than one in a row, you will loose the link between the topic and your answers... I recommend you to use the ThreadIndex, it's specific to each item (Topics and Replies). You will have a long ...


-1

This article should help you: http://sharepointchick.com/archive/2008/04/29/changing-the-language-of-an-existing-sharepoint-site.aspx


-1

You can't convert the base site from French to English, but you can enable the English language pack. Go to Site Settings and click on language Settings and click English and click OK. You will need to do this for every site in your collection you want to have available in other languages.


2

Unfortunately, persistent columns are sealed meaning they cannot be deleted once created. You got 2 solutions (workaround) that you can try: Hide the column instead of deleting it and remove it from the view it was added. Create a new document library and copy all the documents into it (you can utilize the Open in explorer for easy copy/paste and use the ...


0

This is not possible using the query builder. What you can do is to create a calculated column with a formula like =TEXT([yourdatecolumn],"mm/dd") and map it to a Refinable field and use that for comparison


2

You can use the following to copy site to another site within the site collection Site Setting --> Site Administration --> Content and structure --> Select the site from the left navigation and move To copy to another site collection: try using copy site as a template (include content) and then use the template file to create a new site under the other site ...


2

The powershell coverage is weak, so you aren't going to have export options like you would on prem. You would have to create a script with CSOM, as a compiled exe or in powershell, to perform the provisioning and copying data around. If this is a one off scenario that might be ok, if you foresee the need to do this often, you might want to invest in a ...


0

Problem Solved When I was specifying the site to run against: I had to use https for it to work. Silly mistake really: It connects properly now.


0

Yes, that is how it works, Delve is the way to see people properties and see what common files they are working on. Now there is nothing stopping you from creating your own display template for your people results page to show what ever data you'd like. Here are a couple links to helpful information on getting started with display templates: ...


0

I had the exact same issue today and after trying all of the solutions on here and elsewhere, I finally managed to solve it. There was a issue with the last three fields that I have added in my list. I deleted them and recreated them and voila! Issue gone. Thanks


0

If the file is in a SharePoint library you can configure the library no default open in application and not online.


0

This can be done under one site by linking lists using lookup fields. So, you can have one list to store patients information, a document library with lookup column to the patients, and a list for checkups with lookup to the patient. On the landing page, you can create a little dash board as my colleague David Lozzi has explained in his blog post here


2

You have to login on the admin center with admin accounts. Sign in to Office 365 with your SharePoint Online admin account. Go to the SharePoint admin center. Click User Profiles. Under People, choose Manage User Properties. On the Manage Properties page, select New Property. On the Add Profile Property page, in the Property Settings section, in the Name ...


0

Sounds as if you want to connect a local ASP.NET App to your SharePoint Online (I am making a lot of assumptions in my answer based on this). If this is true, you would need to impersonate a SharePoint Online user in the application code by setting the network credentials to the username and password of the SharePoint Online user account then connect to the ...


0

Please try below mentioned code if it works for you. var FirstRow = { '__metadata': { 'type': 'SP.Field' }, 'Title': 'Comments', 'FieldTypeKind': 3 } var SecondRow = { '__metadata': { 'type': 'SP.Field' }, 'Contact': 'Comments', 'FieldTypeKind': 3 } $.ajax({ url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741') ...


1

Using the below code you can achieve this. It allows to set the redirection on the client-side $(document).ready(function() { var button = $("input[id$=SaveItem]"); // change redirection behavior button.removeAttr("onclick"); button.click(function() { var elementName = $(this).attr("name"); var aspForm = ...


0

Using below mentioned trick you can change the button's redirection behavior in Display or Edit form. Change SharePoint List “Display Item Form” Close Button Default Redirect Location I hope it works for you. Thanks.


0

The issue was with ClientContext object. It was not loading properly. Initially error was : "invalid Request". On next day it started showing below error( :O ) "Object doesn't support property or method 'set_formDigestHandlingEnabled' " After googling this error, I found that SP.Runtime.js and SP.js files were not loaded in sequence. I had to load ...


0

It's possible to retrieve the current server time, including a three-letter week day, using the Call HTTP Web Service action: Make a HTTP request to [%Workflow Context:Current Site URL%]_api then extract the Date header from the response headers using the Get an Item from a Dictionary action, with the path Date/(0). The date will be returned in the format ...


0

I just faced a similar problem. Using a custom display template might not give you the preview features. Resolved it by changing the display template settings to the one that says "Use the result type to decide" Hope this helps!


1

Try the below REST API endpoint to get the Folder Item ID, _spPageContextInfo.webAbsoluteUrl + "/_api/web/GetFolderByServerRelativeUrl('" + ctx.rootFolder + "')/listitemallfields/id" Example: http://sharepointsite/_api/web/GetFolderByServerRelativeUrl('/Library/Level 1 Folder/Level 2 Folder')/listitemallfields/id


0

This turned out to be very simple. ctx.ListData.FolderId


0

Use the below url for REST call var restUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/GetFolderByServerRelativeUrl('" + ctx.rootFolder + "'/UniqueId"


0

Turns out there are a couple ways to do this; The first one I found looks like this: $Item = Get-SPOListItem -List SEDA -Fields "FileLeafRef" | %{new-object psobject -property @{Id = $_.Id; Filename = $_["FileLeafRef"]}} | select Id, Filename | where {$_.Filename -eq $($r.Filename)} Set-SPOListItem -List SEDA -Identity $($Item.Id) ...


0

There is a maximum 256 character limit in SharePoint for REST URLs - reference: https://msdn.microsoft.com/en-us/LIbrary/dn292556.aspx However URL parameters are not included in the length-restriction, so can be used to get round this limit. Here is an example of using URL parameters to bypass this limit: ...


0

I suggest the following solution: Custom action that opens a popup by passing the id of selected task List item The popup opens an application page. using script or code behind you retrieve all the tasks related by data id. And then get the Assigned To for each task and include them to your meeting For the meeting you can export an ICS file. using api ...


0

Allow external sharing in SharePoint Online site collection - if you cannot do that, you're out of luck. However, if external sharing has been enabled or you can enable it, go to document you wish to share, select Share. Then choose "Get a link", and from drop-down select "View link - no sign-in required". Then copy&paste the link to your company ...


1

touch, I have encountered the issue where when an item is created by a workflow, another workflow that should trigger on creation doesn't trigger. I would use either of the 2 options below depending on how complex your second workflow is. Instead of using 2 workflows, just use the one 2013 workflow. When your app step creates an item in the second list ...


2

Note: right-click the element in the browser and select 'inspect element' to inspect the CSS in the F12 Developer console CSS has Specificity, which is a weird word for a simple concept: More Specified CSS rules determine which selector is applied So The account with firstname Robin is a selector, and The account with firstname Robin and ...


0

A list for each room with "Calendar View" as the default view. Then set up an overlay view to show all the rooms to make it easier to see which rooms are free


1

For me : 1- Yes they are two different ways to retrieve data from SharePoint (Technically speaking). 2- for the name SharePoint rest api and SharePoint Search rest API (See MSDN) 3- Yes both are active and present in SharePoint 2016 4- the difference is one is based on search services, so need to take care about indexing and planning your search schema ...


0

If I understand correctly, you have a form in a Sharepoint page. In that form, there's some fields to complete, like first name, surname, mobile... When you click AddAccountRow, the values entered in your form are inserted into a table tableAc. Then, when someone pressed the submitdata button, all data inside the table tableAc are posted to a Sharepoint ...


0

https://<site url>/_api/web/lists/getbytitle('ListName')/items?$select=Author/Title&$expand=Author Since Author is of type user which is stored as User id in the column when used with expand function it retrives Title of the Author, you can also use ID, FirstName,LastName,LoginName as required.


0

I managed to find the issue. Instead of using Author as a Lookup field I just needed to use AuthorId as normal field. So the url is like https://<site url>/_api/web/lists/getbytitle(My List)/items?$select=id,Created,AuthorId This returns the correct result.


0

$limit and $top query options could be applied only for a collection of entries such as FolderCollection resource (Top System Query Option), for example: /_api/web/GetFolderByServerRelativeUrl('<url>')/Folders?$top=2 //working but not for a single resource like Folder in your example: /_api/web/getfolderbyserverrelativeurl('<url>')?$top=2 ...


0

What you installed is SharePoint client components SDK, in order to write any managed code for InfoPath you need to install visual studio tools for applications VSTA.


2

First, put all the styles in a css file and upload it to the Site Assets library, then you can reference it in couple of ways to do this: Option 1: Site Settings ==> Under Look and Feel ==> Master Page ==> Alternate CSS URL and enter the URL to your custom css file, like this /SiteAssets/CSS/styles.css Option 2: Edit your master page (always make a ...


2

I don't think there is way to re-order the site contents as of now. But wait for the May 4 announced changes roll out to your tenancy, the new site contents page allows you to sort based on Name, type, number of items and Modified.


0

I have come a crossed this issue in the past. By OOTB you can view calendars from other site collections and roll them up into one view however having an addition flow from the master calendar to other calendars would require the item be created on the master calendar and a column that denotes the other calendars created. ex column location calendar would ...


1

I manage over 400 groups and faced the same issue. I don't have Farm access and use SharePoint 2010 so I don't know if this would work for 365. Our group name format uses the subsite name and permission level. I use a script in a Content Editor Web Part on the main site to display all the groups and users. Then I can Ctrl-f through the list to find a ...



Top 50 recent answers are included