Tag Info

New answers tagged

1

The following script allows you to access user profile properties for Sharepoint Online users. Under PersonalSpace you can find either a link or an empty field. It will let you know if the user has the personal site. Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Context.Credentials = $Creds #Identify users in the Site Collection ...


0

You Code works if its standard Angular, http://plnkr.co/edit/PE7pymeqd3Vcn3ndSwiO?p=preview so something weird in the edit mode of SharePoint?, Remember Angular is an SPA designed for Single Pages, not really to be embedded within SharePoint Web Part Pages, So perhaps an alternate solution is not to run the code if its in Design Mode Detect design mode ...


2

The trial version should be only for 1 user. So you can only use yourself. Even my MSDN Premium doesn't allow more. Regarding the people picker, mine too show same unless you type some and search.


1

There is definitely no OOTB way of doing this. You have many options. As mentioned by XristosK, use JQuery to hide the column. Use a Content Query WebPart and customize the columns through the XSLT code used there. This will help you add conditions Use JavaScript CSOM and write a simple JQuery to display and you will have full control.


1

You can't disable showing columns OOTB. You need to use jquery to delete them. For example: http://stackoverflow.com/questions/1068881/jquery-remove-html-table-column http://stackoverflow.com/questions/1068881/jquery-remove-html-table-column But, what will happen if you show two items and item1 has Yes and item2 has No? Feel free to ask and specify that ...


0

It seems that the Custom mode was not really tested by MS. I've been digging into the Custom mode for several days, and I actually found a workaround, although I don't think it really pays off to use it. You can find example of using this workaround to create a tabbed list form on CodePlex: CSRTabs.js - the main script that renders the layout Schema.xml - ...


2

First thing I want to mention here is the use of list for just 1 item. This is not the way to go. You can use site properties (property bag values) to manage this situation. You can create 3 properties and update values to it. It will save storage and improve performances. You can find in this article how to query property bag values using JavaScript CSOM ...


0

Are you running into this issue? http://www.bfcnetworks.com/blogs/alexpearce/10-things-you-should-know-about-office-365-before-signing-up/ I have not yet found any way around #9 :( Basically means any email coming from O365 Sharepoint is useless for end users to correspond back via email. Only thing I've seen some places do is to add hyperlinks in the ...


1

Try to put your function into OnPostRender like this: SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ OnPostRender: function(ctx) { as described here: CSR and form templates and here: Modifying ListForm Save & Close button through JsLink


0

Have you thought of using a drop off library and then create a rule based on metadata to automatically deploy the document in the correct document library. You could use this same meta tag data to display the content of the library based on the audience setting of the library (For example all users in the IT-department see only the document library which is ...


2

To achieve the goal, you can go to configure search navigation. Here are the steps for your reference: Go to the Site settings page, click Search Settings under Search. In the section of Configure Search Navigation, click Add Link to add the the following links: 1). Title = Everything; URL = /search/pages/results.aspx 2). Title = People; URL = ...


1

Yes you can. Go to Site settings > Site collection Administration > Search Settings on the site where you want to be able to search for everything. ( You have to do the following steps for every sitecollection. ) Set "Search Center URL" to your global search center url. ( url/sites/searchcenter/pages) Uncheck "Use the same results page settings as my ...


0

http://sharepointlk.blogspot.in/2009/05/populate-infopath-text-box-based-on.html http://www.bizsupportonline.net/infopath2003/autofill-fields-infopath-dropdown-selection-secondary-data-source.htm check this check this check this check this check this check this check this check this check this check this check this check this check this check ...


0

According to MSDN (search for CustomAction on page) you are not allowed to put Javascript in a CommandAction, only URLs are expected there, this is how the App model works. However it does work with SharePoint on-premise. CustomAction cannot contain JavaScript: Any UrlActions or CommandActions must be a URL to navigate to. The URL can be ...


1

That is a very loaded question, and not knowing their environment I cant give all the advantages/disadvantages. Because of its nature, SharePoint Online has many advantages: Easy to get up and running Better performance More reliability Easier to admin Capital Expense is much lower The disadvantages: Unless you have Office 365 federated with your on ...


1

Create another column to check against. It can be a simple choice column called Complete with options Yes and No, where no is the default. On your workflow, you check if the status is archived and complete equals no. Then when done, you set complete equal to yes and the workflow won't fire on edits after that.


0

Ticketing system is usually necessary if there are many tickets. But putting many items in one SharePoint list is usually not a very good idea, because after reaching 5k limit, it will become more and more difficult to work with this list, especially programmatically. Also there's a limit of how much unique permissions can be in a list. Distributed ...


0

just as a reminder and a comment: the typical 2013 sharepoint community (message board) allows only one category per thread unlike the categories in blog posts that can be many. This is surely an improvement Microsoft can get their hands on in the near future.


0

The Office 365 Development Patterns & Practices has a module that discusses updating wiki pages: https://github.com/OfficeDev/PnP/tree/master/Scenarios/Provisioning.Pages


1

Obviously, the issue you are facing appears to be a new feature which is according to Microsoft under development but not yet rolled out. For an official list of Office 365 features, you might want to check the Office 365 Roadmap page: https://office.microsoft.com/en-us/products/office-365-roadmap-FX104343353.aspx It looks like the change you are seeing ...


0

Hate to answer "you can't", but ExpirationDate really is not exposed in client side API (I double-checked with dotPeek). There is some information about upgrade however, from that you might be able to calculate the expiration date indirectly. Namely, there's UpgradeReminderDate: SP.Site.get_upgradeReminderDate(). Of course, the reminder date is not very ...


