Some thoughts on programming stuff

Month: September 2019

Notifications for multiple emails in Microsoft Forms

Microsoft Forms is a powerful tool for those who want to create surveys and quizzes, so you can collect data from other people. But if you want to select multiple emails but if you want to send notifications for multiple emails in Microsoft Forms, the task is not that simple since the Forms author will receive them alone.

That’s why I’ve created this post to help you! Empowered by Microsoft Power Automate functionalities, you can easily route those notifications without problems.

Continue reading

Storage Metrics in SharePoint

If you are managing a SharePoint site and need to find out how much space is it using, this post will help on finding the Storage Metrics in SharePoint. You can access this information easily, but it’s required to have SharePoint Site Collection admin rights.

The SharePoint Site Collection admin rights is able to do a lot of things, he is a real Super User and is more powerful than the Full Control permission level. You can access things like the Storage Quota and manage Site Collection Features that are more advanced and complex.

The task this post teaches how to do is very common administrative task for people who support SharePoint solutions and need to control if a subsite or library is getting bigger and if it needs to a new architecture to allocate and distribute the resources in a better way.

Continue reading

Export Workflow History to CSV in SharePoint

Sometimes you may need to export Workflow History to CSV in SharePoint, just because most of the history data is not available anymore in the Workflow History page of a document or item, thanks to the SharePoint Workflow Auto Cleanup that purges the data for performance purposes.

But what happens if someone is trying to make an audit review and cannot find the history for a specific document? Well… you can use this script!

Export Workflow History to CSV in SharePoint - Audit and reporting of document history
Audit and reporting of document history
Pxhere
Continue reading

Update SEO Properties in SharePoint programmatically

Last month, I had to make a bulk update of SEO properties from Pages in one of our customers website that runs SharePoint 2016. Basically we needed to update every property that was empty based on an Excel spreadsheet. This file defined the Keywords and Meta Descriptions for each area of the site. In this post I’m going cover how to update SEO Properties in SharePoint programmatically!

Continue reading

Get current page layout with JavaScript in SharePoint

Today I’m bringing an useful code snippet to get current page layout with JavaScript in SharePoint. It helped me on finding out which Page Layout I was running my JavaScript code. Here you can find a pure vanilla JavaScript example that builds the URL for the SharePoint REST API. First it requests only the PublishingPageLayout field of the current page. Then it logs the information in the console, but I suggest you to just do that for testing purposes.

Page layouts are used in SharePoint to customize and define where the content will be displayed in your Web Page. Essentially, it’s a template for your Web Page that helps you on building a better experience. It benefits those who access your content and to help the content creators when they need to create a new page for you Site or Intranet.

Page layouts must be attached to a Content Type, so you can reference site columns and fields inside the template to let SharePoint save and present the data in the page library just like any document library you had been working with. Also it let’s you define different ways to present the fields, for example the Title or the Page Content, when in the Display Mode and Edit Mode.

This script can be particularly useful when you need to accomplish some specific business logic that requires to run a JavaScript function in an specific layout and you can’t or don’t want to make changes to the page layouts directly. I say that because, due the fact that Page Layouts are just like templates, you can add Script tags directly to the Page Layouts and call only the JavaScript files you /want when a user selects that Page Layout during the content creation process.

Image result for sharepoint page layout
A bunch of Page Layouts – dotnetcurry
Continue reading

© 2024 wiliammbr's blog

Theme by Anders NorenUp ↑