Overcoming Microsoft Power Automate’s limit while importing more than 256 rows from Microsoft Excel Table

When importing a table from Microsoft Excel within Power Automate, only 256 rows are imported by default even if the “Top Count” is used.

To overcome this, access the context menu for that particular step as show below and set the “Threshold” under “Pagination” settings.

Click the context menu “…” and click on “Settings”.
Type in the “Threshold” value.
Click on “Show advanced options” and type in the “Top Count” which should be less than the “Threshold” value set in the above steps.

Do make sure the “Threshold” value is not set too high or greater than 5000

3D Toon House

The following is a simple Cartoon house in 3D. The original inspiration came from this video.

In addition to the objects from the video, I have added a few things like trees, snowy mountain, a lamppost, and a couple of building lights.

Please note that the trees and grasses are not in scale with the house.

Mobile Version

The following is a mobile version with resolution of 1080px x 1920px.

Desktop Version

I’m still working on the desktop version, will post it once done.

Microsoft Online Services SLA

Sometimes as an architect for Microsoft services, we might be queried by the customer to understand the service level agreements by Microsoft.

Where to find the information?

The following URL provides the document which has SLA details for each online service Microsoft provides.

https://www.microsoftvolumelicensing.com/DocumentSearch.aspx?Mode=3&DocumentTypeId=37

How to search?

The documents are categorised based on language and each document has the SLA defined for all the services in one single document. All we have to do is search based on the language and view/download the document.

Once inside the document, view the table of contents and click on the appropriate service. Don’t forget to view the general terms, which explains a few important things before visiting the appropriate service.

Wallpaper Engine – Video Wallpaper – Smooth Animation

Wallpaper Engine is one of those apps which gives a refreshing look to the PC desktop. I always love one of those looping videos and scenes running on the desktop.

So I came up with the below 3D animation “Smooth Animation” which runs at 4K 60FPS. I hope you like them. The concept is not my idea, it’s based on a tutorial.

Grab the wallpaper here.

React – Call function from HTML Tag with parameter

ReactSometimes we need to call a React function from HTML tags with parameters or arguments and following is the ES6 based way.

Here a button is calling a function updateName with argument newName to set a state which in turns changes the name being displayed.

import React, { Component } from 'react';
import { render } from 'react-dom';
import './style.css';

class App extends Component {
  constructor() {
    super();
    this.state = {
      name: 'Kannan'
    };
  }

  updateName = (newName) =>{
    this.setState({
      name: newName
    })
  }

  render() {
    return (
      <div>
        <p>My Name is {this.state.name}.</p>
        <p>          
          <button onClick={this.updateName.bind(this,'Kannan Balasubramanian')}>Change the name</button><br/>
          <button onClick={()=>this.updateName('Kannan Balasubramanian!')}>Change the name again</button>
        </p>
      </div>
    );
  }
}

render(<App />, document.getElementById('root'));

Do note that using this.updateName.bind() is the recommended way due to performance and efficiency concerns.

You can try the sample output here.

View unpublished pages or draft pages or published pages in SharePoint

Microsoft SharePoint Logo Sometimes it’s necessary to know the status of all the pages before a site is made live. It becomes especially difficult when a team works together on multiple pages and there are number of pages which might have not been published and site owner has to make sure all the pages are published.

We will create a view which can help a site owner to view unpublished pages or draft pages or published pages in SharePoint.

The technique is using the “Version” column to determine the decimal part of the “Version” by subtracting the integer part from the “Version”. So if there is any decimal value in the “Version” then it’s in unpublished or draft state.

Do note that this technique depends upon the “Document Version History” settings being “Create major and minor (draft) versions” for that library.

Document Version History
Document Version History settings

This involves two steps

  1. Add a calculated column which helps to determine the page state using version value.
  2. Create a new view or update an existing view to display the created calculated column.

Create column to know the page status

  1. Create a new column and name it “PageStatus” (We will later rename it to “Page Status”).
  2. Set the type to “Calculated”.
  3. Add the below formula and save the column settings. (Note: The “Version” column will not be available in “Insert Column:” pane so just copy paste the formula.)
=If((Version-INT(Version))<>0,"Draft","Published")
  1. In the library settings, click on the column to edit.
  2. Change the column name to “Page Status” and click “OK” button.
Create a column to show page status.
“Page Status” column creation

Library view to show the page status

We can either create a new view or modify an existing view to show the “Page Status”. For this all that needs to be done is add the “Page Status” column to the view.

Library view to show the “Page Status”

Prevent file download in SharePoint

Microsoft SharePoint Logo

Microsoft SharePoint LogoMicrosoft SharePoint Logo Sometimes in SharePoint there will be a scenario where users shouldn’t download documents, but yet should be able to view the documents. In many of the sites it’s mentioned that this is not possible. But in reality as of March 2020, this is possible.

Generally the permission level “View Only: Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.” is not available by default. But the site collection feature “SharePoint Server Enterprise Site Collection features” when activated will enable this permissions level.

Note that this will work only for Microsoft Office files like Word, Excel, PowerPoint etc. Still users will be able to download other file type. The reason is SharePoint uses handler for viewing and editing Microsoft Office files which can prevent download.

Perform the following steps to enable the permission level

  1. Launch “Site collection features” under “Site Settings”.
  2. Activate “SharePoint Server Enterprise Site Collection features”.
  3. Go to the library’s settings and launch “Permissions for this document library”.
  4. Enable unique permissions.
  5. Then select the specific “SharePoint group” and click “Edit User Permissions”.
  6. Now you should be able to see the permission level ” View Only: Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.”
  7. Check that permission and uncheck all other permissions.
  8. Now all the users within that group will only be able to view the document in web-viewer and will not be able to download.

Before applying permission

The “Download” menu is visible. Clicking “Open” will open the file in web viewer.

After applying permissions

The “Download” menu is not visible. Clicking “Open” will open the file in web viewer.

SharePoint Online theme error – There was an error while attempting to get the themes

Microsoft SharePoint Logo Recently when I was trying to change the theme of a SharePoint online site collection, it threw an error “There was an error while attempting to get the themes”

The error looks like the one shown below (Taken from Microsoft Tech Community)

There was an error while attempting to get the themes

To fix this error, the easiest method as of March 2020 is do the following.

  1. Click on “Classic change the look options” menu item shown in the screenshot above.
  2. Choose one of the theme.
  3. Preview it by clicking on “Try it out”.
  4. Then click on “Yes, keep it”
  5. Again load the home page
  6. Try changing the theme, and the error should be gone.

Thanks to Rob for providing the work around here.