Convert DOCX file inside of SharePoint Library to PDF with Flow and Graph API (no need to use OneDrive)

Hi there. You can easly convert DOCX file inside of SharePoint Library to PDF if you use OneDrive functionality.

In Flow you could use Convert file step from OneDrive which is currently still in Preview but no worries.

You have to copied it to OneDrive, convert to PDF and copied back to SharePoint. Continue reading “Convert DOCX file inside of SharePoint Library to PDF with Flow and Graph API (no need to use OneDrive)”

Advertisements

Run custom JavaScript code when user is selected from PeoplePicker

Let’s imagine that we have SharePoint PeoplePicker and we want to fill some additional fields with user properties from AD or some other systems (HRM, DB etc.) when user is selected. We want to use client side scripting for better user experience and responsiveness without postback. Continue reading “Run custom JavaScript code when user is selected from PeoplePicker”

Change default New Item button inside SharePoint Calendar

Lets take a look how we can change default New Item button from SharePoint Calendar to something special -> we can simply hide it, disable it or replace it with two different buttons with custom URL inside it. In my example here I take last scenario. It works in SharePoint 2016 too.

So in my example I want to have two different new Item buttons because on SharePoint Calendar I have two different content types with different batch of fields:

  • Preko razpisa: in a correlation with content type ID
    0x0102002F433EA5305941B49ADAFE07A743868900126C566CEE7FCE48A0C51A4EE40CB2C9
  • Izven razpisa: in a correlation with content type ID
    0x0102005F244A3297F54F898B6BE2FFB5B11B0500E22EDFE8E3F74045AF07B08DED229B1E

All will be done in JavaScript code so we need to add reference to our custom JS file named PocitniskeKapacitete.js. Continue reading “Change default New Item button inside SharePoint Calendar”

SPFx – Office UI Fabric React – TagPicker – Item Limit

Inside Office UI Fabric React you could find TagPicker. For example, you could use it for country picker. In this scenario you would like to allow single selection mode on it.

In a correlation with office-ui-fabric-react fix #1304 they added property itemLimit on the basePicker and logic to not render the autofill “input” if the itemLimit is defined and equal to internal item count.

But inside last SPFx Yeoman Web Part template there is not yet this fix included in sp-office-ui-fabric-core, so you have to implement it by yourself. In example below I want to share with you my solution for this problem. Continue reading “SPFx – Office UI Fabric React – TagPicker – Item Limit”

SharePoint 2016 WFE stopped working after Office 2016 installed on same server

One day after developing document library file template solution on my SharePoint 2016 dev machine, all SharePoint web application pools started to crash, SharePoint services could not started, SharePoint PowerShell snapins could not be loaded.

Only change in server configuration before that tragic moment was installation of Microsoft Office 2016 package.

All google results currently point to bad application pool account or wrong permission to SQL database. But this would be a little wierd because no changes were made in that way.

After inspection a situation from logs I found out that SharePoint 2016 simply forgets where it’s installed after Microsoft Office 2016 installation. Continue reading “SharePoint 2016 WFE stopped working after Office 2016 installed on same server”

SPFx React Controls – Placeholder Control

Last SPFx React Control for now is Placeholder Control which can be used to show a message that the web part still has to be configured.

We can start with new SPFx project:

yo @microsoft/sharepoint

Select WebPart as client-side component.

After project is created, install next dependency to your project. This is for SPFx React Controls.

npm install @pnp/spfx-controls-react --save --save-exact

Open project within Visual Studio Code. Continue reading “SPFx React Controls – Placeholder Control”

SPFx React Controls – FileTypeIcon Control

Next SPFx React Control is FileTypeIcon Control. With this control you can show a message that the web part still has to be configured.

We can start with new SPFx project:

yo @microsoft/sharepoint

Select WebPart as client-side component.

After project is created, install next dependency to your project. This is for SPFx React Controls.

npm install @pnp/spfx-controls-react --save --save-exact

Open project within Visual Studio Code. Continue reading “SPFx React Controls – FileTypeIcon Control”

SPFx React Controls – ListView Control

My best SPFx React Control is ListView Control. With this control we can get latest native SP ListView within our SPFx WebPart.

We can start with new SPFx project:

yo @microsoft/sharepoint

Select WebPart as client-side component.

After project is created, install next dependency to your project. This is for SPFx React Controls.

npm install @pnp/spfx-controls-react --save --save-exact

Open project within Visual Studio Code. Continue reading “SPFx React Controls – ListView Control”

Powered by WordPress.com.

Up ↑