SharePoint Online Office 365
15 Topicssearching an External user in People picker and starting an invitation
I want to write code to search for non-existing external user email for next step giving me this email as suggestion for sending them an invitation. for example, there is a functionality by Standard SharePoint (the picture below) when you want to share the SharePoint site with some non- existing external user (OOB UI)766Views0likes1CommentTo get values from multiline text to checkbox
Hello Everyone, I have an Problem to get the Checkbox value in edit mode to reading value to checkbox I will Explain the scenario. i have created the the web part in that web part we get the checkbox value from different list dynamically when i checked the check box value to added in SharePoint list in multi line of text comma separately added successfully. now, I want to added value of multi line of text value came into the check boxes in checked form but issue i s facing in that to get check box value hoe can i get the multi line of text value in checkbox to get the value from SharePoint multi line text value how can i get the value in SharePoint list491Views0likes0CommentsModifying Hub navigation\Mega Menu Font Size
Hi, We have a hub site as a main intranet with several associated sites. The ask from customers is to make the hub navigation bold or larger font. Is there a way to modify font size for hub navigation? Anyway usingApplication Customizers? We do not want to create our own control as it should be manged through the out-of-the box navigation settings. Any quick modification that we can do?5.4KViews1like2CommentsEnable users edit permission only for items added by him in a list
Hi Folks, I have the below requirement in SharePoint Online and On-prem versions: A custom list is to be maintained where users can edit only items that were created by him/her. Enabling unique permission for each item is not an option as the list is expected to have large number of item. Also, the user should be able to add new items. If a user tries to edit items created by other user, he/she should get an error message informing that this action is not allowed. Could you please suggest if this is possible by using any dev options in SharePoint and/or Power Platform?Solved1.1KViews0likes1CommentAuthentication Issue with Item Deleting in Remote event receiver
When Item Deleting event is triggered in remote event receiver is throwing an authentication error fromgetapponlyaccesstoken while fetching the access token and SharePoint context to access the current item metadata.758Views0likes0CommentsSharePoint Site Templates
If you want to create a new SharePoint site using theClient Object Model, you can use the classWebCreationInformationto specify the site’s properties and then create it by adding the site to the Webs. However, it is required to pass a uniqueTemplateTypeas a parameter. This parameter is a string and must match with one of the names of the available templates. To get the list of all available templates, you can run the commandGet-SpoWebTemplatein PowerShell. The table below gives an overview of all available templates. As the libraries contained in the packageMicrosoft.SharePointOnline.CSOMdon’t provide any enumerator for the available templates. I have created the following snippet. using System.Runtime.Serialization; namespace SharePoint.Models { public enum WebTemplate { [EnumMember(Value = "GLOBAL#0")] GlobalTemplate, [EnumMember(Value = "STS#0")] TeamSite, [EnumMember(Value = "STS#1")] BlankSite, [EnumMember(Value = "STS#2")] DocumentWorkspace, [EnumMember(Value = "MPS#0")] BasicMeetingWorkspace, [EnumMember(Value = "MPS#1")] BlankMeetingWorkspace, [EnumMember(Value = "MPS#2")] DecisionMeetingWorkspace, [EnumMember(Value = "MPS#3")] SocialMeetingWorkspace, [EnumMember(Value = "MPS#4")] MultipageMeetingWorkspace, [EnumMember(Value = "CENTRALADMIN#0")] CentralAdminSite, [EnumMember(Value = "WIKI#0")] WikiSite, [EnumMember(Value = "BLOG#0")] Blog, [EnumMember(Value = "SGS#0")] GroupWorkSite, [EnumMember(Value = "TENANTADMIN#0")] TenantAdminSite, [EnumMember(Value = "ACCSRV#0")] AccessServicesSite, [EnumMember(Value = "ACCSRV#1")] AssetsWebDatabase, [EnumMember(Value = "ACCSRV#3")] CharitableContributionsWebDatabase, [EnumMember(Value = "ACCSRV#4")] ContactsWebDatabase, [EnumMember(Value = "ACCSRV#6")] IssuesWebDatabase, [EnumMember(Value = "ACCSRV#5")] ProjectsWebDatabase, [EnumMember(Value = "BDR#0")] DocumentCenter, [EnumMember(Value = "EXPRESS#0")] ExpressTeamSite, [EnumMember(Value = "OFFILE#1")] RecordsCenter, [EnumMember(Value = "EHS#0")] ExpressHostedSite, [EnumMember(Value = "OSRV#0")] SharedServicesAdministrationSite, [EnumMember(Value = "PowerPointBroadcast#0")] PowerPointBroadcastSite, [EnumMember(Value = "PPSMASite#0")] BusinessIntelligenceCenter, [EnumMember(Value = "SPS#0")] SharePointPortalServerSite, [EnumMember(Value = "SPSPERS#0")] SharePointPortalServerPersonalSpace, [EnumMember(Value = "SPSMSITE#0")] PersonalizationSite, [EnumMember(Value = "SPSTOC#0")] ContentsAreaTemplate, [EnumMember(Value = "SPSTOPIC#0")] TopicAreatemplate, [EnumMember(Value = "SPSNEWS#0")] NewsSite, [EnumMember(Value = "CMSPUBLISHING#0")] PublishingSite, [EnumMember(Value = "BLANKINTERNET#0")] PublishingSiteBlank, [EnumMember(Value = "BLANKINTERNET#1")] PressReleasesSite, [EnumMember(Value = "BLANKINTERNET#2")] PublishingSiteWithWorkflow, [EnumMember(Value = "SPSNHOME#0")] NewsHomeSite, [EnumMember(Value = "SPSSITES#0")] SiteDirectory, [EnumMember(Value = "SPSCOMMU#0")] CommunityAreaTemplate, [EnumMember(Value = "SPSREPORTCENTER#0")] ReportCenter, [EnumMember(Value = "SPSPORTAL#0")] CollaborationPortal, [EnumMember(Value = "SRCHCEN#0")] EnterpriseSearchCenter, [EnumMember(Value = "PROFILES#0")] Profiles, [EnumMember(Value = "BLANKINTERNETCONTAINER#0")] PublishingPortal, [EnumMember(Value = "SPSMSITEHOST#0")] MySiteHost, [EnumMember(Value = "ENTERWIKI#0")] EnterpriseWiki, [EnumMember(Value = "SRCHCENTERLITE#0")] BasicSearchCenter, [EnumMember(Value = "SRCHCENTERFAST#0")] FastSearchCenter, [EnumMember(Value = "TenantAdminSpo#0")] SharePointOnlineTenantAdmin, [EnumMember(Value = "visprus#0")] VisioProcessRepository, } } To access theEnumMemberattribute, we have to use the following Enum extension method. using System; using System.Linq; using System.Runtime.Serialization; using System.Reflection; using System.ComponentModel; namespace SharePoint.Extensions { public static class EnumExtensions { public static string GetMemberAttributeValue(this Enum source) { Type enumType = source.GetType(); if (!enumType.IsEnum) { throw new ArgumentException("source must be an enumerated type"); } var memInfo = enumType.GetMember(source.ToString()); var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType<EnumMemberAttribute>().FirstOrDefault(); if (attr != null) { return attr.Value; } return null; } } } Now, to create a new website on SharePoint would be enough using the following code: WebCreationInformation webCreationInfo = new WebCreationInformation { Title = "Title", Url = "url", WebTemplate = WebTemplate.ExpressTeamSite.GetMemberAttributeValue(), Description = "Description", UseSamePermissionsAsParentSite = true };ctx.Site.RootWeb.Webs.Add(webCreationInfo); ctx.ExecuteQuery();2.5KViews0likes0Commentsupload a docx file to the SharePoint library
Is there a way to upload a docx file to the SharePoint library so that no changes are made to it and the integrity of the electronic digital signature is not compromised (changes are made by adding custom properties)? It will be a plus if you tell me how to achieve this with CSOM1.3KViews0likes1CommentCustom search to search pdf files in certain librarys
Hi! I have set up document system with three different document librarys. Togheter they hold about 32000 pdf documents. I have implement the custom search module on my site and created a custom search resultspage. I have redirected the search to resultspage and defined the document librarys. I have also tried to define the SharePoint result source and search terms but with no luck. I have tried many different combinations like path:https://sharepoint document url like below with no luck. The results find my document librarys, but doesnt search in them for the files. It only shows a link to the document library instead of the files. Is ther something i missing or isnt this possbile to achieve? Do I have to create a Scope? Crawl? I really dont understand those features. Please help! 🙂 {SearchBoxQuery}( (Path:http://sharepoint/sites/demo/dev/DocLib1 (FileExtension:pdf)) OR (Path:http://sharepoint/sites/demo/dev/DocLib2 (FileExtension:pdf)) OR (Path:http://sharepoint/sites/demo/dev/DocLib3(FileExtension:pdf)) )1.1KViews0likes0CommentsAdding multiple AND conditions in validation setting in SharePoint Online new form controls showing
I have some text, date, dropdown fields on new form. there I have added formulas with multiple IF AND conditions. when I am filling first two required field and clicking on save button it shown error message which I have added in validation settings but after that when I clicks on date field which is next to three mandatory fields then it auto focus on second required field. I don't want that autofocus or why it is autofocusing on that field? Thanks in advance.!!982Views0likes0CommentsIs there any way to download recycle bins files and folder in SharePoint online using C# CSOM?
Hello, The main idea is that we wantto either download recycle bin files and folders using c# csom or restore to other library instead of original one. I already did research on this, nothing I found related to this. So if you know the concreate solution then please suggest. Thanks. BR/ Sid1.1KViews0likes0Comments