New answers tagged

0

You won't be able to restrict the views to certain users, for your requirement you need to set the item-level permissions. Go to list settings >> Advanced Settings >> Under Read access (check: Read items that were created by the user). This allows the user to read/view their items created by them. Admin should be able to view all items.


1

If you want to use the SharePoint app model then yes, you must allow posts. SharePoint sends authorization & authentication data to your app via post. Your app needs that data to generate a client context. Take a look at the tokenhelper.cs file and/or the landing page code behind & you should see the post data processing


0

I wouldn't use an index counter as mentioned by Amal... Here is what I would use =TEXT([Birthday],"mm/dd") This is a more well rounded solution which will allow you to do more. This will give you exactly what you are looking for. Both methods will work for you but this will give you exactly what you want if the date is oriented if displayed worded or in ...


0

Please see the below. For the full article click link. https://support.office.com/en-us/article/Export-an-Excel-table-to-a-SharePoint-list-d1c7a1e5-d9ee-4322-87ed-924323d0ac53 Works great. I have done this many times. Export a table to a SharePoint list 1.In the worksheet, click anywhere in the table that you want to export. Tip: This displays the Table ...


0

It depends :) if these columns are just fields that you added on the page content type or on the page library itself and they are added on the page layout, then it is as easy as update the columns with the link you like. I believe this is not the case, and the links are stored as a part of the page content field. This will require to search and replace ...


0

For SharePoint Addin, you need to given appropriate permissions rights like tenant, site collection, web etc. In your Addin you need to use app-only context while connecting to SharePoint, in this way you can elevate the privileges.


0

You need to add the lookup column in the <ViewFields> section! like this : <View><ViewFields><FieldRef Name='" + lookupFieldName + "' LookupId='TRUE' /></ViewFields></View>


0

How bad does it stink that you can’t elevate to the application pool account in Office 365. It used to make things like cross site reads so much easier but from a security perspective totally makes sense it doesn’t exist. There really is no delegated replacement you can make the process slightly less painless by using the relevant objects within an ...


0

For Content Search WebPart (CSWP), you need to develop this feature as part of the display template. In the control template, you can add the dropdown with the relevant sort values. In the dropdown change event, change the Content Search WebPart's query with the appropriate sorting (based on managed property) by using Srch.U.fillKeywordQuery function. ...


0

Since its pulling the list data and not replicating, you can configure Hybrid federated search between the environments and create a result source specific to on-premises. Use this result source in Content search or Search result WebPart query and show the items.


0

It can be integrated, but I am not sure for what purpose you want it for. If you want it on a page, make a custom page layout, link tiny mce assets (js / etc) in the additional head, then on your page, add a script editor and put in the required markup ( flexible version ). Less effort requires just hard-coding it while you create the page.


0

Looks like we forgot to publish the master pages in our target collections where we added the script tags. Once the master page got published, everything started working as expected.


0

Write If condition in workflow Remember to edit WF Settings and check Start WF when an item is added or Changed according to the requirement If Priority is equal to High, Pause for duration, Send email If Priority is Low, Pause for duration, Send email


0

