Hot answers tagged

5

Ok, after lots of trial and error i got it. Turns out that A, no matter the locale of the site collection, the Client object model must enter in the english syntax. B, " and & throw syntax errors unless written as & quot; and & amp; so the correct code is: <Field Type='Calculated' DisplayName='Periode' LCID='1043' ResultType='Text'><...


4

CSOM and the REST API include the WebProxy for these operations. Query a remote service using the web proxy in SharePoint 2013 Code sample: $.ajax({ url: "../_api/SP.WebProxy.invoke", type: "POST", data: JSON.stringify( { "requestInfo": { "__metadata": { "type": "SP.WebRequestInfo" }, "Url": ...


4

I'll assume what you are trying to do is change a Choice field's type using PowerShell. In that case you can do something like this: $web = Get-SPWeb -Identity http://your.site.url.here $list = $web.Lists["YourList"] $field = $list.Fields["YourField"] $field.Type = [Microsoft.SharePoint.SPFieldType]::MultiChoice $field.Update() The SharePoint SPFieldType ...


4

It's actually very simple! :) You only have to duplicate the <Button tag and the <CommandUIHandler tag. Also be sure to duplicate the <ControlRef in the <Layout, or else the new button will not show. Something like: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <...


4

Use the /_api/site/id REST Endpoint to locate the desired ID. Edit: /_api/site/id


3

Try adding Both Delegate controls and it should resolve your problem.


3

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server"> <label class="ms-hidden"><SharePoint:ProjectProperty Property="Title" runat="server"/></label> </asp:Content> This is a snippet from default.aspx in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\...


3

If you are only using id's, it worked for me only with: 1;#;#2;#;#3


3

The error: The remote server returned an error: (403) Forbidden. occurs since authentication is required for this operation in SharePoint Online. You could utilize SharePointOnlineCredentials class from CSOM API for that purpose. The following example demonstrates how to download RSS feed from SharePoint Online and save it into file. Complete example ...


3

Isbah you can use any website which offer feeds or service to give prayer times. See islamicfinder.org/prayer_search.php for example. Also github.com/meltuhamy/masjid-times/wiki/Prayer-Times-Web-Service


3

If you need to update via direct xml then use SetViewXml method of view. So your code would like this SPList list = web.Lists["Test"]; SPViewCollection collViews = list.Views; string strViewName = "NewVIEW"; System.Collections.Specialized.StringCollection collViewFields = new System.Collections.Specialized.StringCollection(); string strQuery = ""; ...


2

You can achive it by using business data list connector for sharepoint 2010, after downloading and installing it, try with the following steps, 1.Create your list in SharePoint, e.g. a custom list named XML. Tipp: Use an appropiate list type, e.g. contacts for address-based information etc. 2.Goto List Settings > General Settings > Connect to external data ...


2

I take it that within SharePoint Designer you are viewing the form in a dataviewwebpart, and the form elements within that webpart XSLT are being rendered via a "SharePoint:FormField" control. The difficult part here is that SharePoint doesn't give you any real configuration options with that control in SharePoint Designer. It automatically renders the ...


2

EnableContentTypes="TRUE" instead of EnableContentType="TRUE" (note the s)


2

The XML represents the inherent configuration of a particular list item. Generally you wouldn't want to access the values by reading/parsing the XML directly, but rather using the wrapper object. You can access any of those fields using the "array" accessor for the wrapper field value object. Example: http://www.robertkuzma.com/2012/09/get-items-from-...


2

I have used code like this successfully SPFolder fldr = web.Folders[strLibraryUrl]; SPFile file = fldr.Files[XMLFileUrl]; XmlDocument xmlDoc = new XmlDocument(); byte[] bites = file.OpenBinary(); Stream strm = new MemoryStream(bites); xmlDoc.Load(strm); // Now you can select nodes, loop, or whatever XmlNodeList nodes = xmlDoc.SelectNodes("Files/File"); ...


2

according to MS, ImageURL is Optional Text. Specifies a virtual server relative link to an image that presents an icon for the item. which means you should probably start with ImageURL="/myPics/myIcon.ico" or ImageUrl="/_layouts/images/workflows.gif" as already stated, try to use an ootb icon so that you can troubleshoot not the image format and ...


2

You will need to create a resx file for each language. Here is an ASP.NET example. Then create the Name-Value pairs in the resex files. I might want to define a customer site column for to display a customer name. In the English file I would define it as Customer = Customer then in the Dutch rexx I would define it as Customer = Klant, etc. The important ...


2

This is not possible with pure SharePoint Online/O365.


2

_.000 is used internally, if you open a site in Sharepoint Designer and look at a list, you'll see all those items referenced in that way. In almost all cases, we end up building the URL to where we want to go manually with various pieces of the response using things like ows_ID. For a list item, you need to view or edit, so you end up constructing a url ...


2

String myURL = "<your site URL>/_vti_bin/owssvr.dll?Cmd=Display&List={List GUID}&XMLDATA=TRUE"; HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(myURL); myRequest.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse(); Encoding enc = System.Text.Encoding.GetEncoding(0);...


2

Looks like you added your rule on the SalesPerson and AccountName fields. You should put the rule on your OBM field so that when it changes it updates the other text fields. So in your OBM text box add a rule to set your SalesPerson field equal to the AccountList[SalesPerson] and filter that to where your AccountList[OBM] is equal to Infopath[OBM] field. ...


2

To consume SharePoint Web Services from SOAP UI the request needs to be authenticated, here is how to specify NTLM auth for SharePoint 2013: click AUTH tab at the bottom of the request message editor add Add new authorization in Type selector and choose NTLM set credentials Official documentation: Authenticating SOAP Requests


2

When they say that properties (should say attributes) need quotes they really mean it. So even an attribute with no value needs the equals and quotes. You need to change it to async="" data-main="scripts/museconfig.js?crs=168988563"


2

Solution 1 (Third-party - paid) If third party solution is feasible, use Simego data synchronization studio https://www.simego.com/solutions/sharepoint-integration. You can setup xml file location to read xml files and set the target as SharePoint library. Finally schedule it in Windows Task Scheduler. Solution 2 (BCS - XML connector) BCS supports only ...


2

To add Web Part from SharePoint WebPart Gallery to publishing page, the following PowerShell for your reference. $webURL="http://sp2013/sites/team" $listName="Pages" $pageName="Home" $webPartName="SharePointProject1 - VisualWebPart1" $spWeb = Get-SPWeb $webURL $spSiteCollection = Get-SPWeb -Identity $spWeb.Site.Url $pubWeb = [Microsoft.SharePoint....


2

Remove the Closed field from that XML Row and you will no longer get the error mentioned and it will be stored as an empty.


2

Default values for People fields are not possible, either programmatically or via the UI. You could fake the effect via a Remote Event Receiver, Webhook, or possibly a Flow.


2

If you want to iterate through the results looking for any errors, then use something like this: var xml = $($.parseXML( yourXMLstring )); var errors = xml.find("ErrorCode"); for (var i=0; i<errors.length; i++) { alert( "Error for '" + errors[i].parentNode.getAttribute("ID") + "' = " + errors[i].textContent ); }


2

The benefits of versioning are the same no matter what type of file it is. You should use versioning when: The contents of the document are going to change, and You want to be able to have access to previous versions of the document, for whatever reason (to see what changed, restore to a previous version if the current version is no longer valid, etc.)


Only top voted, non community-wiki answers of a minimum length are eligible