SharePoint, Office 365, Azure, and Front end JS geek. – Chicago IL
SharePoint, Office 365, Azure, and Front end JS geek. – Chicago IL

Uncategorized

VIDEO – Populate Word DOCX with PowerShell

Recently I found a way to dynamically update Microsoft Word text placeholders with PowerShell script.  Because DOCX files are ZIP archive we can extract to a TEMP folder to update the internal XML document text.   From there, bundling to a new ZIP archive and renaming DOCX enable us to deliver the final DOCX version to users.

Below is a demo with full source code.  Cheers! 

shades_smile_thumb

Video

Screenshot

image_thumb[4]

Source Code

What’s in that patch? Sep 2017

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 http://sharepointupdates.com/

If you found this helpful, please leave a comment.   

shades_smile_thumb_thumb_thumb_thumb[2]

Download

What’s in that patch – Sep 2017.PDF

Angular2 – Disable CORS security for smooth Chrome debug

Recently while debugging an application I needed to design REST and JSON api calls across DNS domains.   However, the client browser Chrome blocked those HTTP transactions due to CORS.    While essential to production security, this can be a roadblock to developer productivity locally.   The below steps show how to launch Chrome browser with CORS security temporarily disabled.   This can help remove complexity and security warnings to focus first on application features.

Once stable, we can add CORS support to the endpoint APIs (HTTP header Access-Control-Allow-Origin:*)  and calling JS application.

Install Steps

  1. Create empty folder C:\CHROME\
  2. Edit PowerShell profile script PS1  (notepad $profile)
  3. Add function chromecors()
  4. From CMD run “ng serve” to open local Angular hosting
  5. From CMD run “chromecors” to launch Chrome with CORS disable
  6. Enjoy debug and functional application testing without security warnings
  7. Add CORS support to endpoint APIs as needed.  https://enable-cors.org/ has great advice on configuration.

Code

Screenshot

image
image
image
image
image

FIXED – The version of Microsoft SharePoint Foundation running on the server is more recent than…

While working with SharePoint Designer and opening sites in Office 365 I came across the below cryptic error message.   The root cause is lack of permission.  Granting SCA fixed.

Cheers!

shades_smile

Error

After opening URL SharePoint Designer client displays “The version of Microsoft SharePoint Foundation running on the server is more recent than the version of SharePoint you are using. You need a more recent version of SharePoint Designer.”

image

Resolution

While unclear, the above is actually a permission denied error.   Grant the user account more permissions, such as Site Collection Admin (SCA), and you will connect OK.


© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