1

Yes, you can do it from JS. The code will be something like this: (function () { var workflowInstanceId = 'PUT-YOUR-GUID-HERE'; var context = SP.ClientContext.get_current(); var web = context.get_web(); var servicesManager = SP.WorkflowServices.WorkflowServicesManager.newObject(context, web); var instance = ...


2

It's not possible since the permission Approve Items comes with a dependency to the following permissions: Edit Items View Items View Pages Open Source: User permissions and permission levels in SharePoint 2013


0

You can use Javascript to build this Url. Just reference your new .js file into masterpage. All the code should be run on document ready. $(document).ready(function(){ //your code })) You can build Url and replace the shortcut href attribute value on many ways: var url = SP.Utilities.Utility.getLayoutsPageUrl("new.aspx") + ...


0

You need to change the WebPartId and other Id attributes for the Web Parts when you copy them to other tenancies.. Web Parts and Pages are referenced with Web Part Ids and once you copy the Web Part to other tenancy the reference is updated for the new page and thus no longer exists in the source. So before pasting, copy it into a Notepad file and change ...


2

First you need to add the references to the UserProfile.js file. <script src="/_layouts/15/SP.UserProfiles.js"></script> Now you can add the following code in your App.js file. (function ($) { $(document).ready(function () { // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. ...


0

I am assuming you are populating the grid from a SharePoint list. A gridview includes many list items. So this depends on your requirement whether to give each item a unique date of expiration or to the entire list. If it is at item level, you should have a separate column and put the number of days as a separate column. Then you can perform a comparison ...


0

The question looks a bit confusing as you have not mentioned the way you need to get the Maximum value. But since you have mentioned, you have a grid view, I am assuming you need to show the maximum values in a ASP.net gridview. public SPListItemCollection GetMaxValueList() { using (SPSite objSite = new SPSite(sSiteUrl)) { ...


2

You are using the SharePoint Online and you have only 2 column in the lists. Another question are you site collection admin. If you are Site collection admin then you can see all items as LVTH is different for site collection admin as compare to other users. For Admin by default is 20,000 items while for others are 5000 items. One thing keep in mind, you ...


0

Try this. Create a new page add a rich content webpart and also add a script web part. In the rich text put your HTML and in the script put all your JS code. This seems to work for me with your example. Let us know if it works for you as well.


1

You need to authenticate with your SPO credentials: var creds = new SharePointOnlineCredentials("user@tenant.onmicrosoft.com", password); // Requires SecureString() for password context.Credentials = creds; It needs to be done prior to your first context.ExecuteQuery(). Here is info on the SharePointOnlineCredentials class.


2

You will have to create a feature which will get activated on creation of all my site and write code to delete the default folder programmatically. You will have to make use of feature stapling technique to achieve this. Template Name for my site template is SPSMSITEHOST#0. Follow this blog for feature stapling .


2

For subsites, if you want to delete that folder after the web is provisioned, you can use the SPWebEventReceiver's WebProvisioned event. Here is an Example. The event receiever as per the documentation, wont work when root web of the site collection is created. In this case, you can Staple a feature to the mysite so that when a mysite is created, the ...


0

I solved the problem using moe's approach of getting the hyperlink and using that as a base for the "New Document Library" -button/link. I kept on digging and found out the link that can be used to create a new Document Library with only the basic fields Name & Description. Here it is: ...


2

As a workaround, you could create an empty SharePoint group, and set the permission on the folders toi that group only. It won't be shown to regular users, but owners and administrators would still see tyem. If this solves your problem, take a look at permission settings on items and folders using PowerShell: $folders = $list.Folders foreach ($spFolder in ...


0

@user244034 I am not sure I understand this completely. Is website Y a sub-domain of website X? For ex. X = somewebsite.com, and Y = otherwebsite.somewebsite.com Are both websites bound to the same SSO provider? If so, this may help, but it is a little old: http://www.shailensukul.com/2010/05/adfs-2-sharepoint-2010-signout.html HTH


0

The only way this should be happening is if one website was a sub-domain of another. If so, because of domain cookie sharing, the cookie would be sent to the other website. I've highlighted other concerns when using multiple SharePoint farms where one is a subdomain of another on my blog: ...


3

You totally can do this, using external users in SharePoint Online, and there are no licensing fees involved, and it is totally supported by Microsoft. In your tenant administration site, hightlight a site collection and click the "sharing" icon. Then select the button reading "allow users who accept sharing invitations and sign in as authenticated ...


1

In order to remove a permission level from a group, you must remove the role definition from the assignment pertaining to that group from the Web. Try this: clientContext.Load( clientContext.Web, web => web.SiteGroups.Include( g => g.Title, g => g.Id ), web => web.RoleAssignments.Include( assignment => ...


1

i think SPD2013 is getting confused with your office versions after office update. i presume the possible solution would be not to change the registry. SPD2010 and 2013 on the same machine shouldnt interfear with each other. solution what you would need todo is uninstall SPD2013 and reinstall SPD2013. This will re-associate to the correct version of ...


-1

It is again back to normal. It seems Microsoft has done some correction. @wjervis, Thanks for adding link which shows there are other people also affected.


1

When Internet Explorer communicates with a secure Web site through SSL, Internet Explorer enforces any no-cache request. If the header or headers are present, Internet Explorer does not cache the file. Consequently, Office cannot open the file. Web sites that want to allow this type of operation should remove the no-cache header or headers. ...


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 ...


6

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.



Top 50 recent answers are included