Tag Info

New answers tagged

-1

You can hide list in SPDesigner. Open Site; click on list&library; right click on that list and in properties click "Hide from browser" EDIT This was for list & library For APPS Here is link Learn why apps cannot be hidden from users


0

Yes there is Microsoft.SharePoint API used, using below c# code you can connect to SharePoint root site: SPContext.Current.Site.URL For subsites you can use the below code: SPContext.Current.Web.URL


0

I'm not sure what exactly you are looking for in C#, a site or web in sharepoint can be accesses via these codes given below: SPSite site=new SPSite('Site url"); SPWeb web=site.OpenAllWebs(); string userName = web.CurrentUser.LoginName;


0

I don't know if this can be considered a duplicate question, since the wording is different. Mail enabled lists are not available in SharePoint Online. An alternative is using Site Mailboxes or third-party add-ons.


0

Did you also do the exchange configuration part? Please refer to this excellent howto: http://sharepointgeorge.com/2010/configuring-incoming-email-sharepoint-2010/ It describes SharePoint2010 & Exchange2010 but also applies 100% to SharePoint 2013. If you use Exchange 2013 your way to configure will differ, because it has a new web-based interface.


0

Try to make your index.html as default page in appmanisfest file. Change the startpage url in xml like ~AppWebUrl/Pages/index.html But make sure you need to create index.html page and have to upload it in Pages library.


0

1) Yes, SharePoint-hosted app are possibly be created in on-premise environment. 2) To trust an app is meant for one time at the time of installation of an app. What type of user are trying to visit to your page where clientwebpart is stick into it? Are these user have read permission to visit the page? Try to first publish the app having read permission at ...


0

You don't need to call GetItemById, once you upload the file you will be able to access its List Item. Try this: public static void UploadVideo(SPList list,string fileName,IDictionary<string,object> properties) { SPFile file; using (var fileStream = File.OpenRead(fileName)) { var urlOfFile = ...


1

You have a ListTemplate (List Definition) item defining your custom list, I assume. In the ListTemplate element you can make use of SecurityBits attribute to have some control on this. Please refer to MSDN about the available options for SecurityBits http://msdn.microsoft.com/en-us/library/office/ms462947(v=office.15).aspx I think this is the highest ...


0

It's just a query string, all you would have to do is pass it along to the 2nd page in a link or just have the 2nd page be the default page. Drop this in the first page: <a onclick="javascript:location.href='Page2.aspx' + location.search"> Go to page 1 </a>


0

There is a javascript object called _spPageContextInfo in all sharepoint pages that you can pull using javascript: _spPageContextInfo.webServerRelativeUrl; Use javascript to do that operation for other properties you need that the Javascript context can't give you: http://msdn.microsoft.com/library/jj163201.aspx


0

Okay. After a LOT of trial & error, I finally found out the problem. In my ULS logs, I noticed an error stating it could not find https://portal.repsajdev.com:11978/sites/devcenter. My AAM setup of SharePoint is as follows: I have a host header web app running at 443 (SSL) and port 11978. My named site collection was runnning at ...


0

Make sure you have the PlaceHolderPageTitleInTitleArea in the masterpage and it's not commented. <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">


0

By Default, Administrator is System Account itself. For security reason, you neither can install nor uninstall the app as a System Account. So, create a new user and assign that user a dbowner permission through SQL server management studio to app management database, SharePoint subscription setting database and the current content database where you are ...


0

Is that issue resolved? In my case, i had just login to server with different account and open VS with farm account and then try to deploy it. It deployed successfully! Don't know the proper reason but it's work.


0

Thanks for the answer guys. Didn't know that it was created as a subweb. Solved it with comparing the subwebs url with the hosturl and filtering out the apps that way.


0

