Tag Info

New answers tagged

0

Please check out the following links, http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/03/29/corporate-youtube-and-video-delivery-via-sharepoint-2013.aspx http://blogs.msdn.com/b/steve_fox/archive/2012/08/05/sharepoint-2013-and-windows-azure-media-services.aspx Hope this helps you!!!


0

It is possible to check-in file with comment in one round trip only. Here is the updated code -- Web web = context.Web; FileCreationInformation newFile = new FileCreationInformation(); newFile.Content = System.IO.File.ReadAllBytes(filePath); newFile.Url = destFileName; newFile.Overwrite = true; ...


3

As an introductory please follow How to: Complete basic operations using SharePoint 2013 client library code article to get acquainted with how to update a SharePoint list item via CSOM. How to update list items via CSOM in PowerShell Assume the following data is contained in CSV file ID,FullName,Company,Title 1,Pilar Ackerman,Contoso Ltd,Manager ...


0

Alternatively you could use Get-SPOGroups Here's an example $ctx = Get-SPOContext url username password Get-SPOGroups -Web $ctx.Web This will give you a list of groups and ids in the rootweb. If you need users there is also Get-SPOWebUsers Example $ctx = Get-SPOContext url username password Get-SPOWebUsers -Web $ctx.Web


0

You could also use New-SPOPermissionLevel To create the RoleDefinition and New-SPOGroup if you want to create a group with that RoleDefinition.


0

It might be a bit late now but you can use a the SharePoint Online Automation cmdlets https://sharepointonlineautomationcmdlets.codeplex.com/ to do this. Just write a function which uses Get-SPOSubWebs and runs through all of the subsites recursively and use the Install-SPOWebFeature cmdlet to activate the features. Something like $ctx = Get-SPOContext url ...


4

Yes you do not have a site content or site settings pages you find in a normal page. However, if you know the list internal name, you can build the url from it and go to lit. {App Site URL}/Lists/{List internal name}/AllItems.aspx App Site URL should be like as below example: ...


0

Oddly enough, this issue only occurred on a site column that was bound to the site content type present in the list. When I added a column directly to the list, I could populate the item via SharePoint Designer Workflow as expected.


2

You'll want to use the SPFieldType class instead of FieldType. Update: Actually, the issue is that the CSOM doesn't support that version of Add. Use AddAsXml instead: list.Fields.AddFieldAsXml("",true, AddFieldOptions.DefaultValue); When you call GetByTitle you're using [] - square brackets. Try using parenthesis to call the method instead - ...


0

I got it to work so I will share my victory with you. This code works if you need to get the Site collections paths, title etc. var queryUrl = spAppWebUrl + "/_api/search/query?querytext='sharepoint'&trimduplicates=false&rowlimit=400&refinementfilters='contentclass:equals("STS_Site")' $.ajax({ url: queryUrl, method: "GET", headers: { "Accept": ...


0