I believe it is a publishing issue as Marco has mentioned. The way to debug it though is to try to log as a user from the visitor group and using the developer tools and see the version of your custom.js file and compare to another user from the owners group. personally, It happens to me couple of times, and I ended up just adding comments to the js file (SP ...


0

Create a form load rule that checks to see if the user is an admin or not, and switch views depending on that condition. For example if current user not admin, switch to Edit view.


0

I do recommend you use the SharePoint 2013 Search Query Tool and it will give you a complete list of all the list columns and more and you can always see your mapped properties, etc... working with the REST endPoint,sometimes tricky in the browser. Here is the link to the tool: https://sp2013searchtool.codeplex.com/


0

I assume that this was a crawl issue. I don't have access to the Tenant Admin so I couldn't force an update. I came back to this later and all values were displayed as expected.


0

Based on your comment response, you'd do it like: var itemProperties = { '__metadata': { "type": "SP.List" }, "Title": $("#FirstName").val(); };


0

I was able to address this by changing some of the initial script to firstly run when the frame has loaded. <script type="text/javascript"> document.getElementById("myframe").onload = function() { var x = document.getElementById("myframe"); var height = height=document.body.clientHeight; document.getElementById("myframe").height = ...


0

Now issues is when I call Loadscripts function from ECS_ProviderSubmit.js, it just execute this.LoadScripts function and returns. Right, because you are doing a lot of async stuff and not waiting for it to be done before moving on to closing the modal. It looks like you are already using promises in the updateItemRequest function, so I would just ...


1

For the specific example you cite, clicking a link on a lookup column (presumably from a list view) and having that redirect to the edit form for the lookup item instead of the display form, I would think using Client Side Rendering to rewrite the link URL for the lookup field would be appropriate. With a little research you can see that links to the ...


1

Why not inject some simple javascript in a custom displayform, make it as the default, and do a simple redirection on the default form? <script> var newUrl = window.location.toString().replace("DisplayForm", "EditForm"); window.location = newUrl; </script>


0

You use SharePoint online, so you need to use PowerShell for SharePoint Online and to cmdlet : Add-SPOUser For you need, i found this post : http://3sharp.com/blog/use-powershell-to-automate-groups-and-users-provisioning-in-sharepoint-online/ It describe how to add user in sharepoint online from a CSV/Excel file Else If you dont want to code it ! A full ...


0

About eTag When updating or deleting items within SharePoint lists via REST you must specify the Entity Tag (eTag) value that was returned with the item during the initial query. This enables SharePoint to determine if the item has changed since it was requested. Alternatively you can tell SharePoint to perform the operation regardless by ...


0

Try adding datetime'yourDate' So your request looks like http://site/_api/lists/getbytitle('EventCalendar')/items?$filter=EventDate gt datetime'2016-05-01T05:52:12Z'


0

To get the full name of the SP.User object use: .get_lookupValue() I am not sure how to get the last version from version collection, but have a look at THIS. Unfortunately there's no method or property in SP.FileVersionCollection object to get the last major version, but I think you can somehow loop through the versions?


0

There are few reason that might preventing your code to run Check jQuery reference added in your script editor. If you have added jQuery reference and still it is not working try your code by placing it in Content Editor WebPart. If you still face issue then track console in debugger of browser. And let me know if solved you issue. Thanks


0

You might be missing the jQuery reference on your page. Also make sure the IDs of the content are correct. Open the browser's console and check what exception you get. :) EDIT: As I understood, you are trying to resize the iframe to fit it's contents. The reason why your code doesn't work is taht #divContent is not actually on the page (it's in the ...


-1

try PowerShell pnp, it should be helpful. https://github.com/OfficeDev/PnP-PowerShell/blob/master/Documentation/RemoveSPOEventReceiver.md


2

Use the PnP PowerShell CmdLets, and you can do this with one line of code: Add-SPOTaxonomyField -DisplayName "Region" -InternalName "Region" -TermSetPath "Contoso|Region" Documentation Implementation


1

Adobe Illustrator files are accepted by Adobe programs but is not a file-format that Web Browsers accept or understand So for you logo you're stuck with JPG , PNG , GIF


1

I think this maybe what you are looking for but we completely need more information like "What you are really looking to accomplish;" Try... =IF([Modified]>[ColumnA], [Modified], IF([ColumnA]>[ColumnB], [ColumnA], [ColumnB]))


1

Use a standard Description column and apply CSR to make it look and behave anyway you want. CSS can clean the View /* ListView - make Description fields a maximum width and height, and show full text on mouseover*/ /*.ms-itmhover is the TR row*/ .ms-vb2 .ms-rtestate-field{ max-width:40em; max-height:2em; overflow:hidden; } .ms-vb2 ...


0

SharePoint does not record when a COLUMN value changed; if you need that you must create a Workflow and do the administration yourself If you mean you want the maximum value of the 3 columns: DateA or DateB or Modified (SharePoints last registered anything-in-the-ITEM changed) it is: =MAX( [DateA] , [DateB] , [Modified] ) ...


1

One possible solution: Create a Notes column, then create a list form, named something like "CustomEdit.aspx" that has nothing in it but the Notes field (hide all the other columns in the list), and use another column, named something like EditNotes to have the hyperlink to the custom edit form. Something like: ="<a ...


1

Column C formula is =IF([ColumnA]>[ColumnB], [ColumnA], [ColumnB])


0

You can use the MAX function and output it in Date format. =MAX([date1],[date2],[date3]) If the Date fields are empty, write an if case to avoid garbage values.


2

You can use the MAX function and output it in Date format. =MAX([date1],[date2]) If the two dates are blank, it will output a default date in 1899, so maybe put in a IF condition in there.


0

I think a reason for this error is updating multiple items in one action. You can put the pause in between or re-write the logic to update 1 item at a time. This error can be due to endless loops, updating multiple items in one action or creating multiple items in one action and so far.


0

This actually made me switch to the following code instead of add-spofile: $Context = Get-SPOContext #Retrieve list $List = $Context.Web.Lists.GetByTitle("DocLib") $Context.Load($List) $Context.ExecuteQuery() #Upload file Foreach ($File in (dir $folder)) { $FileStream = New-Object IO.FileStream($File.FullName,[System.IO.FileMode]::Open) $FileCreationInfo ...


0

Follow the below steps: Click on Add an app in SharePoint site Type Nintex workflow in find an app search box Click on 2 results in the SharePoint Store You can see Nintex Workflow for Office 365 in store. Open it. Click on Add it button Install it


0

This might not answer your question. Search is not real time. In your case it's a single list and you can query the list using CAML. To optimise performance you can index the fields you are querying.


3

Should you not do UserCustomAction.Update() after you set the new script source? (also you may want to store the action in a variable: try{ $theAction = $customActions.GetById($Id) $theAction.ScriptSrc = $ScriptSrc $theAction.Update() $context.ExecuteQuery() Write-Host "CustomAction $Id updated" -ForegroundColor Green } catch{ ...


0

Please refer to this similar thread with suggested solutions by expert to copy a file from a document library in one site to a document library in a different site using JavaScript and REST. However, migration of SharePoint content to a site of a different SharePoint account can be done using the ‘Save site as template’ feature on the SharePoint. In the ...


2

You should refer this link once. This post contains the code for authenticating with your SharePoint Online and upload a file into the given library. class Program { static void Main(string[] args) { using (ClientContext clientContext = new ClientContext("https://xxxx.sharepoint.com/sites/SiteName")) { ...


0

It was just a matter of creating the "ctx" (ClientContext) from the same location where the object is being shared. So the clientcontext needed to be dynamically created with the object parent url. ex: Object url: "/sites/intranet/project/Shared Documents/document.aspx" ClientContext: "var ctx = new SP.ClientContext("/sites/intranet/project/")


0

here in short a description, what you have to do: First, go into your search service application and open the search Schema. Make sure, that your site column is a manage property and run a crawl. The second step is the modification of the display template. You find this file under master pages and can modify it to Display your value.


1

I found the answer here: http://www.networksteve.com/enterprise/topic.php/How_to_fix_this_Designer_Workflow_error/?TopicId=91458&Posts=3 In short there was a "hidden" else if condition from a previous attempt and you have to hover over each section in the wf and delete anything that's empty. Not at all obvious and not the best of designs, but pretty ...


0

You should start by copying a display template that does most of what you want, like popup hover card, etc. They are stored in the Master Page Gallery under Display Templates. Then add your refinable property and then insert the property reference in the form ctx.CurrentItem.PropertyName The rest is just fighting JavaScript and HTML. Rename the copy of the ...



Top 50 recent answers are included