Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

May 2018

PNP JS Error Fixed – IE 11 Polyfill

Recently I came across the below errors running the PNP JS library with IE11.   The library leverages newer ES6 JavaScript concepts and IE 11 has an older JavaScript runtime engine.

To resolve that, we need to reference more JS libraries as “polyfill” (sometimes called “shim”) to close the gap.

After extra JS files are referenced you can continue using PNP JS normally.  As far as I can tell, there is no negative impact to other browsers by adding these JS polyfills.   Cheers! 

shades_smile

Download JS Polyfill

Code



IE Errors

  • ReferenceError: ‘Promise’ is undefined (sp-pnp-js/dist/pnp.min.js:1:3661)
  • Unhandled rejection ReferenceError: ‘Headers’ is undefined

Screenshots

SNAGHTML4e27a40

References

Measure Performance – SharePoint Online (o365-speed)

PowerShell offers an excellent way to measure command line execution times with “Measure-Command” and Script Block.   With the example below, we run 10 repetitions to connect to SharePoint online and measure the response time in milliseconds.   Cheers!  

shades_smile

Video

Measure Performance – SharePoint Online (o365-speed) from Jeff Jones on Vimeo.

Source Code

Screenshots

image

References

What’s in that patch? May 2018

NOTE – PDF format updated to include both SharePoint 2013 and 2016 notes.

Ever wondered what fixes are inside of a given CU?   Please see attached PDF with full detail. I wanted a new format for easy reading.   Show management and make the business case for why downtime should be taken to apply CUs.  Also posted at https://sharepointupdates.com/

If you found this helpful, please leave a comment.   

shades_smile_thumb_thumb_thumb_thumb[2]

Download

What’s in that patch – May 2018.PDF

VIDEO – SharePoint Saturday – Upload PowerApps picture with MS Flow

During SharePoint Saturday in Chicago, I attended a great session by Mark Vogt (https://www.emtecinc.com/) to LIVE BUILD a working PowerApp.    Attendees were able to follow along by creating the sample application on their own Office 365 tenant.

The demo video below shows the sample application with PowerApps, MS Flow, and how to leverage the Camera control to take mobile pictures and save to a SharePoint Picture Library.  One of the challenges was to convert format from DataURL (PowerApp Camera control) to Binary (SharePoint File).

Cheers!  

shades_smile

Video

Image result for powerapp

Image result for powerapp
Image result for ms flow

Screenshots

image
image

image

MS Flow Code

'SPSat-UploadPicture'.Run("powerapp.jpg", Camera1.Photo)
dataUriToBinary(triggerBody()['Createfile_FileContent'])

References

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