Probably your list has the option "browserfilehanding" set to "Permissive". Change it to "Strict": $site = Get-SPSite("http://SharePointSite") $web = $site.OpenWeb() $list = $web.GetList("http://SharePointSite/Attachments") write-output $list.browserfilehandling if ($list.browserfilehandling -eq "Permissive") { $list.browserfilehandling = “Strict” ; ...


0

I am assuming you use infopath here. You have to start with the different infopath form type. Which is shown here. Then the defualt form will be the infopath.


0

Is this question still actual? Cause you just need to generate a right XML to be imported via ImportWebPart method.


0

You can use SSIS packages and do a data transfer to a another SQL Server. Then you can have your reports pointing to that database server.


1

As far as the database can be accessed through the SharePoint installed server, there is no issue if the connectivity is strong. If you need to have a secondary database which store some other data which are not used by SharePoint itself, you can use Business Connectivity Services. Having both databases in the same server is fine. But if you are planning ...


0

Using the client side object model or CSOM from SharePoint Online, you can retrieve the details of a list item and create a new list item. Basically, you would use at least two rountrips to the server from. First, you want to use the JavaScript library provided with SharePoint to get the SharePoint context, send an asynchronous query to SharePoint Online ...


1

If you want the links to be added globally for everyone, one way to do it could be by using jQuery and javascript in your MySite master page to add the links. I want to mention that this trick would only work in MySite root level (when users click the "Newsfeed" in the top suite bar) though and not in the Personal Sites because Personal sites are actually ...


2

you can use SP.UI.ModalDialog.showWaitScreenWithNoClose If you want to use the 'Waiting' dialog function OpenDialog(targetUrl) { var waitScreen = SP.UI.ModalDialog.showWaitScreenWithNoClose("Loading", "Please wait"); var options = SP.UI.$create_DialogOptions(); options.url = targetUrl; options.autoSize = true; ...


0

Get it work. I replace the CreateFolder function calling by : List DocumentLibrary = clientContext.Web.Lists.GetByTitle(libName); DocumentLibrary.RootFolder.Folders.Add(sharepointFolderName); clientContext.ExecuteQuery(); And delete the two functions. I still curious why it doesn't work, but the ...


0

There are two ways that can be followed in your case: -- Using office 365 api which works with azure AD services. http://msdn.microsoft.com/en-us/library/office/dn605892(v=office.15).aspx http://blogs.msdn.com/b/kaevans/archive/2014/04/15/calling-o365-apis-from-your-web-api-on-behalf-of-a-user.aspx -- Create your own web Api restful service project which ...


0

In my experience, you can only do this through Designer. Good Luck.


0

Try passing the relative URL: var pageToAddWP = hostweb.getFileByServerRelativeUrl(getRelativeUrlFromAbsolute(hostUrl) + "SitePages/DevHome.aspx"); Also, change the assembly version to 16 in your webPartXml code. <Assembly>Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>


0

To strip the Html, you could do something like this: function stripHtml(body) { var regex = /(<([^>]+)>)/ig; var result = body.replace(regex, ""); return result; } If you're using jQuery, you can use text() function ex. var divText = $("#myDiv").text();


1

In your example you are just creating a single list item. Since CSOM supports Request Batching you could take advantage of it when creating multiple list items as demonstrated in the below example: var list = context.Web.Lists.GetByTitle("Contacts"); for (var i = 0; i < 4; i++) { var itemCreateInfo = new ListItemCreationInformation() { }; var ...


0

I followed this blogpost: http://www.vrdmn.com/2013/03/sharepoint-2013-declaratively-add-app.html The only modification I did was that I had to find the FeatureId by powershell: Get-SPFeature -web <url to your site> | select DisplayName, Id One of the features has a DisplayName and ID that is a guid almost identical to the ProductId. In my case, ...


1

Normally I would do this through feature stapling, however it doesn't seem to be supported in SPO/O365. There may be some workarounds though. If you are okay with doing it manually, you can create a PowerShell script that looks through your MySites and activates the branding features, and run it regularly. Alternatively you can check other solutions, but ...


0

I resolved the issue by setting the keywords in the following way: Microsoft.SharePoint.Client.Field entKeywordField = list.Fields.GetByInternalNameOrTitle("Enterprise Keywords"); TaxonomyField entKeywordFieldTaxonomy = ctx.CastTo<TaxonomyField>(entKeywordField); entKeywordFieldTaxonomy.SetFieldValueByValueCollection(item, new ...


1

How to provision field in SharePoint Online via CSOM in PowerShell FieldCollection.Add method - adds a field to the field collection FieldCollection.AddFieldAsXml method - creates a field based on the specified schema, Boolean value, and field options The example demonstrates how to add GeoLocation field into Contact List: ...


0

To add a new domain in Office365/Sharepoint Online to replace the default example.onmicrosoft.com and use it in usernames: Log in the Office 365 Admin portal (https://portal.office.com/admin) with your Admin account Click the "Domains" from the left navigation/menu bar Click the + sign (Beside "New Domain" or "Add Domain") on the top of your list of ...


2

if this helps anyone, this code returns the values I needed. List listFields = context.Web.Lists.GetByTitle("Financial Notes"); context.Load(listFields); context.Load(listFields.ContentTypes); context.Load(listFields.Fields); ListItem item; // this is how you can get the item(file), you can also use CAML query context.Load(item = ...


0

Eventually, I gave up and did it manually. Since the field was just a text field linked to a person/group picker in an InfoPath form, it was a bit more difficult than I hoped. To do it manually, I just opened the XML files for the forms and deleted any instances of DOMAIN\.


0

Try this: HTML <label for="ageList">Age from List</label> <input type="text" id="ageList" /> <br></br> <label for="ageForm">Age from Form</label> <input type="text" id="ageForm" /> <br></br> <label for="myselect">Age Dropdown</label> <select id="myselect"> <option ...


2

Change the code that creates the items to the following: var itemData = new [,] { { "SkoleSite", "/sites/Engelsk" }, { "Settings", "/sites/Engelsk/Shared%20Documents/Forms/AllItems.aspx" } }; for (var i = 0; i < 2; i++) { var itemCreateInfo = new ListItemCreationInformation(); var newItem = announcementsList.AddItem(itemCreateInfo); ...


1

Ahh ha I found out the answer. The path src="/_layouts/15/images/icxlsx.png" point to the host web path of https://yoursite.sharepoint.com/_layouts/15/images/icxlsx.png If you wish to access a sitecollection Style Library then you will need to add that onto the url such as /Sites/Style library/ ... or what ever you have named your site ...


1

Before proceeding for adding the second item, you need to do an Update for the first item. In a way you need to do an update for each and every item you add. P.S. You can run a for loop sort of thing to skip repetition of code lines. EDIT - You may have a look at these links - Link1 & Link2


1

In order to get data from your list to your form, you will need to use either CSOM (JSOM or C#, depending on how your app is hosted) or REST. See these links on how to get list items: CSOM JSOM REST If the list is on the host web, and you are trying to get items from the app, you will need to use the Cross-Domain Library, Sp.RequestExecutor.js. Here is ...


3

This error occurs since requested properties have not been loaded. You have to explicitly specify them in ClientRuntimeContext.Load method. Since you are getting ListItemAllFields property, you have to specify like this: context.Load(listItem, i => i.File,i => i.File.ListItemAllFields); Example 1 In order to retrieve File object with all List Item ...


0

I'm not sure if I understand the question correctly, but I think you have a completely new customized webform that has absolutely no connection to SharePoint. And now you want that form to include data from a SharePoint list item using html + css + jss, is this correct? Microsoft has good documentation on this, if you go through this I'm confident you'll ...


1

Where is the list located? Is it inside the same app web or the host web? If it is app web, then follow this article. If it is the host web, then you need to enable permissions in the app permissions to read list. Then access the host web voa javascript. All need to be done with JS Async calls.


1

Do you want to retrieve the properties? If yes, then you will find it within your SPListItem -> listItem["Modified_x0020_By"], etc.. But not all of them. Via listItem.File.Versions you get a collection of the file versions which you can iterate through respectively can read the properties e.g. "Level" (Draft, Published...) or "VersionLabel" (-> version ...


2

The "Open in Windows Explorer" option is not supported by Microsoft on Macs. This is primarily because Windows and Mac (among other operating systems) have different ways of handling those kinds of protocols. You may be able to use "Microsoft Document Connection" as a substitute though. Here is an article that may help: ...


0

Of course it's greyed out, if you are in Mac OS you are not using Windows. Download the document, then upload it to the second library. Once you have confirmed success, delete it from the first library. You will lose some types of data on the file (like when it was created or any version history) by doing this.


1

Open with Windows Explorer is a Windows/IE function only, thus why it is disabled.


2

There are four ways of going about this. Content query webpart: This will basically give you a view based on type. It is very easy to set up, but you'll have to do some XSLT modifications to make it look nice. Can be a bit of a pain. Some help -> http://blogs.msdn.com/b/ecm/archive/2006/10/25/configuring-and-customizing-the-content-query-web-part.aspx ...


0

This fix doesn't work on a list with pagination as the list items in the extra pages are obtained via ajax, so this doesn't correct the links for the rest of the pages (as the js doesn't run again). You can either get it to run again after someone has clicked to view a different page page buttons (AFTER the ajax has got the data and put it on the page), or ...


0

Yes, the user won't be able to add/modify items in the host web. The App+User policy takes lower of the two. Besides that you are also right in saying that App Only Policy can be used to elevate privileges. For more details check this link.


0

As far is I know, the individual users' permission to a list in the host web get overridden when it is accessed through the app. Then it uses app permissions.


1

Best way to do something like you need is to use the search engine. Do you have a specific Content Type or List template for the Library? in this case you can filter your search query for Content type or list template and also where the Site column "IsDone" has the value "Not Done". Actually, even if you don't have a specific CT or List template you could ...


2

Use File.OpenBinaryDirect method to downloads the specified file from a SharePoint site. The following example demonstrates how to download file from a Library by providing its item Id. Example /// <summary> /// Download file from a Library /// </summary> /// <param name="context">CSOM context</param> /// <param ...


0

Try this: listItem.update(); context.load(listItem); context.executeQueryAsync(Function.createDelegate(this, AddNewEmployeeSuccess),Function.createDelegate(this, AddNewEmployeeFail));



Top 50 recent answers are included