The special website to which the app is deployed is called an app web. The website to which the app is installed is called the host web. Although the app web has its own isolated domain, it is in the same site collection as the host web. (One exception to this rule is when the app is installed with tenant scope. In that scenario, the app web is in the site ...


0

I'm not good in jquery, but the general idea is: http://stackoverflow.com/questions/18160342/jquery-how-to-trigger-click-event-on-pressing-enter-key http://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx $(document).ready(function() { $("#txtSearchProdAssign").keyup(function (e) { if (e.which == 13) { var PropertyID = ...


0

Since SharePoint Online/Office 365 relies on Claims authentication use: SharePointOnlineCredentials class to provide credentials to access SharePoint Online resources. specify X-FORMS_BASED_AUTH_ACCEPTED HTTP header The following example demonstrates how to consume SharePoint Search REST using HttpWebRequest class: public static ...


0

The Search results have results which the particular user does not have access to . That is why you receive forbidden error . While using the REST API provides a much more succinct way to retrieve data, there are apparently areas where you’ll need to use the more robust CSOM.


0

Found it ! Three words: Minimum Download Strategy. Disable it, it messes with you page redirect behavior within a SharePoint site (either through code or through site settings)


0

I figured it out myself. I turned out that I was trying to upload the app at the wrong place (Solutions instead of apps).


2

Unfortunately, the REST services are only working for authenticated users. The REST API ("/_api" and "/_vti_bin/client.svc") doesn't work with anonymous access in 2013. SharePoint 2013 APIs for anonymous and/or mobile access SharePoint 2013 and anonymous access problem


0

I have the same error, but it begin appers after re-installing workflow manager on the another server and applying updates. After two days of searching, i've decided to remove proxy and run Register-SPWorkflowService with ScopeName parameter value different from "Sharepoint". See msdn. I recommend to save all your workflows before taking this action.


-1

If you have more than one instance of the same app in a farm and the user is using both at the same time you will overwrite your cookie...


0

Try these 2 options. Use the offline AngularJS script reference rather than referring online. Change the order of reference and add the Angular reference after the SP.js


-1

Never put the domain of the site, eg: ../../_api/web/lists/getbytitle('LIST')/items() // If the script is a list ../_api/web/lists/getbytitle('LIST')/items() // If the script is on a page If you want to change the webApllication, just do this: ../../../WEBApllcation/_api/web/lists/getbytitle('LIST')/items() I have always done this way: $.ajax({ ...


1

SharePoint Search Query APIs is a way to go for accessing list data across site collections. Examples Assume we need to retrieve Task items, then the following query could be used: contentclass:STS_ListItem AND ContentType:Task to return all the task items. JavaScript REST example The following example demonstrates how to utilize Search Query API ...


0

SharePoint Search is the best way to do this in 2013. Here are some walkthroughs: http://www.sharepointnutsandbolts.com/2012/10/using-content-search-web-part-and.html http://channel9.msdn.com/Events/SharePoint-Conference/2014/SPC402 ...


0

You can use the Register-SPAppPrincipal command to register an App using PowerShell. Something like this: $realm = Get-SPAuthenticationRealm -ServiceContext $web.Site; $appIdentifier = $clientID + '@' + $realm; Register-SPAppPrincipal -DisplayName $appName -NameIdentifier $appIdentifier -Site $web Look here for the explanation.


3

I think it would be easier to create a workflow that "Flags a document for removal". Your workflow could: Update a status column to 'pending deletion' Issue a task/email to an approver to approve the deletion If approved, the document would be deleted If not, the status would change to 'rejected' In the default view for the library, you should only ...


2

Since you are looking for a C# example, the below example demonstrates how to retrieve all lists via WebClient (you could also utilize HttpClient or HttpWebRequest for that purpose) Endpoint: /_api/web/lists How to retrieve lists using SharePoint REST public static JToken GetLists(Uri webUri,ICredentials credentials) { using (var client = new ...


1

I upvoted Bunzab's answer, but here is an MSDN example of exactly what you're asking about (in C#): HttpWebRequest endpointRequest = (HttpWebRequest)HttpWebRequest.Create("http://<site url>/_api/web/lists"); endpointRequest.Method = "GET"; endpointRequest.Accept = "application/json;odata=verbose"; // You don't need the following line if you're doing ...


1

After some research I found an answer to a similar question: It seems like you can not disable the email using the singleTask activity. But you can change the assignedEmailBody in the properties window. A link to the task can be created like this: < a href='%TaskSpecial: TaskUrl%'>%Task: Title% < /a> (delete whitespaces after < a>) See ...


3

Yep you can get this from /_api/web/lists. You can try it out in a browser using https://beyondhard.sharepoint.com/_api/web/lists. There are loads of code samples on the internet but best place to start is MSDN


3

What i recommend to get SharePoint training course to understand it. If you want to start App Development but having no experience of the SharePoint Solution development will be fine. As far as you have Development Skills i.e C#, Asp.net and CSS, HTML, Java Script, Soap, XML. As SharePoint App you should understand all basic concept. This picture give you ...


2

I don't think learning traditional solution development will necessarily help you that much with learning the basics of the SharePoint solution hierarchy or necessarily that much with development going forward either. There's certainly no real down side to knowing the traditional solution approaches, but there really is a vast amount of information out there ...


1

It's hard to explain SharePoint in a single answer. SharePoint has a hierarchy of elements. Farm Web Application Site Collection Site List / Library / Site(sub-sites) SharePoint is based on the atomic thing called a Content Type. It is a collection of metadata that describes each and everything. Apps, Full Trust Solutions and Sandboxed Solutions are ...


3

You don't need to go back and learn traditional approach first but yes sharepoint basics should be clear. A very good resource on SP basics could be found here. It contains an extensive list of all the articles that are needed.


1

You need to install Microsoft Office 2010: Primary Interop Assemblies on the machine you're deploying; here is a link to Office 2010 in-case you're using Office 2010-> http://www.microsoft.com/en-us/download/details.aspx?id=3508


1

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


1

App event Recievers and Remote Event Receivers do not work with Sharepoint hosted app. They work with provider hosted app only. For more details on them, check this link.


0

This function work on Internet Explorer for me: function MyPickerUserResolved (topElementId, users) { //prevent users == null if(users.length != 0){ var UserManager = users[0].Description; alert(UserManager); // show message contains on user position 1; } }


2

The specified error could occur due to one of the following reasons: Column with Internal Name Value does not exist in the List Configuration Values Since SP.ListItem.item property expects field Internal Name, please make sure the field with such a name exists in List. List Item value for a field Value could not be loaded implicitly. Try explicitly ...


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


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


2

According to SharePoint 2013 Online App: 403 Response While Downloading Documents from a Document Library article this error occurs when using oAuth App authentication model since Microsoft.SharePoint.Client.File.OpenBinaryDirect method doesn't pass App token The solution is to use Microsoft.SharePoint.Client.File.OpenBinaryStream method instead as ...



Top 50 recent answers are included