Posts

Showing posts from 2021

Quick SPFx Dev Environment Setup Guide

This is just a quick post to document my current setup steps Install NVM for windows Install the proper version(s) of node using nvm install VersionNum (see https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment for currently supported versions) Address any critical vulnerabilities Install yeoman and spfx genereator npm i -g yo npm i -g @microsoft/generator-sharepoint Install additional utils Install gulp npm i -g gulp Install Git Install VS COde Test yo @microsoft/sharepoint

Show Document LIbrary from another site collection on a Modern SharePoint Page

Here's a pretty good workaround for the lack of a cross-Site Collection Document library and not having to go to a fancy search interface or develop or buy an SPFx component.   Keep in mind that the user who's visiting the site where you're surfacing the library will need at least read access to the library. Go to the document library you'd like to surface, then go to the folder, etc. with the information you'd like to share. Copy the URL from the address bar. On the Modern Page/site where you'd like to show that document library/folder, add an Embed Web Part Add the following to your embed web part: <iframe src="URLYOUCOPIEDINSTEP1" width="100%" height="600"></iframe> This experience allows people to navigate the library/folders without leaving the site they are on, but the docs open in their own tab.

Power Automate: Using the SharePoint Update Item action

Power Automate's Update Item action for SharePoint has an issue with choice fields in that when you add that action, all fields are blank EXCEPT Choice fields.  Choice fields will instead default to the top item in the choice list.   This is really bad because if you don't clear them the flow will overwrite any existing values with the top items. Currently, the only way I can see to avoid this issue is to manually clear each field, so here are the steps: Choose the dropdown item on the choice field. Choose "Enter Custom Value" Immediate go back to the field and click the 'X' in the field and it will be cleared Repeat for each choice field that you don't want to change. I think the above is just a hack/workaround to a problem with how this action is configured by default so I put this into the uservoice/suggestion box for PowerAutomate.    Upvote this if you think it's worth it: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/SharePoint-Update-