Skip to main content

Posts

Showing posts from 2019

Update SPFx projects to 1.9.1

The SharePoint team has released a new version of SPFx (SharePoint Framework Released 1.9.1) The changes alredy mentioned here: General Availability of Library components Tooling move from WebPack 3 to WebPack 4 Graph API and 3rd party API polishing for Microsoft Teams, mobile and desktop clients Isolated web part model supported in Teams Teams Integration Improvements The process of upgraded is mentioned here. Is important to get the last version of Office 365 CLI, execute the next command: npm install -g @pnp/office365-cli@latest Then, go to your project directory. o365 spfx project upgrade --output md > report.md Navigate to the report, and copy the commands are mentioned. Execute the commands are previously copied. Keep calm please!! your project is updating. Look at the file  package.json  on your project to saw what dependencies are updated. Now, the final test…. please let it work!! Come on….. really? so, what happend with our webpa

Sharepoint 2016 Rest Authentication for on prem from a custom web api

Hi, I am attempting to create an api to repost REST requests to sharepoint. I created a test that used o365 authentication (SharePointOnlineCredentials) to post to o365 but now need to adapt it to work on premise (SharePoint 2016). What authentication option would be the easiest to implement for this and how do I go about implementing it? I have tried looking at a lot of the online resources but none of them seem to give a complete picture of what to do often leaving me missing something like the Authorization: Bearer access_token or the Request Digest Value.  I am using CSOM for sharepoint stuff and RestRequest at the moment. Hi , You could create a ‘service’ account so you could authenticate your requests with the ‘service’ account, and get/set SharePoint data by CSOM directly instead of REST API web request. Sample code: using ( var clientContext = new ClientContext ( "http://sp:12001/" )) { clientContext . Credentials = n

Building a Restful API With ASP.NET, Web API, and SQL Server

Here, I am using Visual Studio 2017 and Management Studio. These are the steps we need to follow: Create a Blank Web API project. Select Web API in the template selection window. Create a table and Insert data to the database table. Add a web service. Add an ADO.NET Entity Data Model. Create a new connection with SQL server. Generate entities from Database. Add a Controller. Run the Project. Create a Blank Web API Project Here, I am going to create a new project. To do that, I’ll follow these steps: File → New → Project and select “ASP.NET Web Application (.NET Framework)” project, as can be seen in  Figure 1 . Let’s name our project as “ StudentServices ” and click on “OK.” Figure 1: New ASP.NET Web App Now, you will get a window containing some templates. We can choose from these templates when creating our API. Select Web API in the Template Selection Window Lets select “ Web API ” in the template selection window, which can be seen in  Fig