New answers tagged

0

With out file reader.Like safari 5.0. call openpageindialog on link. function openpageindialog(itemid) { var url = "/_layouts/Attachfile.aspx?ListId={LISTID}&ItemId=" + ItemID; var options = { url: url, width: 600, height: 400, dialogReturnValueCallback: function(result, fileAdded){ if(result == SP....


0

I dont think it is possible through SharePoint designer workflow or through JavaSript. Because there should be a trigger to perform a task, like clicking a button is the trigger and saving the transaction is the task. But in SPD Workflow you may find only three triggers like Item Added event, Item edited event and manual trigger of workflow. But as per your ...


1

I guess you are missing something in this step. var addData = { __metadata: { 'type': 'SP.Data.GNPagesListItem' }, Title: data.Title, Description: data.Description, ProsessOwnerId: data.ProsessOwner, ProcessContributerId: data.ProcessContributer }; To update a people or group field, instead of ProsessOwner or ProcessContributer the nomenclature should be ...


1

Seems like there is some mismatch in your JSON or data variable. Please check whether for "data.ProsessOwner" and "data.ProcessContributer" you are getting correct ID's. please refer this answer - Updating Lookup Values with the REST API


0

i ended up with query below, works fine for me now, and i can search on LoginName, Title, or Email. `var userSearchSuggestionEndpoint = "/_api/web/SiteUsers?$filter=(substringof('" + searchKey + "',LoginName) or substringof('" + searchKey + "',Title) or substringof('" + searchKey + "',Email))"; return baseSvc.getRequest(userSearchSuggestionEndpoint)...


1

Please see the below example, you can use the "and" operator, to meet multiple conditions, http://{server_name}/_vti_bin/listdata.svc/UserInformationList?$filter=((ContentType eq 'Person') and (substringof(Name,'{query}')))&$orderby=Name Also, shared by Atish, on the following page, it shows you multiple other operators, you can use in your ...


0

1) Your listItemsA variable is not set as a global variable, therefor the listItemsA might not exists within your success function. 2) Because the success function an async function it will mean that your cycle method can execute before the query has been succesfully retrieved. And the slidehsow ill start without your data present I would place/execute the ...


0

First Create a New SharePoint Hosted app. Add a new client web part. Write your html structure for the Slider. write the JavaScript code to retrieve the list which store the url for the images which you want to show if you want customizable slider. Now add your app-part to page like you add web-part.


0

Wrap the anonymous immediate function in a document ready function like so... $(document).ready(function(){ var subsiteUrl = "site/subsite" (function($j) { ExecuteOrDelayUntilScriptLoaded(doWorkA, "SP.js"); function doWorkA() { var currCtxA = new SP.ClientContext(subsiteUrl); ... })(jQuery); });


0

This doesn't seem logically possible. Think about it. ExecuteOrDelayUntilScriptLoaded does exactly what it says on the tin: if the specified script has already been loaded your function will be executed "immediately" but if the script is still not loaded then your function will wait in a queue until such process completes. This means that you can't really ...


1

How about using window.dynamicTable anywhere you want, that sticks stuff in the global scope It is of course better to create your own scope for variables/functions. window.myScope = window.myScope || {} or to make it MDS save Type.registerNamespace('myScope');


1

You can do this by workflows by following steps- 1- Create two column StartDate to your list(type single line of text). 2- Change your code by: oListItem1.set_item('StartDate',StartDate); 3- Create a workflow to that list Create a workflow variable startDate and set its current item StartDate value. Set Variable: startDate to Current Item:StartDate ...


0

I had this same problem and found that storing the result of get_effectiveBasePermissions(); first within a variable and then using the has() function on this variable helped. So, instead of var __current_user_has_permissions = listItem.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems) Try this: var value = listItem....


0

Obviously, you can get the permissions on the document library and see the groups who got access and what permission level they have. (this is from document library settings --> permissions). However, I believe you mean to know the item/document level, and this can be done by right click on each document and check the Shared With option, but if you want to ...


4

Make sure SharePoint server have the WorkFlow Manager installed and configured. WorkFlow Manager also requires ServiceBus to be installed Then run the following commands in the SharePoint Management Shell: Register-SPWorkflowService -SPSite 'http://localhost:24000' -WorkflowHostUri 'https://localhost:12290' -AllowOAuthHttp -Force $WmsSap = Get-...


1

We need to run this script in SharePoint Management Shell $WmsSap = Get-SPWorkflowServiceApplicationProxy $WmsSap.RegisterWorkflowLifecycleManagementEnvironment() Reffered from this link and it worked for me.


2

For lookup columns, you have to use $expand. So the query URL should look like _api/web/lists/getbytitle('A')/items?$select=column1,column2&$filter=owner/LoginName eq 'i:0#.f|membership|username'&$expand=owner There are some special character in i:0#.f|membership|username, so you have to encode it before passing in query URL. encodeURI('i:0#.f|...


0

Here is the answer: function exitClick(){ //replace your home page URL window.parent.location.href="https://milesli.sharepoint.com/sites/DevSite"; } <input type="button" value="exit" onclick="exitClick()"/>


0

This is a browser specific message and it has nothing to do with SharePoint. Since the Page Viewer is requesting an external URL browser is assuming it is some kind of cross domain calls and blocking those. You can see the actual error in browser developer console. One fix to this problem is to add the URL into the browsers trusted sites list.


0

Set the RequestTimeout on the ClientContext to -1


1

add a $select=myfield1,myfield2,etc onto your REST url. Note that once you add the $select parameter, only the fields you explicitly select will be returned. Without a $select parameter, all built-in fields are returned. See official doc on MSDN


1

You can use the property bag associated with several types in the Client Object Model. These values get persisted in the content database. Web.AllProperties property


0

You should use SPClientPeoplePicker - default JS object for SP2013. More info see there: Get the ID and Name from multiple Client side People pickers to store in a list Using SPClientPeoplePicker you can read members, write member, use groups and filters


2

This is not Filtering, but highlight (a row) with color based on a (due) date Multiple options: Color code due date field if 6 months before current date Calculated formulas for tracking progress Conditional Formatting Based on Number Range Color code due date field Or even more: http://sharepoint.stackexchange.com/search?q=user%3A32871+due


0

Here you go: var RequestedForpeoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.RequestedFor_TopSpan; var RequestedForu = RequestedForpeoplePicker.GetAllUserInfo(); and my peoplepicker <div> <SharePoint:ClientPeoplePicker Required="true" ValidationEnabled="true" ID="RequestedFor" UseLocalSuggestionCache="true" ...


0

Its simply, you deploy a module of add-in which sits only on specific location of the SharePoint page. This link would help you more on this MSDN: SharePoint Add-ins


0

By default your SharePoint app will use app.master master page. To apply custom master page, Please check this link: Office 365 - How to refer and apply custom master page in sharepoint hosted app?


2

For your requirement you will need to create Client Web Part in your SharePoint Hosted App. When you add Client Web Part in your SharePoint Hosted App solution and deploy it then you will find your App in Insert >> App Part ribbon. You can use the default page that Client Web Part provide or else you can give path of your existing page that you already have ...


0

You will need to use the "Add-In Parts" functionality to add the this app to a page. Microsoft provides a tutorial here: https://msdn.microsoft.com/en-us/library/office/fp179921.aspx.


1

I was also having same issue. I used SharePoint Online Management Shell and took the following approach:- Solution-1 I guess you are not running your SharePoint Online Management Shell as Administrator or else you are not including Microsoft.SharePoint.Client.dll before running the Command. Solution-2: You can use below script in SharePoint Online ...


3

It means that you can't use SharePoint Server cmdlet on SharePoint Online environment. Every SharePoint Online cmdlet has the "word" SPO in it. Enable-SPFeature is for SharePoint Server only. Enable-SPFeature Index of Windows PowerShell for SharePoint Online cmdlets However, I learnt today, you can use PowerShell and CSOM: Using PowerShell One ...


1

D, I believe the date which you are referencing is your system date while SharePoint will consider server date time. also, javascript month starts from 0, so it might also be the cause to increment date by 1.


0

Code sample: Client Side function for cross-site collections call, can throw the 'Access denied. You do not have permission to perform this action or access this resource.' error. $.getScript("/_layouts/15/SP.RequestExecutor.js"); function execCrossDomainRequest() { var executor; executor = new SP.RequestExecutor(appweburl); executor....


0

It seems there's no direct way through which the SharePoint app can communicate directly with the host page. We have to rely on the limited queryStrings that SharePoint provides on-load. Which means that, the user has to first edit the page and then, edit the web part and only then, I can pick up the info that the given app is in the edit mode. One extra ...


0

The ng-init expression is evaluated every time the page is rendered. So it's for page-refresh data, not for static data. so your example: ng-init="friends = ..." is a bit ambiguous. If this is static data, the same everytime you come to the page, then no- initialize that in the controller. I'm no expert, but it seems to me that proper use of ng-init is ...


0

I have changed the code and you can update accordingly to your logic. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security; using System.Web; using System.Net; using System.Configuration; using System.Collections.Specialized; using Microsoft.SharePoint....


1

User Profile Service and Managed Metadata Service are not available in SharePoint Foundation. You will need to upgrade to SharePoint Server.


0

It can be done (I just finished doing it, it works fine) - You can read about in more detail in my blog here - https://medium.com/@yash_agarwal2/performing-oauth-and-rest-calls-with-sharepoint-online-without-creating-an-add-in-677e15c8d6ab#.6pf4wp83b High level overview - 1) Get client id and secret by registering yourself here - https://sellerdashboard....


0

You can make use of WSSDesignConsole placeholder from the master page


2

This would require custom implementation using SSOM. You can try SPAudit class Or You can use cookie to be a flag for checking whether there is a user logged in. After the page is loaded, if the cookie is null, it suggests that there is a user logged in on the site, then you can get this user’s information using JavaScript Object Model and store the ...


1

Workflows can use app permissions feature is only going to be activated if 1) You have configured your workflow manager properly. Make sure there are not issues with your workflow manager and you can create workflow using SP 2013 Workflow Manager. 2) You have configured apps for SharePoint 2013. Again you will need to make sure that you have hit all the ...


0

In order to use EmployeeLocation, you must have it in your $select list, also, you can't have $expand in there twice. Right: /_api/web/lists/getByTitle('Ventile')/items$select=Name,LastDatePUCDone,IsTerminated,Author/Title,EmployeeLocation/Title&$expand=Author/Title,EmployeeLocation/Title


2

You can check the ids from data.$1L_0 with the actual ids from your list. If they are same, then you can rely on data.$1L_0. Anyway following JSOM approach, you can flow: Add items in a array, then get ids from it using get_id(). var itemArray = []; var clientContext = SP.ClientContext.get_current(); var oList = clientContext.get_web().get_lists()....


0

You need to understand that code running in a SharePoint Hosted app will run under the security context of the currently logged in user. This means that every user who uses this functionality must have the appropriate permissions to upload blobs into your Azure container. You could hard-code the keys in code, but in JavaScript they'll be easily viewable to ...


1

In AppManifest.xml file, add Permission for your app. If you are performing CRUD operations on List Or Library then provide necessary Permission based on scope. eg: We are using Manage Permission for developer on Site Collection Scope. Reference snap: You can get more info about app permissions from here.


3

Create a new workflow in SharePoint Designer that runs when a new item is created. Use the Add Time to Date action to subtract 1 day from the meeting day to get your reminder date. Then use Pause until Date using your reminder date. After the pause, use Send Email action.


0

I believe it is randomly generated, aside from a configurable prefix, and once the add-in web is created and the URL assigned, it will remain permanent until that add-in web instance is deleted. See this article on MSDN, especially the section "What is the URL for an app for SharePoint?" which states: Each installation of an app has a unique URL in your ...


1

As far as I know there is nothing like Logic Apps in SharePoint, additionally there is no official release notes on SharePoint Logic Apps. We have Flow Apps in SharePoint which is same as Logic Apps in Azure. I used Flow app in SharePoint Online to create Workflow like functionality which synchronized with Mail Chimp. For more details on Flow apps you can ...


4

FileRef should give you the document's relative URL. $select should look like $select=FileLeafRef,FileRef,Modified,CheckoutUserId,AuthorId,OData__UIVersionString FileRef vs FileLeafRef FileRef is for document's relative URL FileLeafRef is for document's name Modified Code url: appurl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('" + ...


0

You are looking for query string (URL) filters. They let you specify a particular query string parameter that can be used to filter items in a web part. So essentially you need to pass on a particular value in a query string parameter and wire up the query string filter web part to pass on that parameter as a filter value to your respective document library ...



Top 50 recent answers are included