How to connect SPO to AWS with AAD auth (checklist)

Not that long ago I’ve posted article about connecting from sharepoint online to azure web service using AAD authentication. I’ve checked it several times and every time I had a feeling “it’s too hard to easily follow it…”. And that’s how idea of checlist has born!
Following checklist will help you if you have any problems due to connecting from Sharepoint Online to Azure web service using Azure AD authentication.

If you’ll need life example check my code implementation here .

In this blog post I described a context for below checklist – read it if you fall into problems with CORS like:

XMLHttpRequest cannot load https://<App_URL>. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://<tenant_name>.sharepoint.com‘ is therefore not allowed access.  Continue reading “How to connect SPO to AWS with AAD auth (checklist)”

Clean inline html styling

Problem

I need to clean inline html styling from a text file

Solution

Just use below powershell line:

Get-Content .\someTextFile.txt | Foreach-Object {$_ -replace 'style=".*?"',""} >>newTextFile.txt

Explanation

In my case I’m making all kind of notes (short one, long ones, even blog posts drafts) in Microsoft Onenote (I will write some post about how to get all bests from this awesome tool). Since Onenote allows for simple formatting (headings, bolding, cursive etc) I very often use it’s built-in styling. Continue reading “Clean inline html styling”

Sharepoint Online to Azure Web Service authenticated with AAD

Problem

You want to communicate from Sharepoint Online with your Azure Web Application authenticated with AAD using javascript.

You configured AAD, run some AJAX call to service and received:
XMLHttpRequest cannot load https://<App_URL>. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://<tenant_name>.sharepoint.com‘ is therefore not allowed access.
Continue reading “Sharepoint Online to Azure Web Service authenticated with AAD”

Developing Sharepoint without Sharepoint installed

Problem

There are times when you want to develop Sharepoint solutions without having Sharepoint environment installed – i.e. when you want to build solution for Sharepoint Online. So you open Visual Studio, pick Sharepoint solution template, hit ‘ok’ and…

 

Cannot connect to the targeted site. This error can occur if the specified site is not hosted on the local system. SharePoint solutions work only with locally-installed versions of Sharepoint Foundation or SharePoint Server. Remote development is supported only for SharePoint Add-ins

or
The required version of SharePoint Foundation or SharePoint Server is not installed on this system. The target version of the SharePoint project is 15.0

 

You may think: “Why would I even need SP environment for that? I just want to build a solution for SP Online, not SP On-prem”. And I must agree with you. Even though you can develop Sharepoint Apps (Add-ins) having only Office Development Tools installed (without whole SP server) there are many scenarios where SP Apps are not an option.  So what to do in such situation?

Solution

There are 2 solutions: Continue reading “Developing Sharepoint without Sharepoint installed”

Sharepoint solutions vs SPFx vs Sharepoint Apps

  • “I’m so confused with all this SharePoint Framework, apps, solutions…I just wanted to develop for Sharepoint!”
  • “What can I use SharePoint Framework (SPFx) for? Can I use it for branding?”
  • “When should I pick custom SharePoint solution over SharePoint Framework or SharePoint App?
  • “How can I make elevated privilages in sharepoint hosted app?”

During my years of experience in SharePoint development I’ve seen those questions many times. They were asked by IT devs of my clients, by users of tech blogs/forums, my colleagues and also by myself. Since you’re here I’m assuming assume that you are confused a little bit too but don’t worry. We know what you feel. That’s why we’ve created this post.

Continue reading “Sharepoint solutions vs SPFx vs Sharepoint Apps”

Hello world

Off we go!

It seems that finally It’s happening. I’m starting with my blog. I thought about that from a long time and today I’m ready to do it.

What can you find here? Mainly IT stuff that is related to my work and hobby.

Professionally I’m Microsoft Sharepoint Developer, Consultant and Architect since 2013. My notes, thoughts and experience on Sharepoint Online, Sharepoint On-prem, Office 365 will be a big part of this note.

Privately I’m a fun of productivity and everything that allows us to achieve our goals faster and easier. That’s why I’ve put my hands on Microsoft productivity solutions (MS Flows, MS Teams etc) as well as on IoT (RPi, Arduino) projects. I definitely want to share my experience in that matter too.

I’m sure you will find some great and helpful part of knowledge for you.

Enjoy!