<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on M365 - TL;DR</title><link>https://blog.dan-toft.dk/posts/</link><description>Recent content in Posts on M365 - TL;DR</description><language>en</language><lastBuildDate>Mon, 06 Jul 2026 08:19:00 +0000</lastBuildDate><atom:link href="https://blog.dan-toft.dk/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Technical debt is a lot like gardening</title><link>https://blog.dan-toft.dk/2026/04/technical-debt-lot-gardening/</link><pubDate>Tue, 28 Apr 2026 13:19:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2026/04/technical-debt-lot-gardening/</guid><description>Technical debt, much like weeds in a garden, only gets harder to manage the longer you ignore it - here’s how consultants and clients can build the shared responsibility and routine maintenance needed to keep it under control.</description><enclosure url="https://blog.dan-toft.dk/2026/04/technical-debt-lot-gardening/1.png" type="image/png" length="0"/><content:encoded>&lt;p&gt;In the world of software development, technical debt is a common challenge that teams face.&lt;/p&gt;
&lt;p&gt;Technical debt referes to the &amp;quot;cost&amp;quot; of rushing things, and taking shortcuts. Especially when we&amp;#39;re trying to rush things out the door, either because the deadline is tighter than expected, or because change management wasn&amp;#39;t properly handled, and suddenly the budget is blown, and you&amp;#39;re only halfway through the project, and you have to make a choice: do you cut corners, and take on technical debt, or do you ask for more time and money to do it right?&lt;/p&gt;
&lt;h2&gt;The analogy of gardening&lt;/h2&gt;
&lt;p&gt;As I&amp;#39;ve been spending a lot of time in my garden lately, for a variety of reasons, I realized that technical debt, is just like gardening, there are weeds in my lawn, the longer I procrastinate taking care of them, the more they grow, and spread, and the harder it becomes to get rid of them.&lt;/p&gt;
&lt;p&gt;I could spray them with pesticides, but that&amp;#39;s another shortcuts, that&amp;#39;s not sustainable, I&amp;#39;m now contaminating the soil, and the water, and the air. however but pulling them out by hand, and making sure I get the roots, that&amp;#39;s a lot of work, so I have to make a choice: do I take the easy way out, and spray them with pesticides, or do I put in the time and manual labor.&lt;/p&gt;
&lt;p&gt;What I should&amp;#39;ve done is to have a regular maintenance schedule, where I check for weeds, maybe once a week, and pull them out before they have a chance to grow and spread. &lt;/p&gt;
&lt;p&gt;Technical debt is exactly the same if I had a regular code review process, and a culture of quality, I could catch technical debt early on, and address it before it becomes a bigger problem.&lt;/p&gt;
&lt;h2&gt;How to manage technical debt with a gardening mindset&lt;/h2&gt;
&lt;p&gt;So, how do we manage technical debt with a gardening mindset?&lt;/p&gt;
&lt;p&gt;My perspective is bias, as I&amp;#39;ve spent my entire career in the consulting world, and that&amp;#39;s a place where technical debt tends to be more prevalent, because of the nature of the work, and the way projects are structured,they have a start and and end date, where as if you had your own in-house team, you would have more of a continuous development process, and you would be able to address technical debt as it comes up, rather than letting it build up over time.&lt;/p&gt;
&lt;p&gt;But even in the consulting world, there are ways to manage technical debt with a gardening mindset, and these are my takes on how you should consider approaching technical debt, and how to manage it effectively:&lt;/p&gt;
&lt;p&gt;It&amp;#39;s all about responsibility and accountablilty lots of consultants will say things like &amp;quot;oh, they didn&amp;#39;t specifically ask for that&amp;quot;, or &amp;quot;that&amp;#39;s not in the scope of work&amp;quot;, but at the end of the day, if you know that something is going to cause technical debt, and you&amp;#39;re not addressing it, then you&amp;#39;re just as responsible for it as the client is.&lt;/p&gt;
&lt;h3&gt;As a consultant&lt;/h3&gt;
&lt;p&gt;So, if you see a weed in your lawn, or your customers lawn and you know that it&amp;#39;s going to spread, and cause more problems down the line, you have a responsibility to pull it out, even if it&amp;#39;s not technically in your job description.&lt;/p&gt;
&lt;p&gt;And if you&amp;#39;re not going to pull it out, then you have a responsibility to at least warn the client about it, and make sure they understand the consequences of not addressing it.&lt;/p&gt;
&lt;h3&gt;As a client&lt;/h3&gt;
&lt;p&gt;Make sure you have a frank and honest conversation with your consultants about technical debt, and make sure they understand that you expect them to take responsibility for it, and to address it as it comes up, rather than letting it build up over time.&lt;/p&gt;
&lt;p&gt;And make sure they feel like they&amp;#39;re part of the team, and that they&amp;#39;re invested in the success of the project, rather than just being a vendor that&amp;#39;s there to do a job, and then leave.&lt;/p&gt;
&lt;p&gt;If they&amp;#39;re not willing to take that responsibility, then maybe you need to reconsider whether they&amp;#39;re the right partner for you.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Technical debt when working with consultants is hard, because you need to have a culture of quality, and a mindset of continuous improvement, and that&amp;#39;s not always easy to achieve when you&amp;#39;re working with an external partner, that&amp;#39;s focused on deliverables, timelines, and budgets.&lt;/p&gt;
&lt;p&gt;Make sure you find a partner that&amp;#39;s invested in the success of not just the project, but also in the long-term health of your organization, and your long term success, and that they understand that technical debt is a real problem, and that they&amp;#39;re willing to take responsibility for it, and address it as it comes up, rather than letting it build up over time.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Technical debt is a lot like gardening, if you let it build up, it becomes harder and harder to manage, and it can cause a lot of problems down the line.&lt;/p&gt;
&lt;p&gt;Make sure you keep on top of it, and make sure everyone feels responsible, and accountable, and that you have a culture of quality, and a mindset of continuous improvement, and that you&amp;#39;re working with partners that are invested in your long-term success, and that understand the importance of managing technical debt effectively.&lt;/p&gt;
</content:encoded></item>
<item><title>How your lack of training is making your Copilot adventure more expensive than not investing in AI</title><link>https://blog.dan-toft.dk/2025/12/lack-training-making-copilot-adventure-expensive-investing-ai/</link><pubDate>Fri, 19 Dec 2025 19:29:55 +0000</pubDate><guid>https://blog.dan-toft.dk/2025/12/lack-training-making-copilot-adventure-expensive-investing-ai/</guid><description>An opinion piece on why AI without proper training, guardrails and a human in the loop tends to increase quantity at the expense of quality - and why adoption, not technology, is the real answer.</description><enclosure url="https://blog.dan-toft.dk/2025/12/lack-training-making-copilot-adventure-expensive-investing-ai/1.jpeg" type="image/jpeg" length="0"/><content:encoded>&lt;div class=&quot;callout&quot;&gt;

&lt;p&gt;This is not my typical type of post, usually my posts are focused on cold hard facts, and developer technology, but a post that I felt I needed to write nonetheless, consider it more of an opinion piece.&lt;/p&gt;
&lt;/div&gt; 

&lt;p&gt;In my day-to-day work I help a lot of clients implement Microsoft 365, and get a grasp of their Information Architecture, both using just OOTB (Out Of The Box) SharePoint and Teams, but also loads and loads of custom extensibility, all with the purpose of doing more, in less time and I&amp;#39;ve spent almost a decade doing so, but these past few years, something has changed in the world of IA.&lt;/p&gt;
&lt;h2&gt;The age of AI&lt;/h2&gt;
&lt;p&gt;Now I&amp;#39;m sure none of you&amp;#39;ve missed it, but, back in November 2022 OpenAI launched ChatGPT, a revolution in the way we thought about computers, suddenly I could chat with my computer, and get very detailed, long, almost human-like responses, the potential was VERY promising.&lt;/p&gt;
&lt;p&gt;And it didn&amp;#39;t take long for big tech to catch on, Google with Gemini, Microsoft with Copilot, Meta with Llama and so on, the promise was big! - AI with access to all the knowledge in your organization, what could go wrong?&lt;/p&gt;
&lt;p&gt;Fast forward almost three years, it&amp;#39;s now late 2025, and everyone has access to some sort of AI, and we&amp;#39;ve all learned to spot AI generated text, if not by the sometimes a bit odd formatting, em dashes, or emoji usage, then by the just waaay too long/detailed answers, or the fact that your insurance advisor who you&amp;#39;re chatting with, and that is definitely a human being, happily provides you a pancake recipe if you ask for it.&lt;/p&gt;
&lt;h2&gt;So have we become more efficient?&lt;/h2&gt;
&lt;p&gt;Well, that&amp;#39;s a tough one, I know loads of people who feel more efficient, and as a matter of fact, I would dare to say, that Github Copilot, has probably made me 10-20% more efficient, and I know I&amp;#39;m not alone.&lt;/p&gt;
&lt;p&gt;But perceived efficiency does not mean actual efficiency, if you&amp;#39;re shipping things off faster than before, but your colleagues are now spending more time having to correct your work, have we really become more efficient, or have we just gotten faster at producing more?&lt;/p&gt;
&lt;h2&gt;The dark side of AI&lt;/h2&gt;
&lt;p&gt;While AI helps us produce more, faster, something that I see more and more, is that people confuse &lt;em&gt;more with better&lt;/em&gt;, combine that with a common misconception that an AI cannot &amp;quot;lie&amp;quot; about the information it&amp;#39;s grounded in, is costing organizations around the world tons of money!&lt;/p&gt;
&lt;p&gt;The problem isn&amp;#39;t the AI, and it&amp;#39;s not the people, it&amp;#39;s a lack of understanding of how the technology works. &lt;/p&gt;
&lt;p&gt;And I&amp;#39;m not saying that &amp;quot;Henry from accounting&amp;quot; or &amp;quot;Simone from engineering&amp;quot; needs to understand AI, and what an orchestrator is, or the difference between grounding, and training a model is, HECK, they don&amp;#39;t even need to know what an LLM is.&lt;/p&gt;
&lt;p&gt;But they do need to understand that the chatbot is not human, and is not actually capable of reasoning, even if you press the reasoning button, YES it does provide a lot of value, if, &lt;strong&gt;AND ONLY IF,&lt;/strong&gt; you make sure to review the outputs, and actually view them through a critical lens, understand what it says, don&amp;#39;t just copy-paste it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve seen an uptick in obviously AI generated things that are costing organizations a ton of money, from project requirements that include obscure things, to sales proposals that don&amp;#39;t match what your client is requesting, I&amp;#39;ve seen requirements ranging from &amp;quot;should work, and be translated to any language&amp;quot; for an organization of just a few Danish folks, to &amp;quot;Any extensibility in SharePoint must be built using PCF&amp;quot; (Power Apps component framework) - these are the kind of things that will throw people on the other end off, now I need to call you, and tell you that what you&amp;#39;re requesting isn&amp;#39;t feasible.&lt;/p&gt;
&lt;p&gt;Heck I&amp;#39;ve even had clients send me a bit of code, telling me to &amp;quot;run this against our environment&amp;quot; - however upon inspection, said code would slowly delete every file in their tenant.&lt;/p&gt;
&lt;p&gt;Now most of the above examples are code related, but the same thing goes for your organization&amp;#39;s communication, I recently got added to a Project Plan to help out with a marketing initiative, where the first task was to build out a SWOT report, and the second step was to identify the global target audience ... this was for a small local shop, this was just because someone had found the Project Manager agent and thought &amp;quot;huh, this looks professional&amp;quot; and then forwarded a list of 100+ tasks to everyone in the team, that&amp;#39;s now wasting everyone&amp;#39;s time.&lt;/p&gt;
&lt;p&gt;In this case, my time is billable, which becomes an expense because the employee didn&amp;#39;t bother reviewing what the agent had provided before just blindly forwarding it.&lt;/p&gt;
&lt;p&gt;And that&amp;#39;s my biggest point in all of this &lt;strong&gt;AI Without human in the loop, will cost you, not just money, but also business&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;So what should we do?&lt;/h2&gt;
&lt;p&gt;ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION, ADOPTION.&lt;/p&gt;
&lt;p&gt;Adoption is the only solution, you really need to make sure that your end users understand the importance of being critical of what an AI outputs, and learn to not blame the AI, an AI is a text generator, it cannot be faulted, only the human that forwards its outputs can be blamed.&lt;/p&gt;
&lt;p&gt;The excuse &amp;quot;But Copilot told me&amp;quot; is not an excuse for anything short of laziness - and if you&amp;#39;re technical, it&amp;#39;s not an excuse at all.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;AI is just math and text - we all need to understand that human in the loop and agentification is where the actual value of AI is, without it, you just have a random text generator.&lt;/p&gt;
&lt;p&gt;In essence, AI used without any guardrails, or consideration just improves the quantity of work you do, not the quality, I&amp;#39;m not saying AI can&amp;#39;t help us produce better quality, but to get it to do so takes work!&lt;/p&gt;
&lt;p&gt;My key takeaways are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;AI does not necessarily improve the quality, but rather the quantity.&lt;/li&gt;
&lt;li&gt;&amp;quot;The old saying &amp;quot;Garbage in, garbage out&amp;quot; still applies.&lt;/li&gt;
&lt;li&gt;AI with the proper training, and understanding can help improve quality, but it takes work.&lt;/li&gt;
&lt;li&gt;AI without propper training, grounding/agentification and human in the loop will just cost you money.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;AI Can and will revolutionize and improve the way we work, but right now it can be more of a productivity drain than a productivity gain without the right guardrails, setup and user education.&lt;/strong&gt;&lt;/p&gt;
</content:encoded></item>
<item><title>Integrating SharePoint Forms and Lists</title><link>https://blog.dan-toft.dk/2025/12/integrating-sharepoint-forms-and-lists/</link><pubDate>Tue, 16 Dec 2025 20:01:42 +0000</pubDate><guid>https://blog.dan-toft.dk/2025/12/integrating-sharepoint-forms-and-lists/</guid><description>Want the “New” button on a SharePoint List to open a custom List Form instead of the default? By tweaking the content type’s NewFormUrl with PnP PowerShell or PnPjs, you can do exactly that.</description><enclosure url="https://blog.dan-toft.dk/2025/12/integrating-sharepoint-forms-and-lists/1.jpeg" type="image/jpeg" length="0"/><content:encoded>&lt;p&gt;&amp;quot;Recently&amp;quot;, Microsoft introduced list forms, a new and &amp;quot;revolutionary&amp;quot; way to collect data in SharePoint Lists. - It&amp;#39;s still pretty basic, but it&amp;#39;s certainly better than the default list forms.&lt;/p&gt;
&lt;p&gt;Today, however, I had an interesting question, &amp;#39;Is it possible to have the new button on a SharePoint List link to a list form instead of the default form?&amp;#39;&lt;/p&gt;
&lt;h2&gt;The challenge&lt;/h2&gt;
&lt;p&gt;This customer was very happy with their current SharePoint List setup, but they wanted to improve the data entry experience and had created a beautiful list form that they were leveraging and linking to from other places.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BUT&lt;/strong&gt; They had users creating &amp;quot;weird&amp;quot; data, that didn&amp;#39;t match the &amp;quot;branching&amp;quot; they had in their form, leading to confusion and bad data.&lt;/p&gt;
&lt;p&gt;It turns out, some users would just click &amp;quot;New&amp;quot; on the list, and fill out the default form, which didn&amp;#39;t have any of the logic or structure of the custom form.&lt;/p&gt;
&lt;h2&gt;The solution&lt;/h2&gt;
&lt;p&gt;Linking the &amp;quot;New&amp;quot; button to a custom list form is not possible out-of-the-box, but there is a workaround.&lt;/p&gt;
&lt;p&gt;Using either PnPjs or PnP PowerShell, we can set a custom &amp;quot;New&amp;quot; button url, that points to the custom list form.&lt;/p&gt;
&lt;p&gt;This url property is called &lt;code&gt;NewFormUrl&lt;/code&gt;, and as it turns out, if it&amp;#39;s set to a relative URL within your tenant, SharePoint will link to that url when the &amp;quot;New&amp;quot; button is clicked.&lt;/p&gt;
&lt;p&gt;So it&amp;#39;s as simple as this&lt;/p&gt;
&lt;h3&gt;PnP PowerShell&lt;/h3&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;$Ct = Get-PnPContentType -List &amp;quot;123&amp;quot; -Identity &amp;quot;Item&amp;quot;
$Ct.NewFormUrl = &amp;quot;/:l:/s/DocSets/JABVaIEpBT3NTrh6YzROxxsAAS-tr5zY8X8T435ZFIMycdY?nav=ODVjNDNjNWQtMmMzMS00NGY2LWFjMmMtOWEwMTBhMzA5YTdm&amp;quot;;
$Ct.Update($false);
Invoke-PnPQuery;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;PnPjs&lt;/h3&gt;
&lt;pre&gt;&lt;code class=&quot;language-TypeScript&quot;&gt;  await sp.web.lists.getByTitle(&amp;quot;123&amp;quot;)
    .contentTypes.getById(&amp;quot;0x01001871C4E8CBE98F48875D0412653A801400FDA6EE41FDDA46458FB429349EB3E892&amp;quot;)
    .update({ NewFormUrl: &amp;quot;/:l:/s/DocSets/JABVaIEpBT3NTrh6YzROxxsAAS-tr5zY8X8T435ZFIMycdY?nav=ODVjNDNjNWQtMmMzMS00NGY2LWFjMmMtOWEwMTBhMzA5YTdm&amp;quot; })
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Rolling back&lt;/h2&gt;
&lt;p&gt;If you want to roll back to the default form, simply set the &lt;code&gt;NewFormUrl&lt;/code&gt; property to an empty string.&lt;/p&gt;
&lt;h2&gt;Caveats&lt;/h2&gt;
&lt;p&gt;One thing to beware of is that there is no &amp;quot;navigation&amp;quot; back to the list from the custom form, so users might get &amp;quot;stuck&amp;quot; on the form page. You might want to add some explanatory text on the &amp;quot;thank you&amp;quot; page of the form, unfortunately list forms do not support having hyperlinks added to the end of them at this time.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;You can set a custom list form as the target of the &amp;quot;New&amp;quot; button in SharePoint Lists by updating the &lt;code&gt;NewFormUrl&lt;/code&gt; property of the list&amp;#39;s content type to the relative URL of the custom form using PnP PowerShell or PnPjs.&lt;/p&gt;
</content:encoded></item>
<item><title>Converting a Folder to a Document Set</title><link>https://blog.dan-toft.dk/2025/10/converting-folder-document-set/</link><pubDate>Fri, 24 Oct 2025 18:40:08 +0000</pubDate><guid>https://blog.dan-toft.dk/2025/10/converting-folder-document-set/</guid><description>SharePoint doesn’t offer a built-in way to turn an existing folder into a Document Set, but with a content type ID swap and a bit of PnP PowerShell, you can upgrade your folders in place.</description><enclosure url="https://blog.dan-toft.dk/2025/10/converting-folder-document-set/1.jpeg" type="image/jpeg" length="0"/><content:encoded>&lt;p&gt;Document Sets are often referred to as &amp;quot;folders on steroids&amp;quot; in SharePoint, as they provide a way to group related documents together, while also providing additional metadata and functionality.&lt;/p&gt;
&lt;p&gt;However, there may be situations where you have an existing folder that you want to convert into a Document Set to take advantage of these features.&lt;/p&gt;
&lt;p&gt;While SharePoint does not provide a direct way to convert a folder into a Document Set, it is indeed possible to achieve.&lt;/p&gt;
&lt;h2&gt;Prerequisites&lt;/h2&gt;
&lt;p&gt;First we must ensure that we have Document Sets enabled, and a content type for Document Sets created.&lt;/p&gt;
&lt;h3&gt;PnP PowerShell&lt;/h3&gt;
&lt;p&gt;You&amp;#39;ll need to have &lt;a href=&quot;https://pnp.github.io/powershell/&quot;&gt;PnP PowerShell&lt;/a&gt; installed and be able to connect to your SharePoint site where the folder resides.&lt;/p&gt;
&lt;p&gt;For more information on installing and setting up PnP PowerShell, refer to the &lt;a href=&quot;https://pnp.github.io/powershell/articles/installation.html&quot;&gt;official documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Enabling Document Sets&lt;/h3&gt;
&lt;p&gt;To enable Document Sets in your SharePoint site, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to Site Settings on your SharePoint site.&lt;/li&gt;
&lt;li&gt;Navigate to &amp;quot;Site Collection Features&amp;quot;&lt;/li&gt;
&lt;li&gt;Activate the &amp;quot;Document Sets&amp;quot; feature.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/converting-folder-document-set/enable-docsets.png&quot; alt=&quot;Enabling Document Sets Feature&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Creating a Document Set Content Type&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Go back to Site Settings on your SharePoint site.&lt;/li&gt;
&lt;li&gt;Press &amp;quot;Site content types&amp;quot;&lt;/li&gt;
&lt;li&gt;Create a new content type by pressing &amp;quot;Create&amp;quot;&lt;/li&gt;
&lt;li&gt;Name it appropriately, e.g., &amp;quot;My Document Set&amp;quot;&lt;/li&gt;
&lt;li&gt;Make it inherit from &amp;quot;Document Set&amp;quot; as the parent content type. (it&amp;#39;s under the &amp;quot;Document Set Content Types&amp;quot; group)&lt;/li&gt;
&lt;li&gt;Press OK to create the content type.&lt;/li&gt;
&lt;li&gt;(Optional) Add any additional columns or metadata to the Document Set content type as needed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/converting-folder-document-set/create-docset-ct.png&quot; alt=&quot;Creating a Document Set Content Type&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Adding the Document Set Content Type to a Library&lt;/h3&gt;
&lt;p&gt;Next, we need to add the newly created Document Set content type to the document library where the folder resides.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to the document library containing the folder you want to convert.&lt;/li&gt;
&lt;li&gt;Go to Library Settings.&lt;/li&gt;
&lt;li&gt;Under &amp;quot;Advanced settings&amp;quot;, ensure that &amp;quot;Allow management of content types&amp;quot; is set to &amp;quot;Yes&amp;quot;.&lt;/li&gt;
&lt;li&gt;Back in the Library Settings, under &amp;quot;Content Types&amp;quot;, click &amp;quot;Add from existing site content types&amp;quot;.&lt;/li&gt;
&lt;li&gt;Select the Document Set content type you created earlier and add it to the library.&lt;/li&gt;
&lt;li&gt;Press OK to save the changes.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Converting the Folder to a Document Set&lt;/h2&gt;
&lt;p&gt;Now that we have the Document Set content type added to the library, we can proceed to convert the folder.&lt;/p&gt;
&lt;p&gt;First we need to grab the content type ID of the Document Set content type we created earlier, this is where things get a bit &amp;#39;tricky&amp;#39;&lt;/p&gt;
&lt;p&gt;Jump back into the library settings, and under &amp;quot;Content Types&amp;quot;, click on the Document Set content type you created earlier.&lt;/p&gt;
&lt;p&gt;In the URL, you&amp;#39;ll see a string piece of text after &amp;quot;ctype=&amp;quot; - it starts with &lt;code&gt;0x0120D5&lt;/code&gt; - copy this entire string, as this is the content type ID we need for the conversion.&lt;/p&gt;
&lt;p&gt;Mine was &lt;code&gt;0x0120D5200015E586766B0CF54B87B393D434B58BE6&lt;/code&gt; - but yours will be different, so make sure you copy it correctly.&lt;/p&gt;
&lt;p&gt;With the content type ID copied, we can get to converting the folder, I like to use PnP PowerShell for this, as it makes things quite straightforward.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;# Variables
$siteUrl = &amp;quot;https://yourtenant.sharepoint.com/sites/yoursite&amp;quot;
$listName = &amp;quot;Documents&amp;quot; # Change to your document library name
$docSetContentTypeId = &amp;quot;0x0120D5200015E586766B0CF54B87B393D434B58BE6&amp;quot; # Change to your Document Set content type ID

Connect-PnPOnline -Url $siteUrl 

$list = Get-PnPList $listName -Includes RootFolder.Folders

# Get all folders in the library
$folders = $list.RootFolder.Folders | Where-Object { 
    $_.Name -ne &amp;quot;Forms&amp;quot; # Exclude system folders
}

# Loop through each folder
foreach ($folder in $folders) {
    Write-Host &amp;quot;Processing folder: $($folder.Name)&amp;quot; -ForegroundColor Cyan
    
    # Get the list item ID from the folder&amp;#39;s ListItemAllFields
    $folderItem = Get-PnPProperty -ClientObject $folder -Property ListItemAllFields
    
    if ($folderItem) {
        $currentContentTypeId = $folderItem[&amp;quot;ContentTypeId&amp;quot;]
        
        # Check if it&amp;#39;s already a Document Set (Content Type ID starts with 0x0120D5)
        if ($currentContentTypeId -notlike &amp;quot;0x0120D5*&amp;quot;) {
            Write-Host &amp;quot;  Converting to Document Set...&amp;quot; -ForegroundColor Yellow
            
            # Set the content type to Document Set
            Set-PnPListItem -List $listName -Identity $folderItem.Id -Values @{
                &amp;quot;ContentTypeId&amp;quot; = $docSetContentTypeId
            } -UpdateType &amp;quot;Update&amp;quot;
            
            Write-Host &amp;quot;  Successfully converted!&amp;quot; -ForegroundColor Green
        }
        else {
            Write-Host &amp;quot;  Already a Document Set, skipping.&amp;quot; -ForegroundColor Gray
        }
    }
}

Write-Host &amp;quot;`nConversion complete!&amp;quot; -ForegroundColor Green
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;By changing the content type ID of the folder to that of a Document Set, SharePoint treats it as a Document Set, allowing you to leverage all the features and benefits that come with Document Sets.&lt;/p&gt;
</content:encoded></item>
<item><title>The curious case of Modern Document Sets</title><link>https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/</link><pubDate>Thu, 23 Oct 2025 05:00:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/</guid><description>The Modern Document Sets hack still works in 2025, but a hidden SortBehavior field causes them to sort with folders instead of files - here’s why it happens and how to fix it.</description><enclosure url="https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/1.png" type="image/png" length="0"/><content:encoded>&lt;p&gt;All the way back in May of 2023, I shared a &amp;quot;hack&amp;quot; I&amp;#39;d found to enable Document Sets in SharePoint Online to have a modern experience when being created.&lt;/p&gt;
&lt;p&gt;Taking the creation experience from the classic SharePoint form this&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/5.png&quot; alt=&quot;Classic Document Set New Form&quot;&gt;&lt;/p&gt;
&lt;p&gt;to this&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/6.png&quot; alt=&quot;Modern Document Set New Form&quot;&gt;&lt;/p&gt;
&lt;p&gt;Simply setting the value of &lt;code&gt;NewFormClientSideComponentId&lt;/code&gt; on the Document Set content type to the &lt;code&gt;null&lt;/code&gt;. this is a field used for SPFx custom forms, but when set to &lt;code&gt;null&lt;/code&gt;. SharePoint somehow falls back to the modern form experience, which cannot be done out of the box.&lt;/p&gt;
&lt;p&gt;See the script &lt;a href=&quot;https://pnp.github.io/script-samples/spo-document-sets-modern-new-form/README.html?tabs=pnpps&quot;&gt;sample here&lt;/a&gt; for more details.&lt;/p&gt;
&lt;h2&gt;Skip to 2025&lt;/h2&gt;
&lt;p&gt;The year is now 2025, and I still can&amp;#39;t find any official documentation from Microsoft about this feature, nor have I seen any issues, two and a half years later, I, and dozens of others, continue to use this approach without any issues.&lt;/p&gt;
&lt;p&gt;That was until Friday, October the 10th, when an email came in from &lt;a href=&quot;https://www.linkedin.com/in/bastiaankortenbout/&quot;&gt;Bastiaan Kortenbout&lt;/a&gt;, a fellow SharePoint enthusiast, asking if I too had observed issues with Modern Document Sets.&lt;/p&gt;
&lt;p&gt;As it turns out Bastiaan, was using the method in a configuration/use case I&amp;#39;d never tested.&lt;/p&gt;
&lt;h2&gt;The sorting issue&lt;/h2&gt;
&lt;p&gt;Normally when I&amp;#39;m using Document Sets, they&amp;#39;re the &amp;quot;outer most layer&amp;quot; of my data, so nothing but Document Sets go in the root of a document library.&lt;/p&gt;
&lt;p&gt;But, as it turns out, Bastiaan was using Document Sets mixed with folders, meaning that in the root of his document library, he had both Document Sets and regular folders, and even regular files.&lt;/p&gt;
&lt;p&gt;Now nothing is wrong with this approach, but it highlighted an interesting issue with the sorting of Document Sets, as it turns out, normally document sets are sorted among files, and folders kept at the top of the view.&lt;/p&gt;
&lt;p&gt;But with modern Document Sets, they now behave like folders. That is until you either capture a version, or copy/move them, which somehow makes them sort with files again.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/2.png&quot; alt=&quot;Sorting of Document Sets all wonky&quot;&gt;&lt;/p&gt;
&lt;p&gt;This results in a confusing experience for end users, as the Modern Document Sets appear with the folders, while classic Document Sets appear with the files.&lt;/p&gt;
&lt;h2&gt;The fix&lt;/h2&gt;
&lt;p&gt;Bastiaan did some digging, and found that the issue was related to the hidden &lt;code&gt;SortBehavior&lt;/code&gt; field, which appears to control the sorting of folders, and files, so he created a quick view including this field, validated this theory.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;Add-PnPView -List &amp;quot;Document Library&amp;quot; -Title &amp;quot;TestView&amp;quot; -Fields &amp;quot;LinkFilename&amp;quot;,&amp;quot;SortBehavior&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/3.png&quot; alt=&quot;View including SortBehavior&quot;&gt;&lt;/p&gt;
&lt;p&gt;Lo and behold, it all makes sense.&lt;/p&gt;
&lt;p&gt;Document Sets created using the modern form have a &lt;code&gt;SortBehavior&lt;/code&gt; value of &lt;code&gt;1&lt;/code&gt;, which is the same as folders, while classic Document Sets have a &lt;code&gt;SortBehavior&lt;/code&gt; value of &lt;code&gt;0&lt;/code&gt;, which is the same as files.&lt;/p&gt;
&lt;p&gt;Now making changes to this field directly is not supported, as it&amp;#39;s a hidden field, and changing it may have unintended consequences - but what Bastiaan found, is capturing a version, or copy/moving the Document Set, changed the &lt;code&gt;SortBehavior&lt;/code&gt; field was reset to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Which means that they&amp;#39;re now sorted with files again.&lt;/p&gt;
&lt;p&gt;Bastiaan and I evaluated the situation, over mail, and Bastiaan came up with two options.&lt;/p&gt;
&lt;h3&gt;Option 1: Change the view settings (preferred)&lt;/h3&gt;
&lt;p&gt;Under the classic view settings, there&amp;#39;s an option to &amp;quot;Sort only by specified criteria (folder may not appear before items)&amp;quot; setting, while it may not be desirable in all cases, it&amp;#39;s probably the best solution in this scenario&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2025/10/curious-case-modern-document-sets/4.png&quot; alt=&quot;Sort only by specified criteria (folder may not appear before items)&quot;&gt;&lt;/p&gt;
&lt;p&gt;This does however mean that folders will no longer appear at the top of the view, but mixed with items and Document Sets, so be sure to communicate this to your end users or just make sure you have a separate view for inside your Document Sets, which doesn&amp;#39;t have this flag set.&lt;/p&gt;
&lt;h3&gt;Option 2: Disable modern Document Sets&lt;/h3&gt;
&lt;p&gt;The other, and more nuclear option is to disable the modern Document Set experience the library, using this snippet&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;$docLib = Get-PnPList -Identity &amp;quot;Document Library&amp;quot;
$ct = Get-PnPContentType -List $docLib -Identity &amp;quot;Document Set&amp;quot;
$ct.NewFormUrl = &amp;quot;_layouts/15/NewDocSet.aspx&amp;quot;
$ct.Update($false)
Invoke-PnPQuery
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And then update the &lt;code&gt;SortBehavior&lt;/code&gt; field on the modern Document Sets to &lt;code&gt;0&lt;/code&gt;, so they&amp;#39;re sorted with files again, by capturing a version on all of the ones that are still set to &lt;code&gt;SortBehavior&lt;/code&gt; set to &lt;code&gt;1&lt;/code&gt; using this snippet.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;# Get all Document Sets
$docsets = Get-PnPListItem -List $listName -PageSize 500 | Where-Object {
    $_[&amp;quot;HTML_x0020_File_x0020_Type&amp;quot;] -eq &amp;quot;Sharepoint.DocumentSet&amp;quot;
}
 
# Filter for those with SortBehavior = 1
$targets = $docsets | Where-Object {
    $_[&amp;quot;SortBehavior&amp;quot;] -and $_[&amp;quot;SortBehavior&amp;quot;].LookupValue -eq &amp;quot;1&amp;quot;
}

Write-Host &amp;quot;Found $($targets.Count) Document Sets with SortBehavior = 1.&amp;quot;
 
foreach ($ds in $targets) {
    $name = $ds[&amp;quot;FileLeafRef&amp;quot;]
    $id = $ds[&amp;quot;ID&amp;quot;]
 
    try {
        Write-Host &amp;quot;Processing Document Set: $name (ID: $id)&amp;quot;
 
        # Get the list item again to ensure all properties are loaded
        $listItem = Get-PnPListItem -List $listName -Id $id
 
        # Capture a new version
        $listItem.UpdateOverwriteVersion()
        Invoke-PnPQuery
 
        Start-Sleep -Seconds 2
 
        # Recheck SortBehavior value
        $updated = Get-PnPListItem -List $listName -Id $id
        $newSort = $updated[&amp;quot;SortBehavior&amp;quot;].LookupValue
 
        Write-Host &amp;quot;Version captured. SortBehavior now: $newSort&amp;quot;
    }
    catch {
        Write-Host &amp;quot;Failed for ${name}: $($_.Exception.Message)&amp;quot;
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now all modern Document Sets appear mixed in with classic Document Sets and files, just like one would expect, out of the box.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;The Document Set modernisation hack from years ago still works, however, there&amp;#39;s a twist, modern Document Sets have a &lt;code&gt;SortBehavior&lt;/code&gt; field set to &lt;code&gt;1&lt;/code&gt;, which sorts them with folders, at the top of views, while classic Document Sets have a &lt;code&gt;SortBehavior&lt;/code&gt; field set to &lt;code&gt;0&lt;/code&gt;, which sorts them with files.&lt;/p&gt;
&lt;p&gt;Even more curiously, once you capture a version, or copy/move a modern Document Set, the &lt;code&gt;SortBehavior&lt;/code&gt; field is reset to &lt;code&gt;0&lt;/code&gt;, making them sort with files again - causing inconsistency in the user experience, as some Document Sets may appear with folders, while others appear with files.&lt;/p&gt;
&lt;p&gt;This is all fixable either by changing the view settings to not prioritize folders at the top, or by disabling modern Document Sets, and capturing a version on all modern Document Sets to reset their &lt;code&gt;SortBehavior&lt;/code&gt; field to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;
</content:encoded></item>
<item><title>May in M365</title><link>https://blog.dan-toft.dk/2024/05/m365/</link><pubDate>Fri, 31 May 2024 14:38:53 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/05/m365/</guid><description>A busy month bookended by M365 Community Conference and Microsoft Build - movable OneDrive shortcuts, multilingual Copilot, Team Copilot, Copilot extensions, SharePoint Embedded GA, Copilot+ PCs and a whole lot more.</description><enclosure url="https://blog.dan-toft.dk/2024/05/m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;May is always busy time in the land of Microsoft, this year was no exception! - We started off with the M365 Community conference and ended the month with Microsoft Build, and in between there were a lot of cool announcements, smaller community conferences, including European Collaboration Summit, where I got to deliver my first session ever, talking about the value of community, but that&amp;#39;s enough fluff, let&amp;#39;s dig in! - here are some of the highlights from the month of may in M365!&lt;/p&gt;
&lt;h2&gt;SharePoint Shortcuts can be moved&lt;/h2&gt;
&lt;p&gt;A while back Microsoft introduced the concept of &amp;quot;add shortcut to OneDrive&amp;quot; in SharePoint, &lt;a href=&quot;https://blog.dan-toft.dk/2022/12/add-shortcut-onedrive-sync/&quot;&gt;I did an entire blog post on that feature&lt;/a&gt; - the biggest problem was that these shortcuts kept piling up in the root of the users OneDrive, and there was no way to move them into folders (except for using code), well that&amp;#39;s changing now, you can now move these shortcuts into folders.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/z3019494/status/1784751781387637152&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Copilot speaks multiple languages&lt;/h2&gt;
&lt;p&gt;As a bilingual user, Copilot hasn&amp;#39;t been worth a whole lot for the past months, but that however has all changed now! - Copilot now speaks a long list of languages, it being able to finally understand my Danish content is a game changer, and it&amp;#39;s finally creating real world value for me now!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/feed/update/urn:li:activity:7190963460694827008/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Follow meetings in Outlook&lt;/h2&gt;
&lt;p&gt;Have you ever wanted to attend a meeting, but been double booked, or maybe had a meeting in a different time zone, and you just couldn&amp;#39;t make it?&lt;/p&gt;
&lt;p&gt;Well this new feature in Outlook is for you! - instead of declining the meeting, you can now follow it, this will prompt the attendees to record the meeting, so Copilot can create a summary, and you can watch the meeting later - or just read the recap.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/rquickenden/status/1787768566596399414&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Windows 11 teams rename&lt;/h2&gt;
&lt;p&gt;Anyone who&amp;#39;s used windows 11 will know the frustration of having several teams clients, not just classic and new, but also that stupid &amp;quot;personal&amp;quot; client, which is just called teams, seemingly only to confuse users.&lt;/p&gt;
&lt;p&gt;Well that changes now, the personal client will be renamed to &amp;quot;Teams personal&amp;quot; - so now you can easily distinguish between the clients.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://pca.st/episode/be553ebc-5d7d-4282-be92-b6516cc8ad7c&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Outlook Copilot will be Graph grounded&lt;/h2&gt;
&lt;p&gt;You might not know this yet, but not all Copilots are created equal, for instance Copilot chat in Outlook can&amp;#39;t access your organization data, while Copilot in Teams can, well that&amp;#39;s changing now, Copilot in Outlook will soon be able to access your organization data, and provide you with the same level of insights as Copilot in Teams.&lt;/p&gt;
&lt;p&gt;Unfortunately it&amp;#39;s still not context aware of what&amp;#39;s on your screen, but it&amp;#39;s a start, I&amp;#39;m glad to see Microsoft starting to focus on aligning the different Copilot experiences to be more consistent.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_outlook-activity-7191456901581152256-w_38&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Approvals on any list&lt;/h2&gt;
&lt;p&gt;Approvals are a great feature in Microsoft 365, and a critical part of any modern organization, Microsoft knows this and will soon be expanding the approvals feature, to quickly let you submit any list item for approvals, that will show up in teams of the approver, this is great, enabling end users to quickly get value from the product is awesome!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/michelcarlo/status/1787882893143953522&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Block unmanaged solutions&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re using the Power Platform, and properly using environments, you no doubt know the struggle of people deploying unmanaged solutions to production, and suddenly your test, and dev environments are out of sync, and you&amp;#39;re stuck with an app that everyone is scared to update.&lt;/p&gt;
&lt;p&gt;Well no more, you can now on an environment level block unmanaged solutions!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/angelog1908/status/1788095603303415915&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Dataverse restore deleted records&lt;/h2&gt;
&lt;p&gt;As a SharePoint guy, this has always been one of my biggest issues with Dataverse, once you delete something, it&amp;#39;s gone, and you can&amp;#39;t get it back, well that&amp;#39;s changing now, you can now restore deleted records in Dataverse, this is a game changer, and will make it much easier and safer to work with Dataverse.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/michelcarlo/status/1789643438042022132&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Microsoft Places Public Preview&lt;/h2&gt;
&lt;p&gt;Remember Places? - a product Microsoft announced like two years ago, and then promptly never talked about again? - well it&amp;#39;s now gone into public preview, powered by Teams Premium.&lt;/p&gt;
&lt;p&gt;Places is a super cool AI powered tool that&amp;#39;ll allow you to see who&amp;#39;s working where, and better schedule meetings whenever it works for everyone.&lt;/p&gt;
&lt;p&gt;This product seems really really cool, but I&amp;#39;m pretty bummed that it&amp;#39;s only available in Teams Premium, I&amp;#39;m sure it&amp;#39;s going to be a great feature, but I&amp;#39;m not sure it&amp;#39;s worth the price of Teams Premium alone - and with Copilot for Microsoft 365 also being in there with features like recap, I&amp;#39;m worried how adoption will look for places.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://handsontek.net/microsoft-places-available-public-preview/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Domain Isolation retirement SPFx&lt;/h2&gt;
&lt;p&gt;This one is a minor thing but it caused a lot of commotion in the community, Microsoft is retiring the domain isolated web parts in SharePoint Framework.&lt;/p&gt;
&lt;p&gt;This was a feature where your web parts could have permissions only tied to your specific web part, admittedly with a massive performance impact, but the way SPFx permissions work out of the box, is that if one app has say &amp;quot;mail.send&amp;quot; permission, all other SPFx apps in the same tenant have that permission.&lt;/p&gt;
&lt;p&gt;While SPFx is only delegated permissions, and not application permissions, it&amp;#39;s still a bit of a security frustrations, and I&amp;#39;m sure this change will cause a lot of headaches for developers.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m hoping Microsoft will come up with a better solution for this, some time in the future, but for now, it looks pretty ... sad.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/retiring-sharepoint-framework-domain-isolated-web-parts-for-sharepoint-online/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Build&lt;/h2&gt;
&lt;p&gt;Microsofts build event took place this month, and there were a lot of cool announcements, here are some of the highlights, all taken from the &lt;a href=&quot;https://news.microsoft.com/build-2024-book-of-news/&quot;&gt;Book of News&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Create Copilots in SharePoint&lt;/h2&gt;
&lt;p&gt;One of the really cool things we saw at build was the ability to quickly create your own custom Copilot in SharePoint, simply select a few documents or folders, and with a click of a button you&amp;#39;ll have a Copliot that&amp;#39;s a specialist in those documents.&lt;/p&gt;
&lt;p&gt;This Copilot is sharable with your colleagues as well, really really cool, but my governance heart is aching at the thought of Copilot sprawl.&lt;/p&gt;
&lt;h2&gt;Copilot Extensions&lt;/h2&gt;
&lt;p&gt;In Microsoft rebranding news, all extensibility features for Copilot (Graph Connectors, and plugins) will now be called &amp;quot;Copilot extensions&amp;quot; - I wonder what more is to come!&lt;/p&gt;
&lt;h2&gt;Team Copilot&lt;/h2&gt;
&lt;p&gt;This is the first real agent we see in Copilot, here you get an entire extra employee for your team, a Copilot you can invite to join your team, and as a new employee - focusing initially on the following roles: &amp;quot;Meeting facilitator&amp;quot;, Copilot takes real time notes, and aligns the agenda with what has been talked about, and what is being talked about. &amp;quot;Group collaborator&amp;quot;, helps bring focus to important information, and tasks that may have been lost. &amp;quot;Project manager&amp;quot;, Copilot ensures that tasks are created, maintained, and reminded across a project.&lt;/p&gt;
&lt;p&gt;How cool is that? - AI agents in your team, not taking the place of a project manager, but certainly making their lives a lot easier.&lt;/p&gt;
&lt;h2&gt;Copilot Agents in Copilot studio&lt;/h2&gt;
&lt;p&gt;What exactly this will be, I&amp;#39;m intrigued to see, but it looks like Copilot studio will allow users to create their own Copilot agents, an agent is a Copilot that can act more on it&amp;#39;s own, and not just as a direct helper to the user when prompted to do so.&lt;/p&gt;
&lt;h2&gt;AI Flows&lt;/h2&gt;
&lt;p&gt;Coming to Power Automate, the option to have AI Flows, much like we know it today Power Automate can automatically generate a flow based upon a prompt, but instead of it being generated, and you just tweak it, the idea here is that every time based on the users request a flow is generated that runs, and every time a user asks, well the flow might look different.&lt;/p&gt;
&lt;h2&gt;Flows inside Microsoft Copilot&lt;/h2&gt;
&lt;p&gt;Copilot for Microsoft 365 will get the ability to call flows, as a sort of plugin, that&amp;#39;s cool! - I&amp;#39;m not 100% sure when or how exactly this will be implemented, but from the sound of it it&amp;#39;s a cool feature.&lt;/p&gt;
&lt;h2&gt;SharePoint embeded goes GA&lt;/h2&gt;
&lt;p&gt;Not a whole lot to add here, but SharePoint embeded that was announced in preview at ESPC in december, is now generally available, giving developers the option to use the headless SharePoint in their applications, without the UI of SharePoint.&lt;/p&gt;
&lt;h2&gt;Windows 11 on ARM and Copilot + PC&lt;/h2&gt;
&lt;p&gt;Microsoft announced their first line of ARM laptops, that they claim will perform better than the apple M3 Macbooks, and as someone who has switched to mac for the M series processors, I&amp;#39;m really excited to see where this goes, and if it can live up to the hype.&lt;/p&gt;
&lt;p&gt;Along with the ARM laptops, Microsoft also announced the concept of Copilot + PC, a feature that using and NPU (Neural Processing Unit) allows you to run Copilot locally on your PC, and not in the cloud, this is a game changer, and I&amp;#39;m really excited to see where this goes, the first feature then announced to take advantage of this was &amp;quot;Windows Recall&amp;quot; a feature that will essentially monitor everything you do on your PC, and allow you to prompt Copilot to recall what you did, or saw! - this is a mega cool feature, and I&amp;#39;m really excited to play with it, but also very woried about the privacy implications.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Loads and loads of cool stuff coming in the coming months, and I&amp;#39;m really excited to see where it goes, especially when it comes to being able to build your own Copilots in no time! - and the implications of agents in the daily life of a user!&lt;/p&gt;
</content:encoded></item>
<item><title>April in M365</title><link>https://blog.dan-toft.dk/2024/04/april-m365/</link><pubDate>Sun, 28 Apr 2024 14:15:30 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/04/april-m365/</guid><description>Exchange high volume email preview, Copilot in Stream, interactive annotations in Teams, the SharePoint Pages Graph API going GA, Power BI Premium licensing changes and the rollout of custom fonts and the Brand Center.</description><enclosure url="https://blog.dan-toft.dk/2024/04/april-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Exchange high volume emails&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve ever built a system that sends out a lot of individual emails, using Graph (or exchange), I&amp;#39;m sure you&amp;#39;ve inevitably run into the throttling limits, suddenly your app breaks because the user has sent too many emails, and you&amp;#39;re stuck with a broken app for the next couple of hours.&lt;/p&gt;
&lt;p&gt;And with nothing much to do, other than wait, and hope that the throttling limits are lifted.&lt;/p&gt;
&lt;p&gt;Well I&amp;#39;ve sometimes moved my solutions to third parties like SendGrid, but that&amp;#39;s always frustrating, because you&amp;#39;re now paying for the same service twice, and you&amp;#39;re also now managing two different services.&lt;/p&gt;
&lt;p&gt;Well no more, going into preview now is Microsofts take on high volume emails, and while it&amp;#39;s still in preview, I&amp;#39;m looking forward not having to manage two different services in the future.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/exchange-team-blog/public-preview-high-volume-email-for-microsoft-365/ba-p/4102271&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Copilot in stream rolling out&lt;/h2&gt;
&lt;p&gt;Have you ever wanted to get a quick summary of a video, before you decide to watch it, or maybe you remember watching it, but can&amp;#39;t remember the exact phrase, that was said?&lt;/p&gt;
&lt;p&gt;Well fear not rolling out now is Copilot in Stream, ask Copilot about that video you don&amp;#39;t have time to watch, or that meeting recording where you missed the first 15 minutes, or had to drop off early!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/Mdu0HooN7Z0?si=m2w-BgFDXSRxvADP&amp;t=655&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Interact with content while annotating teams&lt;/h2&gt;
&lt;p&gt;As a heavy user of &lt;a href=&quot;https://learn.microsoft.com/en-us/sysinternals/downloads/zoomit&quot;&gt;ZoomIt&lt;/a&gt;, I&amp;#39;ve never really used the annotate feature in Teams, as I just couldn&amp;#39;t see the value.&lt;/p&gt;
&lt;p&gt;Well that changes now! - when annotating with teams, you&amp;#39;ll now have the option to press a button and interact with your &amp;quot;background&amp;quot; without losing your annotations.&lt;/p&gt;
&lt;p&gt;Just imagine circling parts of a document, while talking about it, and then being able to edit the document, while the circling stays in place, that&amp;#39;s a game changer!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_microsoftteams-msteams-activity-7185292473592598528-pnm2/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SharePoint Pages Graph API GA&lt;/h2&gt;
&lt;p&gt;Basically since the launch of Modern SharePoint pages, we&amp;#39;ve been waiting for a proper pages API, there&amp;#39;s some features in CSOM, but not perfect, and while the PnP community has done an awesome job revere engineering the API, it&amp;#39;s always a balance act, especially when you&amp;#39;re building solutions for clients, where you really don&amp;#39;t want to use unsupported APIs.&lt;/p&gt;
&lt;p&gt;Well, the wait is over, the SharePoint Pages Graph API is now GA, and while it&amp;#39;s a limited release, only supporting a few select Web Parts, it&amp;#39;s a start, I&amp;#39;m certanly looking forward to seeing what the future holds for this API.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/microsoft-graph-api-for-sharepoint-pages-is-now-generally-available/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Power BI Premium licensing updates&lt;/h2&gt;
&lt;p&gt;Previously you could purchase Power BI Premium per capacity, this is now moving towards Microsoft Fabric capacity, in Microsofts endless pursuit to push users to the latest and greatest.&lt;/p&gt;
&lt;p&gt;Honestly I&amp;#39;m not aware of any negative impacts this will have, other than you needing to move your workspaces from one capacity to another.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://powerbi.microsoft.com/en-us/blog/important-update-coming-to-power-bi-premium-licensing/?WT.mc_id=M365-MVP-5001925&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Viva Connections personalized view&lt;/h2&gt;
&lt;p&gt;Viva Connections is great for bringing better communications to the frontline workers in your org, but I&amp;#39;m sure you&amp;#39;ve had the request to change the layout, or the order for 1 or 2 users, well now the users can do that themselves, I&amp;#39;m not really looking forward to how IT admins will handle this, but I&amp;#39;m sure it&amp;#39;s going to be a great feature for the users!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/viva-connections-blog/introducing-new-personalized-view-option-for-viva-connections/ba-p/4117532&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Brand center and custom fonts rolling out&lt;/h2&gt;
&lt;p&gt;The number one request that I have been able to &amp;quot;hack&amp;quot;, but always, always, always have managed to talk clients out of is custom fonts in SharePoint, and while I don&amp;#39;t fully get the point of custom fonts, I do understand that it&amp;#39;s a branding thing, and that it&amp;#39;s important to some clients.&lt;/p&gt;
&lt;p&gt;So I really appreciate that Microsoft is rolling out custom fonts in SharePoint, and I&amp;#39;m looking forward to seeing how this will be used in the future.&lt;/p&gt;
&lt;p&gt;But personally I&amp;#39;m even more excited about the brand center, and what&amp;#39;s to come in the future, for SharePoint, Viva connections, and the rest of the M365 suite in the coming years!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/XcEKaGnOgz0?feature=shared&amp;t=414&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft seems to have slowed down a bit, but we&amp;#39;re also looking at the M365 conference and Microsoft Build coming up, so I&amp;#39;m sure we&amp;#39;ll see a lot of new features in the coming months, and I&amp;#39;m looking forward to seeing what&amp;#39;s next for M365!&lt;/p&gt;
</content:encoded></item>
<item><title>Getting to PnP Framework logs</title><link>https://blog.dan-toft.dk/2024/04/pnp-framework-logs/</link><pubDate>Tue, 16 Apr 2024 18:40:27 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/04/pnp-framework-logs/</guid><description>Have you ever wondered how to get to the logs from PnP Framework? Well, wonder no more, this post will show you how to get to the logs, and why you should!</description><enclosure url="https://blog.dan-toft.dk/2024/04/pnp-framework-logs/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re anything like me, you&amp;#39;ve been using PnP Framework for provisioning basically forever, and everything has been awesome!&lt;/p&gt;
&lt;p&gt;Normally this approach has been great, and whenever there&amp;#39;s been an issue I would debug locally, and keep an eye on the output in Visual Studio&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2024/04/pnp-framework-logs/2.webp&quot; alt=&quot;Visual Studio Output&quot;&gt;&lt;/p&gt;
&lt;p&gt;And that worked great, however recently I&amp;#39;ve had more and more fails in production, due to my Azure functions timing out.&lt;/p&gt;
&lt;p&gt;Not great, and really hard to reproduce locally, I could spin up &lt;a href=&quot;https://aka.ms/devproxy&quot;&gt;Dev Proxy&lt;/a&gt; - but since it&amp;#39;s not a matter of my code failing, but rather just randomly taking waaay longer than normally, it&amp;#39;s not really helping me.&lt;/p&gt;
&lt;p&gt;Time to look at the logs!&lt;/p&gt;
&lt;h2&gt;Why logging?&lt;/h2&gt;
&lt;p&gt;Well, logging is the first step to understanding what&amp;#39;s going on, and what&amp;#39;s suddenly taking so long.&lt;/p&gt;
&lt;p&gt;So let&amp;#39;s take a look at how we can get access to the logs from PnP Framework.&lt;/p&gt;
&lt;h2&gt;Logging in PnP Framework&lt;/h2&gt;
&lt;p&gt;PnP Framework unfortunately doesn&amp;#39;t have a very intuitive way of enabling logging, since unfortunately it uses &lt;a href=&quot;https://github.com/pnp/pnpframework/blob/2cd8204f230759d34f9e07c18535cd9648625151/src/lib/PnP.Framework/Diagnostics/TraceLogger.cs&quot;&gt;TraceLogging&lt;/a&gt;, which is a bit of a pain to get to work with, but it had to be possible.&lt;/p&gt;
&lt;p&gt;My first stop was PnP.PowerShell, where the awesome folks had already implemented a way to enable logging, and it was just a matter of copying that code:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;ConsoleTraceListener consoleListener = new ConsoleTraceListener(false);
consoleListener.Name = ConsoleListenername;
Trace.Listeners.Add(consoleListener);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/pnp/powershell/blob/0ea9173a81f5cb2b937632939b00b80a11f6e8e4/src/Commands/Base/SetTraceLog.cs#L46C19-L48C58&quot;&gt;source&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or so I thought, turns out the approach PnP.PowerShell uses only allows to log to the console, or a file, and I wanted to log to Application Insights.&lt;/p&gt;
&lt;p&gt;Damn, this didn&amp;#39;t give a lot to go off of, but after a bit more back and forth, I managed to get it working, by making my own trace listener:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;public class LoggerTraceListener : TraceListener {
    private readonly Microsoft.Extensions.Logging.ILogger _logger;

    public LoggerTraceListener(Microsoft.Extensions.Logging.ILogger logger) {
        _logger = logger;
    }

    public override void Write(string message) {
        _logger.LogInformation(message);
    }

    public override void WriteLine(string message) {
        _logger.LogInformation(message);
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then from there, using just two lines I could start to get logs in Application Insights:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;Trace.Listeners.Add(new LoggerTraceListener(logger));
PnP.Framework.Diagnostics.Log.LogLevel = PnP.Framework.Diagnostics.LogLevel.Debug;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now I could see all the logs in Application Insights, and I now have a much better idea of what&amp;#39;s going on, and why my Azure functions are suddenly taking so long.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Steal the code snippets above, and remember to enable logging before you go to production, it will save you a lot of headaches!&lt;/p&gt;
</content:encoded></item>
<item><title>March in M365</title><link>https://blog.dan-toft.dk/2024/03/march-m365/</link><pubDate>Thu, 28 Mar 2024 09:43:11 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/03/march-m365/</guid><description>March meant MVP summit, but that doesn’t mean we didn’t get any non-NDA news, lets take a look at the awesome updates from March!</description><enclosure url="https://blog.dan-toft.dk/2024/03/march-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;March is coming to an end, for me March meant my first ever MVP summit, an experience like nothing I&amp;#39;ve ever tried before, I heard so much awesome stuff, unfortunately I can&amp;#39;t blog about that stuff just yet, what I can do is give you a summary of all the stuff that is publicly available, so here&amp;#39;s a summary of the stuff that&amp;#39;s happened in the world of M365 in March 2024.&lt;/p&gt;
&lt;h2&gt;Copilot rolling out for multiple languages&lt;/h2&gt;
&lt;p&gt;If, like me English is your secondary language, I guarantee you&amp;#39;ve had the same Copilot experience as me, &lt;code&gt;This is cool, now it only it actually understood my content&lt;/code&gt; - well it looks like that&amp;#39;s all about to change!&lt;/p&gt;
&lt;p&gt;The list of upcoming languages has officially been announced, over March and April, the following languages will be rolling out: Arabic, Chinese Traditional, Czech, Danish, Dutch, Finnish, Hebrew, Hungarian, Korean, Norwegian, Polish, Portuguese (Portugal), Russian, Swedish, Thai, Turkish and Ukrainian.&lt;/p&gt;
&lt;p&gt;How cool is that I personally can&amp;#39;t wait to be able to actually use Copilot with my real content, and for more than 20% of my emails 🙌 - I&amp;#39;m super stoked for this one!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/copilot-for-microsoft-365/what-s-new-in-copilot-for-microsoft-365/ba-p/4062353&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Section Backgrounds&lt;/h2&gt;
&lt;p&gt;All the way back at M365 Conf last year, we were promised a whole lot of changes to the SharePoint page layouts, this is one of those changes, being able to have more than 3 different background colors is awesome - unfortunately we won&amp;#39;t be able to change to just any color (yet), but there&amp;#39;s a nice preset of colors/gradients to choose from.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve also been promised that we&amp;#39;ll be able to upload our own images sometime down the line, if that&amp;#39;s the case you could just upload a solid color image, and have any color you want, which just feels like a hack, but is a workaround, like we often end up doing with SharePoint pages.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://m365admin.handsontek.net/microsoft-sharepoint-online-new-section-backgrounds-in-pages-and-news/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Power Automate Version history&lt;/h2&gt;
&lt;p&gt;Have you ever been working on a Power Automate flow, and ended up breaking something that was working earlier that day? - I mean, I certainly have never ever done that 😅 - but hypothetically, if you were to do so, you&amp;#39;ll soon have the option to roll back with the upcoming version history for your flows, how awesome is that? 🎉&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/TomaszPoszytek/status/1766020209989570940&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to app launcher&lt;/h2&gt;
&lt;p&gt;A minor change, but none the less, it&amp;#39;s worth it to be aware of what&amp;#39;s coming, when you click the waffle menu in Microsoft 365, you&amp;#39;ll soon see a new look, with a wider panel, and a new layout, and easier access to create new content!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_microsoft365-m365-activity-7172131558802321408-2xBQ/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Office Scripts available to lower tier licenses&lt;/h2&gt;
&lt;p&gt;Basically since I was born people have been screaming about macros in Excel, and all the security issues that came with them, a few years back Microsoft launched Office Scripts, a great alternative to macros, &lt;a href=&quot;https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/&quot;&gt;one of my first blog posts was on this topic&lt;/a&gt; it&amp;#39;s an awesome feature, with the main issue being that it was only available to E3 and above, well that&amp;#39;s all about to change, Office Scripts is now available to E1 and F3 licenses and above, how cool is that?&lt;/p&gt;
&lt;p&gt;Bringing automation to the frontline workers, it&amp;#39;s really nice to see Microsoft taking frontline workers seriously and giving them the tools they need to be more productive.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/excel-blog/office-scripts-is-now-available-for-office-365-enterprise-e1-and/ba-p/4089088&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Custom list forms rolling out&lt;/h2&gt;
&lt;p&gt;A really really really cool feature that was announced all the way back in &lt;a href=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/#forms&quot;&gt;may last year&lt;/a&gt; is the ability to have custom forms in SharePoint, this is finally rolling out, right now! - It&amp;#39;s already hit my dev tenant, I&amp;#39;m really looking forward to seeing some of the awesome things people will use this for! - from gathering a list of attendees for the Christmas party, to a &amp;quot;hardware order form&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SharePoint/status/1770467622620127252?t=IX1NY1tiV7cY2XtWWoZmKg&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to user profile image sync&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve ever struggled with SharePoint and user profile images, you might&amp;#39;ve gone down the rabbit hole that is &lt;a href=&quot;https://blog.dan-toft.dk/2023/04/uncovering-mysteries-missing-user-profile-images/&quot;&gt;user profile images&lt;/a&gt; - it looks like Microsoft is finally taking solving this issue seriously, instead of syncing the images around from Entra to Exchange, and then to SharePoint, syncing is no more, from now on all images will be fetched directly from Graph!&lt;/p&gt;
&lt;p&gt;While this is really cool, it will affect some of the custom solutions that are out there, so be sure to check if your solution is affected by this change, are you fetching images from Graph, or the user profile service?&lt;/p&gt;
&lt;p&gt;Another thing this affects is guest users - today guests don&amp;#39;t get a picture synced to SharePoint, but admins could upload one to the user profile service, this will no longer be possible, so if you&amp;#39;re using images with guest users, be sure to check if this affects you!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://petri.com/microsoft-changelog/m365-changelog-share-point-user-experience-and-image-coherence-in-share-point-online-spo/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;RSS (Restricted SharePoint Search) - Limit Copilot from accessing your data&lt;/h2&gt;
&lt;p&gt;In the era of Copilot, we&amp;#39;re seeing similar scenes to what (I&amp;#39;ve heard) happened in the days of delve - users are suddenly discovering that they have access to things they had no idea they had access to - security by obscurity is now starting to show its flaws, this has led to many organizations scrambling to figure out how to clean up their permissions.&lt;/p&gt;
&lt;p&gt;Well Microsoft has given them a quick-fix, &lt;code&gt;Restricted SharePoint Search&lt;/code&gt; - or as Microsoft has decided to call it &lt;code&gt;RSS&lt;/code&gt; - this feature will allow you to make a &amp;quot;allow list&amp;quot; of sites that Copilot can access, you can select up to 100 sites.&lt;/p&gt;
&lt;p&gt;While I appreciate that loads of orgs want Copilot, and don&amp;#39;t feel like taking up the effort that is cleaning up your data, from my personal point of view, this is like pissing your pants to stay warm, this should be a last resort, not your go-to approach to fixing your permissions.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-ww/microsoft-365/roadmap?filters=&amp;searchterms=385352&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Public Preview, new Planner&lt;/h2&gt;
&lt;p&gt;A little while back &lt;a href=&quot;https://blog.dan-toft.dk/2023/11/november-m365/#the-new-microsoft-planner&quot;&gt;at ignite&lt;/a&gt; Microsoft announced plans to consolidate the Todo, Planner and Project for the Web into &amp;quot;the new planner&amp;quot;, and instead of you having to worry about different apps, the different features would be locked behind licenses, well the first step in this journey is now in public preview, the teams app &amp;quot;Planner&amp;quot; is now in public preview, I&amp;#39;ve played around with it a bit, and it looks to be working quite alright, it&amp;#39;ll be interesting to see what happens to the existing services over the coming months, are we going to see planner, todo and project for the web go away completely, or will they still be around for a while?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/planner-blog/the-new-planner-in-teams-is-now-in-public-preview/ba-p/4072525&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;File viewer improvements&lt;/h2&gt;
&lt;p&gt;Microsoft are working hard on improving some of their core features in this era of Copilot, one of those is the file viewer, you know from SharePoint/OneDrive, while it already supports over 300 file types, Microsoft is still working to improve it, they&amp;#39;re adding things like Copilot integration, eSignatures if you&amp;#39;re a SharePoint Premium user, PDF editing, and a whole lot more! - a lot of these features are already available, and some are coming soon, but mostly this blog post is a roundup of all the changes that have happened over the last few months, or is coming soon, so take a look and get caught up.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/introducing-new-capabilities-for-file-viewer-in-microsoft-365/ba-p/4089244&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Create from templates in OneDrive&lt;/h2&gt;
&lt;p&gt;In word when you create a new document, you&amp;#39;re presented with an option to choose from a list of templates, this is a feature that I&amp;#39;ve really been missing when creating documents in SharePoint, and something I&amp;#39;ve often had to create solutions to work around, and while we&amp;#39;re able to add them using content types, what about OneDrive? - well it looks like Microsoft is bringing the template feature you know and love from your office apps into OneDrive - how cool is that?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://supersimple365.com/coming-to-onedrive-for-the-web-create-from-templates/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft&amp;#39;s focus is in no doubt on Copilot, but at the same time it&amp;#39;s really nice to see a focus on improving some of the just &amp;quot;everyday&amp;quot; things like the file viewer, and the app launcher.&lt;/p&gt;
&lt;p&gt;So even in what felt like a &amp;quot;slow month&amp;quot; a lot of cool stuff has happened, and I can&amp;#39;t wait to see what April brings!&lt;/p&gt;
</content:encoded></item>
<item><title>February in M365</title><link>https://blog.dan-toft.dk/2024/02/february-m365/</link><pubDate>Tue, 27 Feb 2024 06:18:28 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/02/february-m365/</guid><description>Another month has passed, what’s happened in the world of M365?</description><enclosure url="https://blog.dan-toft.dk/2024/02/february-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Copilot for Microsoft 365 coming to Teams App on mobile&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve been lucky enough to be licensed to use Copilot for Microsoft 365, you&amp;#39;ve probably already fallen in love with the ability to quickly summarize things, draft messages and a like, soon these features will be coming to the Teams Mobile app!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/martinboam_copilot-microsoftteams-m365roadmap-activity-7163073951160590339-sbPA/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Granular restore coming to M365 Backup&lt;/h2&gt;
&lt;p&gt;As someone who&amp;#39;s been waiting forever for better backup tooling in M365 I was super stoked about M365 backup, not really for the Microsoft side of things, but more for the partner APIs, we all know that good backup strategy like 3-2-1 would prescribe that you keep your backup off-site, this could be with a third party partner who backs-up to somewhere like AWS.&lt;/p&gt;
&lt;p&gt;Unfortunately at the current state of M365 backup you can only restore a full site at a time, not a single file, however, it was &amp;quot;announced&amp;quot; that this will be coming later down the line.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://pca.st/mn7mo0kj&quot;&gt;Hear more @ 02:40&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Loop components in Microsoft OneNote&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re anything like me, you&amp;#39;ve been playing around with loop, thinking &amp;quot;where does this put OneNote&amp;quot; - for me personally loop replaced OneNote for me in an instant, Loop components where like that, but on steroids.&lt;/p&gt;
&lt;p&gt;Well now you&amp;#39;ll be able to use loop components in OneNote, placing OneNote as a product in an even more awkward place 😅&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.hubsite365.com/en-ww/pro-office-365/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Limit presenter role&lt;/h2&gt;
&lt;p&gt;Up until now When talking roles in a team call, you were either a presenter, or not, now some orgs don&amp;#39;t want presenters to have the option to disable attendees mics, or cameras.&lt;/p&gt;
&lt;p&gt;This is a tenant setting that admins can enable/disable depending on the organizations preferences.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/linuscansby_microsoftteams-activity-7161595827310866433-hnHL/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Removing NoScript&lt;/h2&gt;
&lt;p&gt;This change won&amp;#39;t affect a lot of users, but it&amp;#39;s a very important change - when doing certain &amp;quot;not-really-supported&amp;quot; customizations you have to use PowerShell to disable &amp;quot;noScript&amp;quot; - this is a feature designed to prevent ungoverned code from running in your environment, so SPFx solutions will be unaffected by this, unless they have set the &lt;code&gt;requiresCustomScript&lt;/code&gt; property in the manifest, this means some community samples like the &amp;quot;modern script editor&amp;quot; will no longer be addable to a SharePoint site&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note it&amp;#39;s possible to enable noscript for 24 hours at a time until March&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://m365admin.handsontek.net/remove-custom-script-setting-in-onedrive-and-sharepoint-web/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Microsoft Graph SharePoint APIs now supports delegated Sites.Selected authentication&lt;/h2&gt;
&lt;p&gt;SharePoint has since forever been very broad in their permissions scopes, however, back in 2022 we got an update &lt;a href=&quot;https://blog.dan-toft.dk/2022/12/sites-selected-permissions/&quot;&gt;that allowed us to scope application permissions&lt;/a&gt; - now that&amp;#39;s more important with application permissions, but maybe you have an app that uses delegated permissions (where the app acts on behalf of the user) you&amp;#39;re now able to limit the apps permissions to a few select sites, this is great for those cases where you might have access to a site, but don&amp;#39;t want your email archive app to be able to read data in your HR site.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/sharepoint-now-supports-delegated-sites-selected-authentication&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SharePoint Premium Translations&lt;/h2&gt;
&lt;p&gt;Honestly, I have no words, this is just cool! - using generative AI, you&amp;#39;re now able to translate files stored in SharePoint to over 100 languages, just simply right click the file and select translate, choose your language, and it&amp;#39;s off to the races! - all it takes is a SharePoint Premium subscription&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/sharepoint-premium-blog/sharepoint-premium-translation-now-generally-available/ba-p/4055393&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Show hide buckets in Microsoft lists board view&lt;/h2&gt;
&lt;p&gt;This is a very minor change, but ever since the launch of the Board view in Microsoft lists I&amp;#39;ve heard the same request from every one of my clients that use the feature!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Can we hide xyz bucket&amp;quot;&lt;/em&gt; - well now you can, I love these kinds of updates, very minor change, but very big impact to the users.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/aaclage/status/1760650737065848915&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Viva Topics retirement&lt;/h2&gt;
&lt;p&gt;Viva Topics is going to be retired on February 22, 2025 - I don&amp;#39;t particularly like this, viva topic is a really cool concept allowing you to organize organizational knowledge, well Microsoft believes so much in Gen-AI that they&amp;#39;re retiring topics in favor of Gen-AI.&lt;/p&gt;
&lt;p&gt;Time will tell if this was a good idea - I have my opinions.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/microsoft-365/topics/changes-coming-to-topics?view=o365-worldwide&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Microsoft Lists in SharePoint new layout&lt;/h2&gt;
&lt;p&gt;Another minor change that caused a lot of stir in my various channels was the updates to SharePoint lists that finally started to roll out, we saw this a bit last summer on some targeted release tenants, but that for whatever reason started to roll back about as fast as it had appeared.&lt;/p&gt;
&lt;p&gt;This new layout is more like what we&amp;#39;re used to from Microsoft lists, with more icons, and more space - and views now being tabs - I personally really like this change, but I have heard a bit of fuzz about some things, like view formatting breaking a bit, but I&amp;#39;m sure that&amp;#39;ll all be ironed out in the coming weeks.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-ww/microsoft-365/roadmap?filters=&amp;searchterms=124867&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;The Microsoft cloud is as always moving full steam headed! - and we&amp;#39;re not going to see that slow down any time soon, and as much as I hate the phrase 2024 really does look to be the year of AI!&lt;/p&gt;
&lt;p&gt;With that said, it&amp;#39;s obvious that Microsoft still has a huge focus on those small value things like the performance of Microsoft lists - it&amp;#39;s awesome to see they haven&amp;#39;t lost their focus!&lt;/p&gt;
</content:encoded></item>
<item><title>Web Parts not loading for guests on mobile</title><link>https://blog.dan-toft.dk/2024/02/web-parts-loading-guests-mobile/</link><pubDate>Mon, 19 Feb 2024 21:04:03 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/02/web-parts-loading-guests-mobile/</guid><description>Sometimes you have those issues where you’ll forever be scratching your head wondering what is going on, and this was one of those times.</description><enclosure url="https://blog.dan-toft.dk/2024/02/web-parts-loading-guests-mobile/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;So the other day a colleague of mine had what I can only describe as one of the weirdest issues I&amp;#39;ve ever seen in my years of working with SharePoint, so here&amp;#39;s a blog-post with the only purpose being I&amp;#39;ll find it next time I&amp;#39;m having the same issue.&lt;/p&gt;
&lt;p&gt;We had an issue where some users were reporting a web part not loading on mobile, oh well might be something with the responsiveness of the web part, just some CSS error, right?&lt;/p&gt;
&lt;p&gt;Well, as it turned out, no - they got the &amp;quot;blue text&amp;quot; error, that every SPFx dev will know&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2024/02/web-parts-loading-guests-mobile/2.webp&quot; alt=&quot;Blue text error&quot;&gt;&lt;/p&gt;
&lt;p&gt;Reading the message ... wait what? - the user can&amp;#39;t access the SPFx web part assets? - but why? - it works when the same user is on a desktop, and it works for other users on mobile, even our account, so what&amp;#39;s going on?&lt;/p&gt;
&lt;h2&gt;The issue&lt;/h2&gt;
&lt;p&gt;It turns out the issue is only happening to guest users, okay, that&amp;#39;s why we can&amp;#39;t reproduce it, let&amp;#39;s get ourselves a guest account and try again.&lt;/p&gt;
&lt;p&gt;&amp;quot;Awesome&amp;quot; we can now reproduce the issue, what&amp;#39;s interesting is that it&amp;#39;s also happening on PC if I use the browsers devtools to shrink the window to a mobile size, so it seems to be related to screen size and guest users 🤔&lt;/p&gt;
&lt;h2&gt;The solution&lt;/h2&gt;
&lt;p&gt;After some more digging we noticed some &lt;code&gt;200 OK&lt;/code&gt; request for &lt;code&gt;_layouts/15/AccessDenied.aspx&lt;/code&gt; to the app catalog, and those weren&amp;#39;t there when doing it with desktop layout.&lt;/p&gt;
&lt;p&gt;As little sense as this made it turned out that external sharing was disabled on the App Catalog Site Collection, and that the guest were given access via an Entra Security Group, and that group was not given access to the App Catalog Site Collection.&lt;/p&gt;
&lt;p&gt;Turns out those permissions are handled differently on mobile vs desktop, and that&amp;#39;s why it was only happening on mobile.&lt;/p&gt;
&lt;p&gt;Arguably there&amp;#39;s a bug here, given that the users could access a Web Part that they shouldn&amp;#39;t have access to - but that&amp;#39;s a different story. &lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Check if you have disabled external access to the app catalog.&lt;/p&gt;
</content:encoded></item>
<item><title>The mystery of isprovisioningComplete</title><link>https://blog.dan-toft.dk/2024/02/mystery-isprovisioningcomplete/</link><pubDate>Thu, 08 Feb 2024 14:24:17 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/02/mystery-isprovisioningcomplete/</guid><description>Have you ever been provisioning SharePoint sites, and wondered why you’ll sometimes bump into random errors?</description><enclosure url="https://blog.dan-toft.dk/2024/02/mystery-isprovisioningcomplete/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;If you&amp;#39;ve ever been provisioning SharePoint sites you might&amp;#39;ve wondered why when using SDKs like &lt;a href=&quot;https://pnp.github.io/pnpframework/using-the-framework/readme.html&quot;&gt;PnP.Framework&lt;/a&gt; or &lt;a href=&quot;https://pnp.github.io/pnpcore/&quot;&gt;PnP Core&lt;/a&gt; creating a site seemingly takes ~45 seconds, but why is that? - when the user presses the create site button in the SharePoint UI it&amp;#39;s done in a few seconds.&lt;/p&gt;
&lt;h2&gt;The SPSiteManager API&lt;/h2&gt;
&lt;p&gt;My initial thought was that the SharePoint UI was doing something special, so I did a bit of digging, and what I found was that to my surprise the SharePoint UI uses the &lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/apis/site-creation-rest&quot;&gt;SPSiteManager API&lt;/a&gt; - alright, that&amp;#39;s a publicly documented API, so I should be able to use that too, right? - this should be a quick PR to the PnP SDKs and boost that performance for everyone 🎉&lt;/p&gt;
&lt;h2&gt;The mystery of isprovisioningComplete&lt;/h2&gt;
&lt;p&gt;Well then looking at the PnP.Framework source code, it&amp;#39;s already using the &lt;a href=&quot;https://github.com/pnp/pnpframework/blob/42b9bcb5978b776b8de17ee4066e80edc160e0a5/src/lib/PnP.Framework/Sites/SiteCollection.cs#L643&quot;&gt;SPSiteManager API&lt;/a&gt;, welp then, why is it then slow? 🤔&lt;/p&gt;
&lt;p&gt;After a bit more digging (okay, maybe more like scrolling a few more lines and reading the code) - I found that the SDKs are repeatedly querying the sites web object, and checking the status of &lt;code&gt;isprovisioningComplete&lt;/code&gt;, a boolean value, but what is it? - what does it do?&lt;/p&gt;
&lt;p&gt;Well, I&amp;#39;ve seen it in the past, but never really cared, cause it wasn&amp;#39;t in my way, but now it is, doing a quick google search (I even tried Bing) basically gave me nothing, so I had to dig deeper.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2024/02/mystery-isprovisioningcomplete/2.webp&quot; alt=&quot;My google search results page&quot;&gt;&lt;/p&gt;
&lt;h2&gt;What now?&lt;/h2&gt;
&lt;p&gt;Well as I didn&amp;#39;t really get any good results from my search, I got desperate, and took to &lt;a href=&quot;https://twitter.com/tanddant/status/1754874488049500560&quot;&gt;X&lt;/a&gt;, where the lovely &lt;a href=&quot;https://twitter.com/vesajuvonen&quot;&gt;Vesa&lt;/a&gt; came to the rescue with some real insight, and not just guessing, like what I had been doing up until now.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/vesajuvonen/status/1754971545208844453&quot;&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2024/02/mystery-isprovisioningcomplete/3.webp&quot; alt=&quot;Vesa&amp;#39;s tweet&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Well then, as it turns out, there might be a very good reason for you to wait for the site to be done creating, as things might not work as expected if you don&amp;#39;t.&lt;/p&gt;
&lt;p&gt;But in my particular case, I was planning to do a combination of creating a site with a site design, and then use PnP Provisioning to create a few site pages, as the Graph site pages API still was a bit new for this solution.&lt;/p&gt;
&lt;p&gt;So I managed to take my provisioning time from 48 seconds to create a site, and then 15-20 seconds to apply the template to a total of 25 seconds.&lt;/p&gt;
&lt;h2&gt;Doing it with PnP.Framework&lt;/h2&gt;
&lt;p&gt;This was how I was creating my site before:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;// 48386ms
var site = await new SiteCollection(web).AddAsync(new SiteCollectionCreationInformation
{
    Title = &amp;quot;My new site&amp;quot;,
    Url = &amp;quot;mynewsite&amp;quot;,
    Description = &amp;quot;My new site&amp;quot;,
    Lcid = 1033,
    Template = &amp;quot;STS#3&amp;quot;,
    Owner = &amp;quot;owner@tenant.com&amp;quot;
});
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What I found just reading through the source code was that the awesome folk who built the SDKs had already thought about this, and added a &lt;code&gt;noWait&lt;/code&gt; parameter to the &lt;code&gt;Create&lt;/code&gt; method, so I could just do this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;// 2341ms
var site = await new SiteCollection(web).AddAsync(new SiteCollectionCreationInformation
{
    Title = &amp;quot;My new site&amp;quot;,
    Url = &amp;quot;mynewsite&amp;quot;,
    Description = &amp;quot;My new site&amp;quot;,
    Lcid = 1033,
    Template = &amp;quot;STS#3&amp;quot;,
    Owner = &amp;quot;owner@tenant.com&amp;quot;
}, noWait: true);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What a difference, but of course, beware that this doesn&amp;#39;t mean you&amp;#39;ve just shortened your provisioning time to nearly nothing - cause you might still have some issues adding content types, or other things, but from my experience adding site pages didn&amp;#39;t cause an issue, so what I ended up doing was extracting the &lt;a href=&quot;https://github.com/pnp/pnpframework/blob/50ca2aa0b6717adc6cc7b8c6cf9029eacbf7b1b8/src/lib/PnP.Framework/Sites/SiteCollection.cs#L819C8-L819C56&quot;&gt;&lt;code&gt;WaitForProvisioningIsComplete&lt;/code&gt;&lt;/a&gt; method, and called that in my own code after I had added the pages, but before I started working with content types.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re using PnP.Framework or PnP Core to create SharePoint sites, and you&amp;#39;re wondering why it&amp;#39;s slow, it&amp;#39;s because it&amp;#39;s waiting for the site to be done creating, to give you the best experience, you can speed it up by skipping that step using the &lt;code&gt;noWait&lt;/code&gt; parameter, but beware that you might still have to wait for some things to be done, to not have funky behavior so be careful.&lt;/p&gt;
&lt;p&gt;In conclusion: The &lt;code&gt;isprovisioningComplete&lt;/code&gt; is actually named pretty intuitively, it tells you if the site is done provisioning, who would&amp;#39;ve thought?  🤷‍♂️&lt;/p&gt;
</content:encoded></item>
<item><title>January in M365</title><link>https://blog.dan-toft.dk/2024/01/january-m365/</link><pubDate>Mon, 29 Jan 2024 20:13:28 +0000</pubDate><guid>https://blog.dan-toft.dk/2024/01/january-m365/</guid><description>My first month as an MVP, plus the big Copilot for M365 GA and Copilot Pro launch, custom fonts on the roadmap, WordPad’s retirement, Teams meeting upgrades and Power Apps user defined functions.</description><enclosure url="https://blog.dan-toft.dk/2024/01/january-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;January held some personal achievements for me! - &lt;a href=&quot;https://linkedin.com/posts/dan-toft_mvpbuzz-activity-7150406803472691201-r8aS/&quot;&gt;I was awarded the Microsoft MVP award for the first time&lt;/a&gt;, which is a huge honor and I still can&amp;#39;t quite believe it, I still haven&amp;#39;t quite had the time to process it, as I&amp;#39;m in the middle of a move on the home-front, but once that&amp;#39;s over I&amp;#39;ll be back at full steam and I&amp;#39;m looking forward to it!&lt;/p&gt;
&lt;p&gt;Now let&amp;#39;s get to looking at what&amp;#39;s happened in the M365 space in January!&lt;/p&gt;
&lt;h2&gt;Copilot for all!&lt;/h2&gt;
&lt;p&gt;For what felt like a &lt;em&gt;very&lt;/em&gt; long time (but was actually only a few months), Copilot for Microsoft 365 was only available to a select few, those who were able to purchase 300 licenses.&lt;/p&gt;
&lt;p&gt;That however all changed on january 15th, when Microsoft announced that Copilot for Microsoft 365 would be available to all to purchase, at the same time they announced Copilot Pro, a Copilot for the consumer market, brining that amazing Chat-GPT integration in the office apps to everyone for just USD$20/month - which if you&amp;#39;re already paying for OpenAI, is a steal, if not, well yeah, it might be a bit steep, but I don&amp;#39;t see a future where knowledge workers don&amp;#39;t have access to something like this.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got a license myself, and while I&amp;#39;m not impressed with it&amp;#39;s performance, part of that seems to be related to the fact at most of the information on our production tenant is in Danish, which Copilot doesn&amp;#39;t yet support.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://blogs.microsoft.com/blog/2024/01/15/bringing-the-full-power-of-copilot-to-more-people-and-businesses/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Custom fonts on the roadmap&lt;/h2&gt;
&lt;p&gt;All the way back at M365 conference last year, we were promised the possibility to &amp;quot;bring your own fonts&amp;quot; to SharePoint, and now it&amp;#39;s finally on the roadmap, and it&amp;#39;s coming in March 2024, how awesome is that!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=Rolling%20out%2CIn%20development&amp;searchterms=375490&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;WordPad retirement&lt;/h2&gt;
&lt;p&gt;After 30 years of service, the WordPad app has been removed from the latest Windows 11 Insider builds, and will probably be removed from the final release as well at some point, but honestly with the latest updates to Notepad, I don&amp;#39;t think anyone will miss it, tabs and dark mode was all I ever wanted!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://gizmodo.com/microsoft-wordpad-gone-windows-11-1851144100&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to the Website tab in the new Teams client&lt;/h2&gt;
&lt;p&gt;This is the first time I&amp;#39;ll ask all you IT-admins to open your message center, find a message, and down-vote it &lt;code&gt;mc708500&lt;/code&gt; is one of those announcements that really sits wrong with me, a change is coming to teams, when you press a webpage tab in Teams today, it opens inside the Teams app, however from april an forward on that will no longer be the case, and it&amp;#39;ll instead open in a browser.&lt;/p&gt;
&lt;p&gt;I get why Microsoft does this, as loads of websites don&amp;#39;t properly authenticate in the teams tab, but honestly it just kinda &amp;quot;throws ofF&amp;quot; the integration, and the feeling of teams being the &amp;quot;one stop app&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://app.cloudscout.one/evergreen-item/mc708500/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Teams meeting enhancements&lt;/h2&gt;
&lt;p&gt;Teams meetings is one of those things we&amp;#39;ve all been spending a whole lot more time doing in recent years - so any update that improves the experience is a welcome one, and this month we got a few of those.&lt;/p&gt;
&lt;p&gt;First of a change in the grid view, where the grid now shows everyone as equals, even if they don&amp;#39;t have a camera on, making it so that those without a camera on are no longer second class citizens.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s also some minor changes to the invite email to improve usability of those, and lastly there&amp;#39;s a new waaaay more streamlined way to change which audio device you&amp;#39;re using, which is a welcome change, as the old way was a bit cumbersome, and often hard to explain to someone on the other end of a call who&amp;#39;s not that tech savvy.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2024/01/january-m365/2.webp&quot; alt=&quot;New audio device selector&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-teams-blog/new-year-new-meeting-enhancements-in-microsoft-teams/ba-p/4034799&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Teams hide general channel&lt;/h2&gt;
&lt;p&gt;This is a very simple but very welcome change to teams, simply the option to hide the general channel in a team, something I&amp;#39;ve had people ask me for literally since I started working in this space!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/sarafennah_microsoftteams-activity-7155467367676825604-_mMe/?utm_source=share&amp;utm_medium=member_android&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Power Apps User Defined Functions&lt;/h2&gt;
&lt;p&gt;When doing &amp;quot;pro-code&amp;quot; programming we&amp;#39;ll often talk about functions, and the awesome reusability of them, this is a change that&amp;#39;ll let you write your own functions in Power Apps, and reuse them across your app, which is a huge step forward in the &amp;quot;low-code&amp;quot; space, and something I&amp;#39;m really looking forward to trying out! - anything that minimizes code duplication is a win in my book!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.matthewdevaney.com/power-apps-user-defined-functions-write-code-once-and-reuse/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Microsoft Lists - Drag to order list items&lt;/h2&gt;
&lt;p&gt;This one unfortunately doesn&amp;#39;t have a ton of information on what or how it&amp;#39;ll work, but from the sound of it, it&amp;#39;s a very welcome feature, and something people have been requesting since the dawn of time! - the option to drag an item in a SharePoint list and reorganize the list, how awesome is that!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=Rolling%20out%2CIn%20development&amp;searchterms=380183&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft is finally releasing the beast with Copilot for Microsoft 365, and it&amp;#39;s availability to everyone, but also keeps at it for improving all the other amazing products in the platform, and I&amp;#39;m really looking forward to what 2024 has in store for us, not just in terms of AI, but also in terms of the other products in the platform, and how they&amp;#39;ll evolve.&lt;/p&gt;
</content:encoded></item>
<item><title>December in M365</title><link>https://blog.dan-toft.dk/2023/12/december-m365/</link><pubDate>Fri, 22 Dec 2023 12:53:57 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/12/december-m365/</guid><description>ESPC is over, the holidays are coming, and the year is almost over. let’s take a look a the last month of the year. What’s new in M365.</description><enclosure url="https://blog.dan-toft.dk/2023/12/december-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;The holidays are here, and 2023 is coming to and end, and what a year it&amp;#39;s been! - I had a blast finishing off the year at ESPC in Amsterdam at the end of november, we&amp;#39;ll touch on some of the stuff from there in this post, but mostly we&amp;#39;ll focus on what&amp;#39;s going on in the M365 space headed into 2024. - Let&amp;#39;s get started!&lt;/p&gt;
&lt;h2&gt;SharePoint embedded&lt;/h2&gt;
&lt;p&gt;&lt;del&gt;Repository services (RAAS)&lt;/del&gt;, &lt;del&gt;SharePoint/Microsoft Syntex Repository services&lt;/del&gt;, &lt;del&gt;SharePoint Premium Repository services&lt;/del&gt;, or as it&amp;#39;s now called SharePoint Embedded, was announced to have entered public preview at ESPC.&lt;/p&gt;
&lt;p&gt;Now if you&amp;#39;re scratching your head, and none of those names ring a bell, you&amp;#39;re not alone, this is a product that I&amp;#39;ve been highly excited about for the past year, but it&amp;#39;s not something that&amp;#39;ll change the world for end users.&lt;/p&gt;
&lt;p&gt;Instead the focus here very much is on the dev side of the table, essentially what this is, is SharePoint without a user interface, so we as devs can get all the benefits of SharePoints file handling, from Co-authoring, Versioning, Permissions, Retention policies, and so on, but without any UI, so we can essentially build an app that looks just the way we want it to.&lt;/p&gt;
&lt;p&gt;This is brilliant if you&amp;#39;re an ISV, building a solution that stores files, as you&amp;#39;ll now be able to store those files in your customers tenants, and not have to worry about who&amp;#39;s storing the data.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/12/december-m365/2.webp&quot; alt=&quot;SharePoint Embedded&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/embedded/overview&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;OneDrive web app offline availability&lt;/h2&gt;
&lt;p&gt;For years now we&amp;#39;ve had the OneDrive sync client, that worked &amp;quot;fine&amp;quot;, but it always had the limitations of using explorer as it&amp;#39;s primary way of working with content.&lt;/p&gt;
&lt;p&gt;Now with Microsofts push towards making OneDrive it&amp;#39;s &amp;quot;file explorer&amp;quot; for the web, the option to install the OneDrive Web app as an &amp;quot;offline&amp;quot; app just makes sense.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/onedrive-offline?WT.mc_id=M365-MVP-5004242&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Graph CLI v 1.0.0&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve tried to call Graph from a command-line tool before, I&amp;#39;m sure you&amp;#39;ve run into either having to type the full url yourself, or only being able to call a small subset of endpoints, well no more, Microsoft has released a new CLI tool &amp;quot;Microsoft Graph CLI v1.0.0&amp;quot; - with the depreciation of more and more legacy APIs this is a very welcome change! - it’s just easier to test out new APIs via a CLI tool, than it is to write a full app only to realize that you can&amp;#39;t get the date they way you thought.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also interested in seeing some of the automations that I&amp;#39;m sure the community will come up with, using this!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/microsoft-graph-cli-v1-0-0-is-now-generally-available/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;WebDav deprecation in windows&lt;/h2&gt;
&lt;p&gt;I&amp;#39;m sure that title means nothing to 95% of you, but it might still be worth paying attention, if you&amp;#39;re accessing SharePoint in your file explorer, and you&amp;#39;re not using the OneDrive sync client, there&amp;#39;s a good chance you&amp;#39;re using WebDav, it&amp;#39;s the tech behind the good old &amp;quot;Open in Explorer&amp;quot; button in SharePoint.&lt;/p&gt;
&lt;p&gt;Now as of windows 11 23H2 this feature is going to be default disabled, and I&amp;#39;m guessing we&amp;#39;ll see it being completely gone within a few short years, it&amp;#39;s time to move to OneDrive sync!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://petri.com/microsoft-deprecates-features-windows-11/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;First party E-signatures&lt;/h2&gt;
&lt;p&gt;It&amp;#39;s been announced a while back that SharePoint Premium (&lt;del&gt;Microsoft/SharePoint Syntex&lt;/del&gt;) would be getting DocuSign and Adobe sign integrations, which in and off it self was awesome, however what Microsoft recently announced is that they&amp;#39;ll be building a first party eSignature solution, while it&amp;#39;ll still be a Pay-As-You-Go service, having every thing first party is pretty neat! - and it should be available to US customers already, with the rest of the world following in 2024.&lt;/p&gt;
&lt;p&gt;I kno I&amp;#39;m looking forward to trying this out!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SuperSimple365/status/1728817687608938544&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Deprecation of SharePoint add-ins&lt;/h2&gt;
&lt;p&gt;This is something that will inevitably affect a lot of enterprises, and I know loads of people will be very frustrated with it.&lt;/p&gt;
&lt;p&gt;Microsoft has announced the retirement of the SharePoint Add-in model - now I would say that no one should&amp;#39;ve been building any add-ins in the past 5 years, and I&amp;#39;m pretty sure there are people at Microsoft who would agree with me on that statement.&lt;/p&gt;
&lt;p&gt;However there are still a lot of add-ins out there, some might&amp;#39;ve been built in house years and years ago, others from ISVs who&amp;#39;re no longer around, now is the time to start planning how you&amp;#39;re going to be migrating off of them.&lt;/p&gt;
&lt;p&gt;The timeline for this is as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;March 1st, 2024 - No new add-ins can be submitted to the store&lt;/li&gt;
&lt;li&gt;July 1st, 2024 - No new add-ins can be installed from the store&lt;/li&gt;
&lt;li&gt;November 1st, 2024 - Any new tenants created after this day will not have the ability to install add-ins&lt;/li&gt;
&lt;li&gt;April 2nd, 2026 - All add-ins will stop working.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;My only concern with this, which I&amp;#39;ve been fairly public about is the removal of Remote event Receivers (ReR), currently this is the only way to block list item creation at an API level, and it&amp;#39;s the only way to know instantly when an item has been created, Webhooks are the only alternative, but they&amp;#39;re not instant, they do have better error handling, so that&amp;#39;s a pros and cons situation.&lt;/p&gt;
&lt;p&gt;Also there&amp;#39;s some features that can still only be done with ACS, such as updating certain aspects of user profiles ... hopefully we&amp;#39;ll see Graph APIs, or the deprecation of user profiles before 2026.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/retirement-announcement-for-add-ins&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Updates to the authoring experience in SharePoint&lt;/h2&gt;
&lt;p&gt;All the way back in spring at &lt;a href=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/#m365-conference&quot;&gt;M365 conf&lt;/a&gt; we saw a ton of cool announcements for what the future of SharePoint is going to look like, and now we&amp;#39;re starting to see some of those features roll out.&lt;/p&gt;
&lt;p&gt;Some of the features that&amp;#39;ve started to roll out are the advanced image editor tool, and the new page templates, the ability to send news posts as an email.&lt;/p&gt;
&lt;p&gt;And very soon we&amp;#39;ll start to see the Co-authoring experience, and Copilot in SharePoint as well! - and what I&amp;#39;m perhaps looking forward to the most is the brand center, and the overhaul of SharePoint page layouts as a whole, that would be coming very soon!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-sharepoint-blog/sharepoint-roadmap-update-fall-2023/ba-p/3994596&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Teams app test tool&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve ever built a teams app, you&amp;#39;ll know that there&amp;#39;s a high amount of friction to get started, and to debug it, Microsoft has heard our cries, and has released a new tool to help us out!&lt;/p&gt;
&lt;p&gt;The Teams app test tool is essentially a local version of teams, that you can use to test your apps, and debug them, it&amp;#39;s still fresh off the press, but it&amp;#39;s already looking very promising, I love the idea of being able to test my apps locally, and being able to test them without having permissions to install them in my tenant.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m just looking forward to the Teams Toolkit integration with this!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/introducing-teams-app-test-tool/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Message extensions in Outlook goes GA&lt;/h2&gt;
&lt;p&gt;A while back MS announced a preview of a feature that would let you bring your teams message extensions into Outlook for things like link unfurling, that has now gone GA, and is available for everyone to use!&lt;/p&gt;
&lt;p&gt;The idea being that when you paste a specific type of link you can render some custom UI, the same way that when you link someone to this blog post a preview of the post shows up, except with message extensions, these can be way more dynamic.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/link-unfurling-and-search-based-message-extensions-in-outlook-now-generally-available/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Clipchamp premium&lt;/h2&gt;
&lt;p&gt;A while back Microsoft announced that we would have Clipchamp in M365, we&amp;#39;ve started to see that show up here and there, for instance in SharePoint document libraries, now Microsoft has pulled a classic Microsoft move, and announced that there will be a premium tier.&lt;/p&gt;
&lt;p&gt;The things that&amp;#39;re going to be &amp;quot;locked down&amp;quot; are the ability to export videos in 4k, &amp;quot;brand kit&amp;quot; features that allows your company to create a &amp;quot;kit&amp;quot; of colors, fonts, and so on to use, some premium stock content, and some advanced analytics with stream.&lt;/p&gt;
&lt;p&gt;So most people should be more than good with the free tier!&lt;/p&gt;
&lt;p&gt;Initially the premium SKU will be priced at USD $5/month, but will increase to USD $7 after June 30th 2024. (as add-on to M365 licenses)&lt;/p&gt;
&lt;p&gt;Honestly it seems reasonable enough to me, I&amp;#39;m sure the 4k export takes a lot of processing power on the back end, and stock content can get expensive.&lt;/p&gt;
&lt;p&gt;It&amp;#39;ll also be available without Microsoft 365, the full prices are as follows:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Intro Price&lt;/th&gt;
&lt;th&gt;Regular Price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Clipchamp Premium (add-on to Microsoft 365)&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;$7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clipchamp Standard (standalone)&lt;/td&gt;
&lt;td&gt;$3&lt;/td&gt;
&lt;td&gt;$3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clipchamp Premium (standalone)&lt;/td&gt;
&lt;td&gt;$7&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-365-blog/new-create-videos-and-images-at-work-with-clipchamp-and-designer/ba-p/3981574&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SharePoint API Resource Specific Consent&lt;/h2&gt;
&lt;p&gt;This is a small thing, but something that&amp;#39;s been a long time coming, and something that I&amp;#39;m very happy to see!&lt;/p&gt;
&lt;p&gt;In SharePoint it used to be that our Permission Scope what &lt;code&gt;Sites.ReadWrite.All&lt;/code&gt; or &lt;code&gt;Sites.Read.All&lt;/code&gt;, which meant that you would&amp;#39;ve access to the entire tenant, now about a year ago I wrote a blog posts on the &lt;a href=&quot;https://blog.dan-toft.dk/2022/12/sites-selected-permissions/&quot;&gt;&lt;code&gt;Sites.Selected&lt;/code&gt; permission&lt;/a&gt; scope, which allowed you to scope down to a specific site, but it still gave you access to all the content on that site.&lt;/p&gt;
&lt;p&gt;Now we&amp;#39;re going to be seeing even more granular permissions, which is something client are more and more focused on, and it&amp;#39;s awesome to see Microsoft moving in that direction.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SPoint_Stuff/status/1733517079947391366?t=EoSXZFB_Hi1c4PVU4u2A0w&amp;s=19&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Archive teams channels&lt;/h2&gt;
&lt;p&gt;This is a feature that just makes sense! - how many times have you been in a team, had a channel that was no longer relevant? - but you didn&amp;#39;t want to delete it, because you might need some of the info in there later, well starting in January you&amp;#39;ll be able to archive channels.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not yet seen any info on what&amp;#39;s going to happen to things like the SharePoint folder that&amp;#39;s created for the channel, but I&amp;#39;m guessing it won&amp;#39;t be moved to a read-only state, so if you know your way around you might still be able to make edits.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_microsoftteams-activity-7139516651812589568-ASl5/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Viva Connections call APIs from built in designer&lt;/h2&gt;
&lt;p&gt;For a very long time now, the default Viva Connections Adaptive card designer has been very limited, in that it couldn&amp;#39;t access any data, just whatever JSON data you put in there, well that&amp;#39;s about to change!&lt;/p&gt;
&lt;p&gt;With the updated designer you&amp;#39;ll be able to make call not only to SharePoint, but also Microsoft Graph, this means you&amp;#39;ll be able to fetch any data in your tenant! - unfortunately it&amp;#39;s still not possible to make several chained calls, but it&amp;#39;s a start! - maybe we&amp;#39;ll see the option to do that in the future, perhaps using Power Automate to fetch our data, and then calling that flow from the designer.&lt;/p&gt;
&lt;p&gt;This is honestly something I had been wanting to make an SPFx sample for eventually, but never got around to, so I&amp;#39;m very happy to see Microsoft taking the default Adaptive card designer to the next level!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: you&amp;#39;ll need to enable this with a setting on tenant level using PowerShell&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-powershell&quot;&gt; Set-SPOTenant -IsDataAccessInCardDesignerEnabled $true
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/viva-connections-blog/introduction-to-new-advance-api-features-in-viva-connections/ba-p/4007954&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Delve Retirement&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve been around in this space for longer than I have, you might remember when delve was introduced, and the headaches it caused for a lot of people, who had no clue what governance was, and thought that if they just hid content it would be all good.&lt;/p&gt;
&lt;p&gt;Well on december 16th 2024, Delve will be retired, I&amp;#39;m honestly split on this one, Delve is a great concept, but with the people card in M365 it&amp;#39;s not really needed anymore, and it&amp;#39;s not like it&amp;#39;s been getting any love from Microsoft in the past few years.&lt;/p&gt;
&lt;p&gt;So I think I&amp;#39;m happy to see it go, I would rather see people move towards tools like Viva Engage for that &amp;quot;this is me&amp;quot; experience - especially with the new &amp;quot;personal timelines&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/kevmcdonnell_rip-delve-you-showed-us-the-magic-that-activity-7140954565868245012-jJKC&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to Power Query &lt;strong&gt;ATTENTION ADMINS&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;This is a important change, or well sorta, the important part is really just that you keep all your machines updated, but it&amp;#39;s still worth mentioning, because I know that there&amp;#39;s loads of people out there who might be running an old script or excel file on an old machine out there.&lt;/p&gt;
&lt;p&gt;But starting March 11th, 2024, you&amp;#39;ll need to ensure that your machines that use Power Query have &amp;quot;Microsoft Edge WebView2 framework&amp;quot; installed, and that all your data sources support at least TLS 1.2.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://petri.com/microsoft-changelog/m365-changelog-action-required-changes-to-get-transform-data-aka-power-query-features-in-excel/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;GPT-4 Turbo with Vision is now available on Azure OpenAI Service&lt;/h2&gt;
&lt;p&gt;The GPT-4 Turbo model with vision has now been released on Azure OpenAI service, this is a very powerful model, that we can use to do things such as OCR, and image captioning, price wise it&amp;#39;ll be more expensive than the GPT-3 model, but it&amp;#39;s also a lot more powerful.&lt;/p&gt;
&lt;p&gt;Unfortunately it&amp;#39;s still locked down behind the preview wall, and you&amp;#39;ll need to request access to it, but it&amp;#39;s still very cool to see this being available on Azure!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/gpt-4-turbo-with-vision-is-now-available-on-azure-openai-service/ba-p/4008456&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;It feels like Microsoft is preparing for the age of AI by deprecating a lot of old tech, and I&amp;#39;m digging it, while it&amp;#39;s highly frustrating to see things like ReRs go away, it&amp;#39;s also good to know that that&amp;#39;ll lead to more resources available internally for future development of new features.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m personally really looking forward to what 2024 has to offer, and I&amp;#39;m sure we&amp;#39;ll see loads of cool AI stuff coming!&lt;/p&gt;
&lt;p&gt;That&amp;#39;ll be the last blog post of the year from me, so happy holidays and a great new year to all of you out there, and I&amp;#39;ll see you in 2024! 🎉&lt;/p&gt;
</content:encoded></item>
<item><title>November in M365</title><link>https://blog.dan-toft.dk/2023/11/november-m365/</link><pubDate>Sun, 19 Nov 2023 19:09:01 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/11/november-m365/</guid><description>Ignite might’ve been all the rave, but what else happened in November?</description><enclosure url="https://blog.dan-toft.dk/2023/11/november-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;This months post is a bit early, as I&amp;#39;m headed off to ESPC for the last week of november, and I know for a fact I won&amp;#39;t have time to write it then, but loads of stuff happened in November, especially around ignite - so let&amp;#39;s get started.&lt;/p&gt;
&lt;h2&gt;Show declined meetings in Outlook&lt;/h2&gt;
&lt;p&gt;This one is one of those things that has been frustrating to me ever since I became an adult and started to use calendars, why is it that when I decline a meeting I have no way to &amp;quot;re-find&amp;quot; that event, sure I can look in my deleted messages, but realistically I&amp;#39;m not going to do that.&lt;/p&gt;
&lt;p&gt;When this is particularly awesome is, when you have that meeting where you declined, because maybe you had a dentist appointment, it&amp;#39;s now 8am on the day, your dentists office calls, your dentist is sick, now being able to see all the meetings you had declined, and perhaps even still join them is awesome!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/outlook-blog/show-declined-events-on-the-calendar/ba-p/3958648&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Graph - The end of OneDrive and SharePoint search endpoints&lt;/h2&gt;
&lt;p&gt;Microsoft 365 Search has been all the rage for the past few years, creating confusion for devs all over the world, which endpoint should I choose? - SharePoint or Microsoft search?&lt;/p&gt;
&lt;p&gt;Well Microsoft has made that choice way easier, by announcing that the SharePoint and OneDrive search endpoints will no longer be receiving updates, instead you should use the Microsoft 365 Graph search endpoint.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/transition-to-microsoft-graph-search-endpoint-for-onedrive-and-sharepoint/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Custom user properties on persona cards&lt;/h2&gt;
&lt;p&gt;For a few years now we&amp;#39;ve been able to update our persona cards, and add custom properties, but always only using the Graph Beta endpoint, well now it&amp;#39;s finally GA!&lt;/p&gt;
&lt;p&gt;You can use the OnPremisesExtensionAttributes to add custom properties to your persona cards.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been having some issues doing it from SPFx &lt;a href=&quot;https://twitter.com/alexaterentiev/status/1723447400843432104&quot;&gt;due to the token audience&lt;/a&gt; - but it works great from the graph explorer.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/11/november-m365/2.webp&quot; alt=&quot;Custom user properties on persona cards&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/graph/add-properties-profilecard&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to workspace retention settings in Fabric and Power BI&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;BEWARE&lt;/strong&gt; - when you delete a workspace in Fabric or PowerBi, the current default retention is 30 days, in a upcoming update Microsoft will allow admins to change this to anywhere between 7 and 90 days.&lt;/p&gt;
&lt;p&gt;However, they&amp;#39;re setting the default to 7 for all tenants!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/_E0rflk_rSY?si=OS0BxvoJ4iLC7EfF&amp;t=1595&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Updates to User Profile Photos in Microsoft 365&lt;/h2&gt;
&lt;p&gt;User Profile Photos have always been a mystery to people (I even wrote a blog about it a &lt;a href=&quot;https://blog.dan-toft.dk/2023/11/november-m365/2023/04/uncovering-mysteries-missing-user-profile-images/&quot;&gt;while back&lt;/a&gt;) Microsoft has finally decided to &amp;#39;Fix the fundamentals&amp;#39;, this includes creating a single imaging service, instead of the current scenario, where SharePoint, Exchange, and teams all have their own.&lt;/p&gt;
&lt;p&gt;The goal is for new photos to be synced everywhere within 24 hours, currently it can take up to 30 days for teams to get updated.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=tvf9yAzPTRY&quot;&gt;See more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;New teams is coming to the web&lt;/h2&gt;
&lt;p&gt;We&amp;#39;ve been seeing more and more of the &amp;quot;new teams&amp;quot; client recently, and now it&amp;#39;s coming to the web as well, how awesome is that&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/ozoscroftx_microsoftteams-microsoft-activity-7126205072933285888-6nzN/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Teams chat in Outlook web&lt;/h2&gt;
&lt;p&gt;Not a ton of context is given in this roadmap item, but from the sounds of it, you&amp;#39;ll be able to chat with your teams contacts from Outlook web, this is awesome, the more I can stay in context the better&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&amp;searchterms=95601&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Archive teams channels&lt;/h2&gt;
&lt;p&gt;Currently you have the ability to hide channels, but no way to lock them down, this is changing, you&amp;#39;ll be able to archive channels, which will make them read only, and hide them from the channel list, this goes great with the upcoming M365 archive feature.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&amp;searchterms=123769&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Add individual file shortcuts in OneDrive&lt;/h2&gt;
&lt;p&gt;For a while now we&amp;#39;ve had the option to add shortcuts to folders, or favorite files, this is just another way to create a &amp;quot;link&amp;quot; to a file that you&amp;#39;ll be able to store in your OneDrive - having more options is always a good thing, now you&amp;#39;ll be able to move these shortcuts around, and organize them in folders, sorted in a way that makes sense to you.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_onedrive-activity-7126833082434740224-sscB&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;New Documents library templates&lt;/h2&gt;
&lt;p&gt;In recent time we&amp;#39;ve seen Microsoft do a huge push for templates, now we&amp;#39;re getting templates for document libraries, this is awesome, and will make it easier for users to understand the options that SharePoint provides.&lt;/p&gt;
&lt;p&gt;But beware, as &lt;a href=&quot;https://twitter.com/kasperbolarsen&quot;&gt;Kasper Larsen&lt;/a&gt; called out on &lt;a href=&quot;https://twitter.com/kasperbolarsen/status/1719976214700425593&quot;&gt;X&lt;/a&gt;, it&amp;#39;s not all roses, the templates do not utilize Site Columns, but rather list columns, making it harder to reuse the content types, and get them to play nicely in search.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_sharepoint-activity-7127920253690347521-lw_q&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Rich notifications for Outlook&lt;/h2&gt;
&lt;p&gt;As you might&amp;#39;ve heard, the Outlook REST api has been marked for deprecation, in favour for Graph, this of course means we need more and more features to be available in Graph, and now we&amp;#39;re getting rich notifications, what this essentially means is that you&amp;#39;ll be able to get more information with the notifications, where&amp;#39;s with the &amp;quot;traditional&amp;quot; notifications you&amp;#39;d get a very minimal amount of information, and then have to fetch the rest yourself.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/announcing-general-availability-of-outlook-rich-notifications-in-microsoft-graph/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Teams - Auto update to new Teams&lt;/h2&gt;
&lt;p&gt;A few months ago, we learned that Microsoft would GA the new teams client, and that they would eventually update all clients to the latests version, well now we have a date &lt;strong&gt;March 31st 2024&lt;/strong&gt; is the date!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://m365admin.handsontek.net/tag/mc686187/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to Project for the web license requirements&lt;/h2&gt;
&lt;p&gt;I have a bit of a hard time telling entirely what is in this roadmap item, but it seems like Microsoft is changing the licensing requirements for Project for the web, and allowing users with a M365 license to do some changes in Project, for instance marking tasks as completed, this is MEGA, I&amp;#39;ve worked with several clients where the license for project was the deal breaker, cause they wanted everyone to be able to do some changes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&amp;searchterms=186228&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;The new Microsoft Planner&lt;/h2&gt;
&lt;p&gt;The above change is awesome, but didn&amp;#39;t make much sense to me, but however in the light of other news it makes a ton more sense, Microsoft is merging all their &amp;#39;simple&amp;#39; task management tools, and creating a single app, &amp;#39;Planner&amp;#39; - which will now support the anything from your personal planner boards all the way up to project for the web projects, where you need a gantt chart, dependencies, and all that good stuff. - how neat is that!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://aka.ms/thenewplanner&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Microsoft Fabric goes GA&lt;/h2&gt;
&lt;p&gt;Fabric which is Microsofts data analysis tools package, announced back at build, it&amp;#39;s not a tool that I&amp;#39;m too familiar with, but if you&amp;#39;re a PowerBi consultant it&amp;#39;s for sure something I would take a look at&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/javier_vill/status/1724846296249319533/photo/1&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Mesh release date&lt;/h2&gt;
&lt;p&gt;Mesh, Microsofts take on the metaverse, that was the next big thing about a year ago, just before Chat-GPT launched and then promptly we all forgot what mesh was, it&amp;#39;s now finally releasing, virtual 3D rooms coming to teams, with a GA date of January 2024, finally - I&amp;#39;m honestly looking forward to playing with this, now sure I fully see the business case just yet, but maybe I&amp;#39;ll be sold after trying it!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-teams-blog/what-s-new-in-microsoft-teams-microsoft-ignite-2023/ba-p/3976670&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SharePoint Premium&lt;/h2&gt;
&lt;p&gt;Okay, so this seems like a bigger announcement then it is, SharePoint Premium is essentially just a new name for the current Syntex, that being said there are some really cool promises for the future, like the ability to write a description of what you want in a column, and just have Syntex parse the document and write whatever you asked for, a single teams app for &amp;quot;high-value&amp;quot; documents, and give you warnings before contracts expire, some impressive promises for better governance tools, and much more.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/11/november-m365/3.webp&quot; alt=&quot;Autofill column&quot;&gt;&lt;/p&gt;
&lt;p&gt;But for now I&amp;#39;m holding my breath, and waiting to see what the future brings.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/sharepoint-premium-blog/introducing-sharepoint-premium-the-future-of-ai-powered-content/ba-p/3981076&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Copilot studio&lt;/h2&gt;
&lt;p&gt;Power Virtual Agents are getting Copilot power, and a nice rebrand to Copilot studio, now with a focus on the ability for users to build their own &amp;quot;Copilots&amp;quot; - and using connectors integrate with 3rd party services, for instance if you want to build a integration to your HR system and make vacation requests, you&amp;#39;ll train a Copilot to do that using the Copilot studio.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/copilot/microsoft-copilot-studio&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;As always, Microsoft is really pushing the boundaries of what&amp;#39;s possible, and I&amp;#39;m really excited to see what the future brings, and I&amp;#39;m looking forward to playing with Mesh, and the new SharePoint Premium features.&lt;/p&gt;
&lt;p&gt;And how freaking awesome will the new planner app be!&lt;/p&gt;
</content:encoded></item>
<item><title>October in M365</title><link>https://blog.dan-toft.dk/2023/10/october-m365/</link><pubDate>Fri, 27 Oct 2023 04:00:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/10/october-m365/</guid><description>While I took a weeks vacation during October, Microsoft did not, and there’s a lot of news to cover!</description><enclosure url="https://blog.dan-toft.dk/2023/10/october-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;OneDrive 3.0&lt;/h2&gt;
&lt;p&gt;Microsoft started the month off with their OneDrive event where Jeff Teper and the gang essentially summarized a lot of the recent changes we&amp;#39;ve seen announced to OneDrive, the main focus was the overall facelift that we&amp;#39;ll be seeing in our OneDrive homepages, remember, OneDrive is your file explorer on the web 🙌&lt;/p&gt;
&lt;p&gt;One really big feature they announced that I&amp;#39;m super stoked about is cross tenant OneDrive migrations! - We didn&amp;#39;t get a ton of details, but it&amp;#39;s coming, which is awesome, and unfortunately yet another nail in the coffin for migration tools&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/unveiling-the-next-generation-of-onedrive/ba-p/3935612&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;OneDrive sync improvements&lt;/h2&gt;
&lt;p&gt;As I&amp;#39;ve previously addressed I absolutely hate the way the OneDrive sync client handles deletions, the number of times I&amp;#39;ve seen accidental deletions from users who wanted to unsync a folder and ended up deleting thousands of files, now Microsoft isn&amp;#39;t strictly speaking solving the issue, they&amp;#39;re however changing the warning that appears, and making it very clear to the users what they&amp;#39;re doing, it&amp;#39;s a step in the right direction 🙌&lt;/p&gt;
&lt;p&gt;The really big thing here for me tho is the open in app feature, this is a feature that we&amp;#39;ve wanted ... Well forever, when I started working with SharePoint 5 years ago the most requested feature on the feedback portal (uservocie) was the ability to open PDFs in the client (Adobe acrobat), earlier this year it was announced that we would soon be able to do this, now we&amp;#39;ve finally gotten some more details on when/what we can expect from this, it should be releasing in December, and will allow us to open not just PDFs, but ANY file type, even CAD files, this is for me a gamechanger!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/new-onedrive-sync-enhancements/ba-p/3939918&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Clipchamp for work&lt;/h2&gt;
&lt;p&gt;A while back we saw the announcement that Clipchamp would be coming to M365 for work, now we&amp;#39;re seeing this rolling out, really looking forward to seeing an even better integration, I&amp;#39;m personally already using Clipchamp for any video work I need to do, so getting it even more integrated into the M365 ecosystem is very welcome.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/10/october-m365/2.webp&quot; alt=&quot;The option to create a Clipchamp project right from SharePoint&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/Joao12Ferreira/status/1707446328748376279?t=c2VZ9O64HeoT9uRmy6q9hw&amp;s=19&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;App bar customization&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re like me you never quite got the point of the left hand side app bar that launched in Microsoft 365 and SPO a few years back, well it looks like Microsoft has found a good use case for it, they&amp;#39;ll now allow users to customize it, unfortunately, any changes your admin has already rolled out will be overridden, and admins will no longer be able to edit the users choices, so that&amp;#39;s a thing, but I&amp;#39;m all for it being the users &amp;quot;task bar on the web&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.linkedin.com/posts/markthompsontrainer_m365-activity-7114134417865879552-B19l&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Preferred solution for Power Platform&lt;/h2&gt;
&lt;p&gt;This is a very tiny, but super duper mega awesome change, you&amp;#39;ll now be able to set a preferred solution where your Power Platform customizations will go by default, this is a very welcome change, being able to have your flows always go in a solution just seems like something we should&amp;#39;ve had the option to do from day one&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/10/october-m365/3.webp&quot; alt=&quot;Option to set the preferred solution&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SheCodez/status/1709734535607500800?t=DjXHP7oS_ZRe05ZG0AD6mA&amp;s=19&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Town Halls in Microsoft Teams&lt;/h2&gt;
&lt;p&gt;Teams live events for me never really took off, especially in comparison to other tools on the market, it seems Microsoft has picked up on this too, and decided it was time for a refresh&lt;/p&gt;
&lt;p&gt;This includes a lot of neat stuff, up to 20.000 attendees and 50 concurrent streams at once, the ability to have a green room where the presenters can prepare and have a chat before the producer moves them &amp;quot;on set&amp;quot; - it really looks like Microsoft wants to be competitive in the live event space as well!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-teams-blog/introducing-town-halls-in-microsoft-teams-and-retiring-microsoft/ba-p/3925739&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Graph activity activity log&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve ever been using Microsoft Graph, and pushed it just a tad hard you&amp;#39;ll no doubt have run into throttling, and not understood what&amp;#39;s using your resources, maybe it seems like you&amp;#39;re getting throttled no matter what, or maybe you&amp;#39;re just curious what the apps on your tenant are accessing - now we finally have a way, the Graph activity log that&amp;#39;s rolling out right now will let you query a log of the requests that have hit your tenant recently, how neat is this!&lt;/p&gt;
&lt;p&gt;My only wish is that they&amp;#39;ll start to incorporate APIs like SharePoint into a similar style log&lt;/p&gt;
&lt;p&gt;This is btw rolling out now 🙌&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-entra-azure-ad-blog/microsoft-graph-activity-log-is-now-available-in-public-preview/ba-p/3848269&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;New Power Automate editor&lt;/h2&gt;
&lt;p&gt;For the first time in forever Power Automate got a serious facelift, not only including a more modern (and logic apps like) editor, featuring less pop-ups , and for me most importantly, a multiline expression editor 🙌&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/10/october-m365/4.webp&quot; alt=&quot;The new Power Automate editor&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/tanddant/status/1714705232158916966&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Loop Components Coming to Microsoft Teams Channels&lt;/h2&gt;
&lt;p&gt;Finally! - I&amp;#39;ve been asking since the release of loop why loop and teams didn&amp;#39;t work better together, it&amp;#39;s genuinely been a mystery to me that there never was a way to get it to work together.&lt;/p&gt;
&lt;p&gt;Now we&amp;#39;re if nothing else seeing a step in that direction, soon we&amp;#39;ll be able to use loop components in a teams channel, with the loop file being stored in the teams channels SharePoint site.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://petri.com/microsoft-teams-channels-loop-components/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Viva updates&lt;/h2&gt;
&lt;p&gt;We&amp;#39;ll be seeing a bunch of improvements when it comes to Viva in the coming time, Microsoft has a great not too marketingy blog post summarizing all these changes, but that doesn&amp;#39;t mean I won&amp;#39;t pick a few favorites&lt;/p&gt;
&lt;p&gt;For &lt;strong&gt;Viva connections&lt;/strong&gt;, we can look forward to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dark mode&lt;/li&gt;
&lt;li&gt;Improved analytics&lt;/li&gt;
&lt;li&gt;New cards, including Sway, Forms and Power Apps, a People Search Card and with last months release of SPFx 1.18.0 we saw a ton of improvements to our development options when it comes to customizing the adaptive cards&lt;/li&gt;
&lt;li&gt;A big one for me is improvements to the Card designer that&amp;#39;ll let you pull line of business data from Graph directly into your cards without any custom code! - this is a big deal as many ACEs are simply wrappers for Graph data, so being able to do this out of the box without any custom code is awesome.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/10/october-m365/5.webp&quot; alt=&quot;The new Card designer&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Viva engage&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Viva connections also gets some new changes, including a new post type &amp;quot;Article&amp;quot;, similar to when writing articles on Linkedin, this will give you slightly more formatting and image options then a regular post.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll also be seeing some better analytics, including analytics on how people are networking, reacting, and from where they&amp;#39;re accessing engage.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/10/october-m365/6.webp&quot; alt=&quot;Preview of the new analytics&quot;&gt;&lt;/p&gt;
&lt;p&gt;Draft and schedule posts, another nice feature that we&amp;#39;re seeing, is the option to schedule posts, something loads of people will appreciate for sure! - I know of several organizations that&amp;#39;ll be very pleased with this!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Viva goals&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The long awaited Copilot for viva goals has finally GA&amp;#39;ed and is ready to help you setup your OKRs, even faster and smoother!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Viva Amplify&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Finally after a long wait Viva Amplify goes GA, Amplify is one of the Viva products that I&amp;#39;ve been looking forward to the most, the ability for internal communication to spread their news across all the different products, but still manage it all at a single point is awesome! - not only will communicators be able to create sleek looking news for both Outlook and SharePoint but also see all their analytics in one place, and even more advanced statistics then we&amp;#39;re used to, including stuff like how many from each department sees their news.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Viva Home&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This one is really small, but maybe oddly the most surprising one for me on this whole list.&lt;/p&gt;
&lt;p&gt;Microsoft launched a &amp;quot;home&amp;quot; page for Viva, that&amp;#39;s not that surprising, but at the same time they&amp;#39;ll be bringing all of the Viva apps to the web, which is surprising to me, given that loads of the viva branding has been around Viva being apps in teams previously, but it makes sense to branch them out and improve the availability I guess.&lt;/p&gt;
&lt;p&gt;This also means you&amp;#39;ll be able to pin Viva apps in your &amp;quot;Waffle menu&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/10/october-m365/7.webp&quot; alt=&quot;Viva home&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-viva-blog/what-s-new-in-microsoft-viva-october-2023/ba-p/3949788&quot;&gt;Read the entire blog post&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft is definitely gearing up for the Copilot launch in november, but that does not mean we&amp;#39;re not seeing a bunch of other cool stuff, I&amp;#39;m especially excited about the new Power Automate editor, and the ability to open files in the client from OneDrive, but there&amp;#39;s a lot of other cool stuff as well!&lt;/p&gt;
&lt;p&gt;As always, the platform keeps evolving and giving you even more value for your money, and I&amp;#39;m excited to see what&amp;#39;s next!&lt;/p&gt;
</content:encoded></item>
<item><title>Simplify your SPFx imports</title><link>https://blog.dan-toft.dk/2023/10/simplify-spfx-imports/</link><pubDate>Mon, 23 Oct 2023 19:45:47 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/10/simplify-spfx-imports/</guid><description>When working with SPFx you’ll often find yourself generating some nasty import statements, let’s take a look at those, and see how we can improve them!</description><enclosure url="https://blog.dan-toft.dk/2023/10/simplify-spfx-imports/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;The thought&lt;/h2&gt;
&lt;p&gt;Having worked in SPFx for long enough, I&amp;#39;m sure you&amp;#39;ve seen imports like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JS&quot;&gt;import { IMyInterface } from &amp;#39;../../../../../../common/models/IMyInterface&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And thought, &amp;quot;there must be a better way!&amp;quot;, looking at library imports, you&amp;#39;ll see that they&amp;#39;re much cleaner:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JS&quot;&gt;import { SPFI } from &amp;quot;@pnp/sp&amp;quot;;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Well, there&amp;#39;s a way to turn your imports into something similar, and it&amp;#39;s not that hard!&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JS&quot;&gt;// Let&amp;#39;s turn this:
import { IMyInterface } from &amp;#39;../../../../../../common/models/IMyInterface&amp;#39;;
// into this:
import { IMyInterface } from &amp;#39;@Models/IMyInterface&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;The solution&lt;/h2&gt;
&lt;p&gt;It&amp;#39;s actually quite simple, we&amp;#39;ll only need to update two files (three if you&amp;#39;re using fast-serve).&lt;/p&gt;
&lt;h3&gt;gulpfile.js&lt;/h3&gt;
&lt;p&gt;Firstly we need to update out webpack file, now normally this would be done in the &lt;code&gt;webpack.config.js&lt;/code&gt; file, however SPFx does webpack a bit different, instead they allow us to modify parts of the webpack config during the build process, this is done in the &lt;code&gt;gulpfile.js&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Add the followind lines of code, beware of the path, we&amp;#39;re replacing &lt;code&gt;src&lt;/code&gt; with &lt;code&gt;lib&lt;/code&gt; as that&amp;#39;s where the files will be after the build process.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;gulpfile.js&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JS&quot;&gt;const path = require(&amp;#39;path&amp;#39;);

...

build.configureWebpack.mergeConfig({
  additionalConfiguration: (generatedConfiguration) =&amp;gt; {
    if (!generatedConfiguration.resolve.alias)
      generatedConfiguration.resolve.alias = {};

    generatedConfiguration.resolve.alias[&amp;#39;@Models&amp;#39;] = path.resolve(__dirname, &amp;#39;./lib/@common/models/&amp;#39;)

    return generatedConfiguration;
  }
});
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;tsconfig.json&lt;/h3&gt;
&lt;p&gt;Next we&amp;#39;re going to update the &lt;code&gt;tsconfig.json&lt;/code&gt; file, this is where we&amp;#39;ll tell TypeScript that we&amp;#39;ve updated the paths, and where to find them, so that we don&amp;#39;t get errors while coding.&lt;/p&gt;
&lt;p&gt;Note that we&amp;#39;ll be using the &lt;code&gt;src&lt;/code&gt; part here, and setting the base url to &lt;code&gt;.&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;tsconfig.json&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;...
  &amp;quot;compilerOptions&amp;quot;: {
    &amp;quot;baseUrl&amp;quot;: &amp;quot;.&amp;quot;,
    &amp;quot;paths&amp;quot;: {
      &amp;quot;@Models/*&amp;quot;: [
        &amp;quot;src/@common/models/*&amp;quot;
      ]
    },
...
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;webpack.extend.js (Fast Serve)&lt;/h3&gt;
&lt;p&gt;Lastly, if you&amp;#39;re using fast-serve, you&amp;#39;ll need to update the &lt;code&gt;webpack.extend.js&lt;/code&gt; file in your fast-serve folder, and add the following lines:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;webpack.extend.js&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;const path = require(&amp;#39;path&amp;#39;);

...

const webpackConfig = {
  resolve: {
    alias: {
      &amp;#39;@Models&amp;#39;: path.resolve(__dirname, &amp;#39;..&amp;#39;, &amp;#39;src/@common/models/&amp;#39;)
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now common for all of these things we just did is that you can add as many as you want! - I sometimes find myself ending up with the following list of aliases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;@Common&lt;/li&gt;
&lt;li&gt;@Models&lt;/li&gt;
&lt;li&gt;@Enums&lt;/li&gt;
&lt;li&gt;@Utils&lt;/li&gt;
&lt;li&gt;@Hooks&lt;/li&gt;
&lt;li&gt;@Contexts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And that&amp;#39;s just for inspiration, you can keep going! - please let me know what you come up with!&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;You can drastically improve the readability of your SPFx imports by setting up what are called aliases, and thereby shortening your import statements, and &amp;quot;obfuscating&amp;quot; away the folder structure.&lt;/p&gt;
</content:encoded></item>
<item><title>September in M365</title><link>https://blog.dan-toft.dk/2023/09/september-m365/</link><pubDate>Wed, 27 Sep 2023 15:25:05 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/09/september-m365/</guid><description>September as the first month in a while where it almost felt like we could catch a breath, but after a sitting down to write this post, yeah, we’re not slowing down one bit!</description><enclosure url="https://blog.dan-toft.dk/2023/09/september-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Copilot release date! 🙌🙌🙌&lt;/h2&gt;
&lt;p&gt;So, I guess the biggest news this month is that Microsoft has finally announced a release date for Copilot!&lt;/p&gt;
&lt;p&gt;November 1st - MARK YOUR CALENDARS 📅&lt;/p&gt;
&lt;p&gt;Other then a release date, Microsoft also announced some different things to create some &amp;#39;hype&amp;#39; including Bing Chat Enterprise getting image generation support, a rename of the announced &amp;quot;Business chat&amp;quot; to &amp;quot;Microsoft 365 chat&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://blogs.microsoft.com/blog/2023/09/21/announcing-microsoft-copilot-your-everyday-ai-companion/&quot;&gt;Read waay more here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SharePoint news in Outlook&lt;/h2&gt;
&lt;p&gt;All the way back in early spring, at the M365 conference Microsoft announced on a feature that would allow us to send SharePoint news pages as emails, and now it&amp;#39;s finally here!&lt;/p&gt;
&lt;p&gt;While a little less &amp;quot;complete&amp;quot; then I had personally hoped, I think Microsoft solved it perfectly &amp;quot;respectable&amp;quot; - instead of every single web part needing to be adapted to work in Outlook, they instead created a new page template that is optimized for Outlook.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/09/september-m365/2.webp&quot; alt=&quot;The new email page templates&quot;&gt;&lt;/p&gt;
&lt;p&gt;In this there are a few default templates (notice the letter icon) - what makes these templates special is that they have a quite limited set of web parts, but these web parts are optimized to also work in an email format.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/09/september-m365/3.webp&quot; alt=&quot;The selection of web parts&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://sharepoint.handsontek.net/2023/08/29/introducing-sharepoint-new-news-templates-stunning-outlook-communications/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Changes to teams licenses in EU&lt;/h2&gt;
&lt;p&gt;So I guess it was a matter of time before the EU would take a look at, perhaps the most successful Microsoft product in the last decade, Teams.&lt;/p&gt;
&lt;p&gt;The result ended up being rather annoying ... from October 1st teams will no longer be included in your &amp;quot;normal&amp;quot; Microsoft 365 license, instead you will need to purchase a separate license for Teams in the EEA and Switzerland.&lt;/p&gt;
&lt;p&gt;At the same time this will cause a price increase for all Microsoft 365 licenses in the EEA and Switzerland - or sort of, the price will be dropped by €2/month, but the additional Teams license will cost €5/month, so in the end it&amp;#39;s a €3/month increase for the same feature set.&lt;/p&gt;
&lt;p&gt;Luckily, this will not affect existing customers, so if you&amp;#39;re already using Teams, and have an active subscription, you will not be affected by this change (yet).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://blogs.microsoft.com/eupolicy/2023/08/31/european-competition-teams-office-microsoft-365/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SPFx 1.18&lt;/h2&gt;
&lt;p&gt;The SharePoint Framework has been updated to version 1.18, while this one is more interesting for devs, I still want to mention it here as there are some interesting &amp;quot;behind the scenes updates&amp;quot;, a major one is the update to Node 18, a very welcome upgrade as node 16 went EOL just a few days ago.&lt;/p&gt;
&lt;p&gt;Other then that we got some awesome updates to adaptive card extensions, that&amp;#39;ll allow us to create some really cool experiences in Viva Connections. - brining more value to the users, with fewer click.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/09/september-m365/4.webp&quot; alt=&quot;The new adaptive cards&quot;&gt;&lt;/p&gt;
&lt;h2&gt;New Outlook client to be included with Windows 11&lt;/h2&gt;
&lt;p&gt;This one is near and dear to my heart!&lt;/p&gt;
&lt;p&gt;For the past 7ish years since I got my first job as a first level IT supporter, I&amp;#39;ve hated Outlook with every fiber of my body, it&amp;#39;s slow, it&amp;#39;s clunky, it keeps crashing.&lt;/p&gt;
&lt;p&gt;However, the web experience with Outlook online, has ALWAYS been awesome, it&amp;#39;s fast, it&amp;#39;s responsive, it&amp;#39;s easy to use.&lt;/p&gt;
&lt;p&gt;Over the past year or so, Microsoft has brought this into an app, solving the biggest issue with the web experience, the lack of multi account support.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been using the preview for probably a year, and I absolutely love it!&lt;/p&gt;
&lt;p&gt;Well it&amp;#39;s now officially releasing out of preview, starting september 21. it will start to roll out with Windows 11 updates, and be default pinned to the taskbar.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t agree with the pinned to the taskbar part, but I&amp;#39;m still super excited for this! - from a personal perspective, that is.&lt;/p&gt;
&lt;p&gt;I do feel sorry for the IT admins that will have to deal with the support calls from users that are used to the old Outlook client, and now have to learn a new one - just the nightmare when they moved the navigation to the side of the screen. 😔&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/outlook-blog/the-new-outlook-for-windows-for-organization-admins/ba-p/3929169&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Planner component in Microsoft Loop&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re not already using Microsoft Loop, what are you doing? - it&amp;#39;s awesome!&lt;/p&gt;
&lt;p&gt;Well it just became even more awesome, now there&amp;#39;s an option coming that&amp;#39;ll allow you to add a planner component to your loop page, allowing you to easily keep track of your tasks, and see the progress of your project in a more visual way then just a list of tasks.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://supersimple365.com/a-planner-component-is-coming-to-microsoft-loop/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Viva Connections mobile updates&lt;/h2&gt;
&lt;p&gt;Microsoft is still going full steam ahead with Viva, and this month we got some updates to the mobile experience.&lt;/p&gt;
&lt;p&gt;The main focus in on improving the experience on mobile, not only simplifying the UI, but also bringing the existing SharePoint Home site closer to the user, this is probably in recognition of the fact that many orgs have already made huge investments into their intranet, and Viva Connections isn&amp;#39;t quite there yet in terms of providing the same options.&lt;/p&gt;
&lt;h2&gt;Canvas built-in offline support&lt;/h2&gt;
&lt;p&gt;This one is SUPER interesting! - going into public preview right now is an feature to enable offline support for canvas apps.&lt;/p&gt;
&lt;p&gt;This means that your device will locally sync data from dataverse while you&amp;#39;re connected to the internet, and allow you to make changes while offline, that&amp;#39;ll then sync back to dataverse once you&amp;#39;re back online.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/09/september-m365/5.webp&quot; alt=&quot;The new offline support&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://powerapps.microsoft.com/en-us/blog/canvas-built-in-offline-is-now-just-one-click-away/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Seamless collaboration in Microsoft Teams for multi-tenant organizations&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re working in a multi-tenant environment, you&amp;#39;ve probably experienced the pains of multi geo teams!&lt;/p&gt;
&lt;p&gt;With this update, if your admin configures the multi-tenant organization (MTO) setup, and the new Teams App.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll now be able to chat cross tenant, and more importantly, have notifications sync across tenants, so you&amp;#39;ll no longer have to switch between tenants to see if you have any new messages&lt;/p&gt;
&lt;p&gt;It also enables a richer meeting experience, allowing things like Whiteboard, together despite the meeting not being in their &amp;quot;home&amp;quot; tenant.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-teams-blog/announcing-more-seamless-collaboration-in-microsoft-teams-for/ba-p/3901092&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Personal Planner plans&lt;/h2&gt;
&lt;p&gt;Another tiny feature that appeared on the roadmap this month that&amp;#39;s a game changer for me is the ability to create personal plans in planner.&lt;/p&gt;
&lt;p&gt;Previously the only way to do this would be to create a private M365 group and add a planner to that, but now you&amp;#39;ll be able to create a plan that&amp;#39;s just for you, and not have to worry about the all the other sprawl that comes with a group.&lt;/p&gt;
&lt;p&gt;Especially for people that are in a tenant where group creation is disabled this is awesome! - whether or not you&amp;#39;ll later be able to share this plan with others is still unknown, but I&amp;#39;m almost hoping Microsoft doesn&amp;#39;t add that feature, but rather a way to &amp;quot;migrate&amp;quot; a plan to a group, if you need to share it with others at a later time.&lt;/p&gt;
&lt;p&gt;So that&amp;#39;s one more tool for personal task management, and while I as a geek appreciate this, I&amp;#39;m not sure if it&amp;#39;s the right move for Microsoft, we end up giving users decision paralysis, because there are soo many different options to do the same thing.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/da-dk/microsoft-365/roadmap?filters=&amp;searchterms=171611&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Copilot release date: November 1st&lt;/li&gt;
&lt;li&gt;SharePoint news in Outlook&lt;/li&gt;
&lt;li&gt;Changes to teams licenses in EU&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Other then that, Microsoft keeps going full steam ahead with Viva, and the rest of their product suite, and shows no signs of slowing down anytime soon!&lt;/p&gt;
</content:encoded></item>
<item><title>Using React &amp; Fluent UI in SPFx command set extensions</title><link>https://blog.dan-toft.dk/2023/08/react-fluent-ui-spfx-command-set-extensions/</link><pubDate>Wed, 30 Aug 2023 18:29:56 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/08/react-fluent-ui-spfx-command-set-extensions/</guid><description>If you’ve ever built an SPFx command set extension you might’ve realized that you’re lacking any UI components apart from just the standard dialog alerts, let’s take a look at what can be done to this!</description><enclosure url="https://blog.dan-toft.dk/2023/08/react-fluent-ui-spfx-command-set-extensions/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Why?&lt;/h2&gt;
&lt;p&gt;When you&amp;#39;re building SPFx command set extensions, you might&amp;#39;ve noticed that you don&amp;#39;t get a ton of UI options out of the box, just a plain dialog that can show some text, and a few buttons, this is fine for some scenarios, but if you want to build something a bit more advanced, you&amp;#39;ll no doubt have wanted to use React and Fluent UI, that&amp;#39;s what this guide is all about!&lt;/p&gt;
&lt;h2&gt;Getting started&lt;/h2&gt;
&lt;p&gt;When you&amp;#39;ve created your SPFx project, you&amp;#39;ll want to add the following packages a few packages, but their versions are important, so make sure you&amp;#39;re using the correct ones!&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll need these packages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;react&lt;/li&gt;
&lt;li&gt;react-dom&lt;/li&gt;
&lt;li&gt;@types/react&lt;/li&gt;
&lt;li&gt;@types/react-dom&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;all in a matching version - the easiest way to determine which version you need is the &lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/spfx/compatibility#spfx-development-environment-compatibility&quot;&gt;SPFx Compatibility Matrix&lt;/a&gt;, check the react version for your SPFx version, and use that version for all the packages above.&lt;/p&gt;
&lt;p&gt;So in my save I ran &lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npm i react@17.0.1 react-dom@17.0.1 --save-exact
npm i @types/react@17.0.1 @types/react-dom@17.0.1 --save-dev --save-exact
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;New I want to use Fluent UI, determining the version you need here is slightly more complicated, but if you&amp;#39;re on one of the (as of writing this) recent SPFx versions (1.16.0 and above ish) version 7 is the go to, this will change with &lt;strong&gt;SPFx 1.18.0 where we&amp;#39;ll be moving to version 8!&lt;/strong&gt; at that time replace the @7 with @8 in the command below.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npm i @fluentui/react@7 --save-exact
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Using React &amp;amp; Fluent UI&lt;/h2&gt;
&lt;p&gt;Now that we&amp;#39;ve setup all our dependencies, we can start building with them! - unlike when building a Web part we&amp;#39;ll need to rely on the dialog framework provided by Microsoft, this means you&amp;#39;ll be rendering your content inside a dialog, and not overtaking the entire page.&lt;/p&gt;
&lt;p&gt;I wrote a &amp;#39;neat&amp;#39; component that&amp;#39;s reusable and allows you to render any React component inside a dialog (that&amp;#39;s extending the basedialog), this is what it looks like:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DialogReactRenderer.tsx&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-tsx&quot;&gt;import * as React from &amp;#39;react&amp;#39;;
import * as ReactDOM from &amp;#39;react-dom&amp;#39;;
import { BaseDialog } from &amp;#39;@microsoft/sp-dialog&amp;#39;;

export default class DialogReactRenderer&amp;lt;T&amp;gt; extends BaseDialog {
    private element: React.FunctionComponentElement&amp;lt;T&amp;gt;;

    constructor(element: React.FunctionComponentElement&amp;lt;T&amp;gt;) {
        super({ isBlocking: false });
        this.element = element;
    }

    public render(): void {
        ReactDOM.render(this.element, this.domElement);
    }

    protected onAfterClose(): void {
        super.onAfterClose();
        ReactDOM.unmountComponentAtNode(this.domElement);
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now in your &lt;code&gt;onExecute&lt;/code&gt; method you can render any component you want, for example, here I&amp;#39;m rendering a component called &lt;code&gt;MainComp&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-tsx&quot;&gt;
public onExecute(event: IListViewCommandSetExecuteEventParameters): void {
    switch (event.itemId) {
      case &amp;#39;COMMAND_1&amp;#39;:
        const component = React.createElement(MainComp);
        const wrapper = new DialogReactRenderer(component);
        wrapper.show().catch(er =&amp;gt; alert(er));
        break;
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the &lt;code&gt;MainComp&lt;/code&gt; component just has to be a functional React component, mine just looks like this for now: &lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-tsx&quot;&gt;import * as React from &amp;#39;react&amp;#39;;
import { PrimaryButton } from &amp;#39;@fluentui/react&amp;#39;;

export interface IMainCompProps { }

export const MainComp: React.FunctionComponent&amp;lt;IMainCompProps&amp;gt; = (props: React.PropsWithChildren&amp;lt;IMainCompProps&amp;gt;) =&amp;gt; {
    const [count, setCount] = React.useState&amp;lt;number&amp;gt;(0);

    return (
        &amp;lt;&amp;gt;
            &amp;lt;div style={{ display: &amp;#39;grid&amp;#39;, placeItems: &amp;quot;center&amp;quot;, height: 250 }}&amp;gt;

                &amp;lt;PrimaryButton onClick={() =&amp;gt; setCount(count + 1)}&amp;gt;Click me ({count})&amp;lt;/PrimaryButton&amp;gt;

            &amp;lt;/div&amp;gt;
        &amp;lt;/&amp;gt;
    );
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See the full &lt;a href=&quot;https://github.com/Tanddant/Sample-React-In-Command-set-extension&quot;&gt;sample here&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft doesn&amp;#39;t ship a UI library with command set extensions, so unless you have other SPFx projects in your solution that&amp;#39;re using React &amp;amp; Fluent UI, you&amp;#39;ll have to add them yourself, this guide shows you how to do that, and how to render a React component inside a dialog.&lt;/p&gt;
</content:encoded></item>
<item><title>August in M365</title><link>https://blog.dan-toft.dk/2023/08/august-m365/</link><pubDate>Thu, 24 Aug 2023 13:43:25 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/08/august-m365/</guid><description>Another month has passed, and it’s time for another round up of what’s new in M365! - let take a look at what Microsoft has been up to this time!</description><enclosure url="https://blog.dan-toft.dk/2023/08/august-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Run a cloud flow for more than 30 days per invocation&lt;/h2&gt;
&lt;p&gt;This is a small change that has a big impact, the number of times I&amp;#39;ve seen builder stumble into this unfathomably annoying limitation is crazy, traditionally when you&amp;#39;ve created Power Automate flows you&amp;#39;ve been limited to 30 days run time per invocation, this sounds like a lot, but if you&amp;#39;re doing a multi stage approval flow this often isn&amp;#39;t enough, especially around holiday periods, where people might be out of office for 2-3 weeks at a time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/power-platform/release-plan/2023wave2/power-automate/run-cloud-more-than-30-days-per-invocation&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Browse by meeting in OneDrive&lt;/h2&gt;
&lt;p&gt;The OneDrive homepage has been cited to be &amp;quot;your file explorer on the web&amp;quot;, and Microsoft is taking that statement to the next level with this new update, you&amp;#39;ll now be able to browse your files by which meeting they where in, &lt;a href=&quot;https://blog.dan-toft.dk/2023/07/july-in-m365/#browse-onedrive-by-people&quot;&gt;last month&lt;/a&gt; we saw how we where able to access files by people, and now we can do the same by meeting, having several different ways to access the files depending on how you best remember is great!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SuperSimple365/status/1685538112854786048?t=xF4CTXb2P6lkMqJcoAAzBg&amp;s=19&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Meet&lt;/h2&gt;
&lt;p&gt;Along with the above update to OneDrive, Microsoft has also been hard at work on a new update to teams, the &amp;quot;Meet&amp;quot; app, this app, allows you to get an overview of recent and upcoming meetings, access, chat, files, and if you&amp;#39;re a teams-premuium user, you&amp;#39;ll also be able to access AI powered overviews, mentions and suggested tasks.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://supersimple365.com/new-microsoft-team-app-meet/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;New SharePoint site creation experience&lt;/h2&gt;
&lt;p&gt;This one is IMO pretty minor for existing users of SharePoint online, but a major change for those who&amp;#39;re just getting started with SharePoint, Microsoft is bringing some updates to the site creation process in SharePoint Online - they&amp;#39;ll be adding new site templates, and updating some of the existing templates to provide more ootb value.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SuperSimple365/status/1685900650993930240/photo/1&quot;&gt;See Here&lt;/a&gt; for more on what exactly is changing.&lt;/p&gt;
&lt;h2&gt;Microsoft Clipchamp for work&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve had to edit a video in the past year or so, you might&amp;#39;ve come across Clipchamp, for me it&amp;#39;s like a modern era windows movie maker, just easy enough to use for me to get the job done, not advanced enough to do absolutely everything.&lt;/p&gt;
&lt;p&gt;I use it every time I need to edit a video, now it&amp;#39;s coming as part of your Microsoft 365 plan (notably not Office 365 licenses), this will allow you to integrate with your M365 data, and post your video with Steam, keeping all your data inside your tenant!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/blog/2023/07/31/introducing-microsoft-clipchamp-unlock-the-power-of-video-at-work/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;OneDrive sync client error handling changes&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve used the OneDrive sync client and been offline for any period of time while working, you&amp;#39;ll undoubtedly have seen the &amp;quot;Resolve sync file conflicts&amp;quot;, and if you&amp;#39;re anything like my clients, you&amp;#39;ll have pressed the &amp;quot;keep both&amp;quot; option, and later wondered, where the heck did my changes go? ... or someone else will when someone else inevitably chooses the wrong version.&lt;/p&gt;
&lt;p&gt;Well no more! - Microsoft is removing the &amp;quot;keep both&amp;quot; option, and will now force you to merge the two files right away, I&amp;#39;m worried this will cause frustrations with the end user, or worse, cause them to overwrite others data, but I&amp;#39;m hopeful that this will be a good change in the long run, once people know how to use it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/08/august-m365/2.webp&quot; alt=&quot;OneDrive sync client error handling changes&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://m365admin.handsontek.net/updated-experience-for-office-document-conflict-resolution-in-onedrive-sync/&quot;&gt;Read more&lt;/a&gt; about this change.&lt;/p&gt;
&lt;h2&gt;New teams release date&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re like me, you&amp;#39;ve been running the new teams client for a little while now, but having two experiences is always annoying for en users, something that&amp;#39;s come to my attention is that we now have a &amp;quot;switchover&amp;quot; date, for the new teams client - this is the date that Microsoft will start rolling out the new client as the default to everyone! - that data is &lt;strong&gt;Early October 2023&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/microsoftteams/new-teams-desktop-admin#update-channels-1&quot;&gt;See all the different release dates here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;SharePoint Platform: Minor Visual Refresh&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve been around within web design for more then a decade, you&amp;#39;ve no doubt seen the trend that is sharp corners to soft corners to sharp corners - well lo&amp;#39; and behold, we&amp;#39;re moving back to soft corners, Microsoft is updating the look and feel of SharePoint to have softer corners, I hope this is just a small part of the the modernization to SharePoint that&amp;#39;s supposed to launch later this year, but I&amp;#39;m not holding my breath for that one.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/08/august-m365/3.webp&quot; alt=&quot;SharePoint Platform: Minor Visual Refresh&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://supersimple365.com/sharepoint-platform-minor-visual-refresh/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Colored folders&lt;/h2&gt;
&lt;p&gt;Another cool update that&amp;#39;s started to roll out is colored folders, back at M365 conference in the spring we where promised colored folders in OneDrive, but now that they&amp;#39;re here (targeted release), and also available in SharePoint!&lt;/p&gt;
&lt;p&gt;I was initially sceptical, but I think the feature is growing on me, I love the ability to quickly identify my folders, something I&amp;#39;m sure people will actually be missing in file explorer!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/08/august-m365/4.webp&quot; alt=&quot;Colored folders&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/ami_diamond/status/1687764893947031552&quot;&gt;Thanks to Ami for the screenshot&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Announcements in Viva Connections&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve ever had an intranet, I&amp;#39;m sure you&amp;#39;ve had the need for a &amp;quot;THE SERVERS ARE DOWN&amp;quot; announcement channel - Microsoft is bringing this to Viva connections, this means that when accessing your intranet in teams, or on mobile, we&amp;#39;ll have the option to show an announcement banner, and serve the users a notification, this is awesome! - unfortunately there are no news on how this will be surfaced in SharePoint where you might already have made investments in your intranet, and want a similar experience.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://m365admin.handsontek.net/announcements-in-viva-connections/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Page sharing&lt;/h2&gt;
&lt;p&gt;A neat little feature is Microsoft making it easier to share the SharePoint page you&amp;#39;re currently on, and also thereby giving others a direct permissions, in case you didn&amp;#39;t know: SharePoint pages are also stored as a file in SharePoint, and you can manage permissions on a page by page basis, it&amp;#39;s nice to see Microsoft promote this option more!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/MarcinSiewnicki/status/1691058336110620672/&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Python in Excel&lt;/h2&gt;
&lt;p&gt;Even as someone who&amp;#39;s not a python developer, I know that python is &amp;quot;the&amp;quot; data analysis language, and it&amp;#39;s super awesome to see Microsoft embrace this, and not just stick to their Office Scripts running their own TypeScript, and as with office scripts, this will be able to run in the cloud, making it accessible to everyone, everywhere!&lt;/p&gt;
&lt;p&gt;Having different ways to not only calculate data, but also the option to map it in different diagrams and a like is absolutely awesome!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/excel-blog/announcing-python-in-excel-combining-the-power-of-python-and-the/ba-p/3893439&quot;&gt;Read more&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Huge improvements to Power Automate, OneDrive, Teams, SharePoint, and Viva Connections, generally it&amp;#39;s awesome to see Microsoft really picking up the steam here towards the end of summer, and I&amp;#39;m excited to see what&amp;#39;s next with the upcoming conferences in the fall, personally I&amp;#39;m looking forward to an awesome Nordic summer late september!&lt;/p&gt;
</content:encoded></item>
<item><title>Using themed icons in SPFx command bar extensions</title><link>https://blog.dan-toft.dk/2023/08/themed-icons-spfx-command-bar-extensions/</link><pubDate>Tue, 08 Aug 2023 18:22:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/08/themed-icons-spfx-command-bar-extensions/</guid><description>Have you every built an SPFx command bar extension and been annoyed at the icon having to be an png and your solution not being able to use themed icons? - well, I’ve got a solution for you!</description><enclosure url="https://blog.dan-toft.dk/2023/08/themed-icons-spfx-command-bar-extensions/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;So you know how when you&amp;#39;re creating an SPFx command bar extension it&amp;#39;ll reference the &amp;quot;icons/request.png&amp;quot; file so you can create your own icons and add to your solution.&lt;/p&gt;
&lt;p&gt;Awesome, right? - well yeah, if you&amp;#39;re an ISV and want to use your logo, but if you&amp;#39;re building a solution that you might not want branded with your logo, but just want to blend in to the platform - then it&amp;#39;s not so awesome.&lt;/p&gt;
&lt;p&gt;In this post we&amp;#39;ll be taking a look at how to use Fluent UI icons as a logo in your command bar extension, including theme support!&lt;/p&gt;
&lt;h2&gt;Getting the SVG icon&lt;/h2&gt;
&lt;p&gt;Firstly we&amp;#39;ll need the SVG version of the icon we want to use, here I really like using &lt;a href=&quot;https://www.flicon.io/&quot;&gt;Flicon&lt;/a&gt; by &lt;a href=&quot;https://twitter.com/theChrisKent&quot;&gt;Chris Kent&lt;/a&gt;, simply find the icon you like (I&amp;#39;ll be using &amp;quot;FullHistory&amp;quot; in this example) under export you can download the SVG version of the icon.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/08/themed-icons-spfx-command-bar-extensions/2.webp&quot; alt=&quot;Flicon&quot;&gt;&lt;/p&gt;
&lt;p&gt;Next open the .SVG file in a text editor like NotePad++ and copy the contents, you should have something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;svg xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot; viewBox=&amp;quot;0 0 2048 2048&amp;quot;&amp;gt;&amp;lt;path d=&amp;quot;M896 512h128v512H896V512zM512 768H0V256h128v274q67-123 163-221t212-166T752 37t272-37q141 0 272 36t245 103 207 160 160 208 103 245 37 272h-128q0-123-32-237t-90-214-141-182-181-140-214-91-238-32q-129 0-251 36T546 267 355 428 215 640h297v128zm512 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm-863-657q36 129 105 239t166 194 214 140 250 74v130q-154-21-292-83t-250-158-193-224-123-278l123-34z&amp;quot; fill=&amp;quot;#333333&amp;quot;&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;/svg&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Encoding the SVG icon&lt;/h2&gt;
&lt;p&gt;Now paste that value &lt;a href=&quot;https://codepen.io/hugoabernier/full/NWKvzOM&quot;&gt;here&lt;/a&gt;, it&amp;#39;s a tool that encodes SVGs so they can be used in SPFx extensions - the tool is built by &lt;a href=&quot;https://twitter.com/bernierh&quot;&gt;Hugo Bernier&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Pasting the contents into the tool will instantly encode it, and allow you to then copy the encoded value, it should look something along the lines of this&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-HTML&quot;&gt;data:image/svg+xml,%3Csvg xmlns=&amp;#39;http://www.w3.org/2000/svg&amp;#39; viewBox=&amp;#39;0 0 2048 2048&amp;#39;%3E%3Cpath d=&amp;#39;M896 512h128v512H896V512zM512 768H0V256h128v274q67-123 163-221t212-166T752 37t272-37q141 0 272 36t245 103 207 160 160 208 103 245 37 272h-128q0-123-32-237t-90-214-141-182-181-140-214-91-238-32q-129 0-251 36T546 267 355 428 215 640h297v128zm512 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm-863-657q36 129 105 239t166 194 214 140 250 74v130q-154-21-292-83t-250-158-193-224-123-278l123-34z&amp;#39; fill=&amp;#39;%23333333&amp;#39;%3E%3C/path%3E%3C/svg%3E
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This value can be used as the iconImageUrl in your command bar extension manifest, like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;&amp;quot;YOUR_COMMAND_NAME&amp;quot;: {
  &amp;quot;title&amp;quot;: { &amp;quot;default&amp;quot;: &amp;quot;Command One&amp;quot; },
  &amp;quot;type&amp;quot;: &amp;quot;command&amp;quot;,
  &amp;quot;iconImageUrl&amp;quot;: &amp;quot;data:image/svg+xml,%3Csvg xmlns=&amp;#39;http://www.w3.org/2000/svg&amp;#39; viewBox=&amp;#39;0 0 2048 2048&amp;#39;%3E%3Cpath d=&amp;#39;M896 512h128v512H896V512zM512 768H0V256h128v274q67-123 163-221t212-166T752 37t272-37q141 0 272 36t245 103 207 160 160 208 103 245 37 272h-128q0-123-32-237t-90-214-141-182-181-140-214-91-238-32q-129 0-251 36T546 267 355 428 215 640h297v128zm512 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm-863-657q36 129 105 239t166 194 214 140 250 74v130q-154-21-292-83t-250-158-193-224-123-278l123-34z&amp;#39; fill=&amp;#39;%23333333&amp;#39;%3E%3C/path%3E%3C/svg%3E&amp;quot;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now you&amp;#39;ll have the icon in your command bar extension, but it&amp;#39;s not themed to the current site theme - so let&amp;#39;s fix that!&lt;/p&gt;
&lt;h2&gt;Theme support&lt;/h2&gt;
&lt;p&gt;First we&amp;#39;ll need fluentui if it&amp;#39;s not already installed in your solution, install the relevant version:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;npm i @fluentui/react@7 --save
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Next we&amp;#39;ll need to create a helper function to get the current theme color, this is a little tricky but it&amp;#39;s doable.&lt;/p&gt;
&lt;p&gt;I create the following file: &lt;strong&gt;themeHelper.ts&lt;/strong&gt; and add the following code:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-TypeScript&quot;&gt;import { ITheme, getTheme } from &amp;#39;@fluentui/react&amp;#39;;

const ThemeState = (&amp;lt;any&amp;gt;window).__themeState__;
​
// Get theme from global UI fabric state object if exists, if not fall back to using uifabric    
export function getThemeColor(slot: string) {
    if (ThemeState &amp;amp;&amp;amp; ThemeState.theme &amp;amp;&amp;amp; ThemeState.theme[slot]) {
        return ThemeState.theme[slot];
    }
    const theme = getTheme();
    return theme[slot as keyof ITheme];
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will allow us to get the current theme color, now we need to use this in our command bar extension.&lt;/p&gt;
&lt;p&gt;In the &lt;code&gt;onInit()&lt;/code&gt; method of the command bar extension we&amp;#39;ll need to add the following code:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-TypeScript&quot;&gt;import { getThemeColor } from &amp;#39;./themeHelper&amp;#39;;
...
public onInit(): Promise&amp;lt;void&amp;gt; {
  ...

  // Get your command
  const yourCommand: Command = this.tryGetCommand(&amp;#39;YOUR_COMMAND_NAME&amp;#39;);

  // Get proper theme color
  const fillColor = getThemeColor(&amp;quot;themeDarkAlt&amp;quot;).replace(&amp;#39;#&amp;#39;, &amp;#39;%23&amp;#39;);

  // Generate the colored icon
  const exportSvg = `data:image/svg+xml,%3Csvg xmlns%3D&amp;#39;http%3A//www.w3.org/2000/svg&amp;#39; viewBox=&amp;#39;0 0 2048 2048&amp;#39;%3E%3Cpath d=&amp;#39;M896 512h128v512H896V512zM512 768H0V256h128v274q67-123 163-221t212-166T752 37t272-37q141 0 272 36t245 103 207 160 160 208 103 245 37 272h-128q0-123-32-237t-90-214-141-182-181-140-214-91-238-32q-129 0-251 36T546 267 355 428 215 640h297v128zm512 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm0 384h1024v128H1024v-128zm-863-657q36 129 105 239t166 194 214 140 250 74v130q-154-21-292-83t-250-158-193-224-123-278l123-34z&amp;#39; fill=&amp;#39;${fillColor}&amp;#39;%3E%3C/path%3E%3C/svg%3E`;
  
  // Set the icon
  yourCommand.iconImageUrl = exportSvg;
  
  ...
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The important part here happens in the &amp;quot;Generate the colored icon&amp;quot; notice how we&amp;#39;ve replaced the &lt;strong&gt;%23333333&lt;/strong&gt; in the fill property with our own generated color.&lt;/p&gt;
&lt;p&gt;Using template literals we can then set the color of our SVG, and then set the iconImageUrl of our command to the updated SVG - and there you go, your command bar extension now has a themed icon and will blend in with any SharePoint environment!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/08/themed-icons-spfx-command-bar-extensions/3.webp&quot; alt=&quot;Themed Icon&quot;&gt;
&lt;img src=&quot;https://blog.dan-toft.dk/2023/08/themed-icons-spfx-command-bar-extensions/4.webp&quot; alt=&quot;Themed Icon&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How cool is that?&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Get the SVG icon you want to use&lt;/li&gt;
&lt;li&gt;Encode the SVG icon&lt;/li&gt;
&lt;li&gt;Set the SVG as the iconImageUrl in your command bar extension manifest&lt;/li&gt;
&lt;li&gt;Replace the fill property of the SVG with the current theme color&lt;/li&gt;
&lt;li&gt;Profit!&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item>
<item><title>July in M365</title><link>https://blog.dan-toft.dk/2023/07/july-in-m365/</link><pubDate>Sat, 29 Jul 2023 15:36:46 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/07/july-in-m365/</guid><description>July means summer vavation for most people, but not for Microsoft, but don’t worry, I’ve been keeping track for you let’s see what they’ve been up to!</description><enclosure url="https://blog.dan-toft.dk/2023/07/july-in-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Azure Active Directory is no more, long live Microsoft Entra ID&lt;/h2&gt;
&lt;p&gt;This is an annoying one! - but I guess it makes sense.&lt;/p&gt;
&lt;p&gt;Microsoft is renaming Azure Active Directory to Microsoft Entra ID, I think I heard somewhere that AAD was referenced around 1.8 million times across the Microsoft Docs, so this is a massive undertaking for Microsoft.&lt;/p&gt;
&lt;p&gt;And I think the biggest problem for them will be all the community articles as well, I know I&amp;#39;ve written a few articles where I&amp;#39;ve referenced AAD, and I&amp;#39;m sure I&amp;#39;m not the only one.&lt;/p&gt;
&lt;p&gt;It does make sense from a branding perspective, as AAD never just was just your active directory in Azure.&lt;/p&gt;
&lt;h2&gt;Microsoft 365 Archive&lt;/h2&gt;
&lt;p&gt;This is another one of those &amp;quot;why hasn&amp;#39;t this been a thing before&amp;quot; things - Microsoft is finally going to be letting us archive SharePoint site, in many industries you have to store project data for upwards of 100 years, but you don&amp;#39;t actually need to the data day to day, this feature will let you put a SharePoint site into &amp;quot;cold storage&amp;quot;, and then at a later point you&amp;#39;ll be able to reactivate that site for a fee (the only sample price I could find was USD$ 1.34 for a 128 GB site) this is really cool for those clients that&amp;#39;re running low on storage, and still need to store information due to regulatory requirements.&lt;/p&gt;
&lt;h2&gt;Microsoft 365 Backup&lt;/h2&gt;
&lt;p&gt;Finally! - Built in Backup, right in M365, I&amp;#39;ll be honest, for a while I didn&amp;#39;t see the point in backing up your Microsoft 365 environment ... that was until I had my first client who needed a file that was deleted 5 months ago, well - you&amp;#39;re out of luck.&lt;/p&gt;
&lt;p&gt;With this you get full backup of OneDrive, SharePoint and Exchange built right into M365 - I haven&amp;#39;t seen any pricing just yet, but it does look really cool, and backup is always going to be somewhat expensive (right until you need the backup) - having it built right into the platform is awesome, especially since Microsoft can probably restore files faster then any 3rd party ever would be able to due to throttling, with the rise of ransomware targeted at online services, this is absolutely awesome!&lt;/p&gt;
&lt;p&gt;It does also look like some of these features will be exposed to partners, which means Microsoft are aware that there are people who&amp;#39;ve already made a living doing just this, and they&amp;#39;re not trying to push those guys out of the market.&lt;/p&gt;
&lt;h2&gt;Improvements for document library version limits&lt;/h2&gt;
&lt;p&gt;Another pretty neat feature that was announced this month, with a rollout starting March 2024 is improvements to the number of versions SharePoint stores, or at least the option to improve it.&lt;/p&gt;
&lt;p&gt;Currently we can set a number of versions to keep, on a document library level, but that&amp;#39;s a bit course, this will bring some AIish&amp;#39;ness to the table, and let SharePoint decide how many versions to keep based on several different factors, including the number of users, the number of versions, the frequency of edits, and the size of the files.&lt;/p&gt;
&lt;p&gt;(See roadmap feature id &lt;a href=&quot;https://www.microsoft.com/en-ww/microsoft-365/roadmap?featureid=145802&quot;&gt;145802&lt;/a&gt;)&lt;/p&gt;
&lt;h2&gt;Copilot pricing&lt;/h2&gt;
&lt;p&gt;We finally got some pricing for Copilot! USD$30/month/user - my initial reaction was &amp;quot;that&amp;#39;s steep!&amp;quot; - but as I&amp;#39;ve sat here thinking about it for a bit I think it might actually not be unreasonable, Copilot is not for everyone, it&amp;#39;s for a select group of your users, those who might benefit from a secretary, or those who create content.&lt;/p&gt;
&lt;p&gt;Honestly I could see it being worth the $USD 30 for some employees to pay out of pocket, heck, if my employer won&amp;#39;t cover it, I might pay for it myself, at least if it&amp;#39;s as good as we&amp;#39;ve been promised.&lt;/p&gt;
&lt;h2&gt;List performance increases&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/#performance&quot;&gt;Back in May&lt;/a&gt; we where promised performance increases for lists, and in July these started to roll out! - unfortunately there are some limitations to this, including it not working for lists where you have a custom form experience (either via SPFx or PowerApps), or at least, not yet, and it&amp;#39;s only available in the modern experience.&lt;/p&gt;
&lt;h2&gt;Browse OneDrive by people&lt;/h2&gt;
&lt;p&gt;Something I didn&amp;#39;t know I needed, but that just make sense from the second I saw it! - you can browse files by people! - this just makes sense, we&amp;#39;re humans, we tend to remember things by what people we worked with, maybe more so then what project we worked on, or what the file was called.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/07/july-in-m365/2.webp&quot; alt=&quot;Brose files in OneDrive&quot;&gt;
&lt;sup&gt;Image source: &lt;a href=&quot;https://twitter.com/SuperSimple365/status/1678652905984000001/photo/1&quot;&gt;https://twitter.com/SuperSimple365/status/1678652905984000001/photo/1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h2&gt;Viva pulse roll out started&lt;/h2&gt;
&lt;p&gt;Viva pulse is supposed to be rolling out here in July, I haven&amp;#39;t yet had a chance to play with it, but I&amp;#39;m looking forward to it, I&amp;#39;m hoping it&amp;#39;ll be a good tool for managers to get a feel for how their employees are doing, and how they can improve their work environment.&lt;/p&gt;
&lt;h2&gt;SPFx 1.18&lt;/h2&gt;
&lt;p&gt;July saw the first preview release of SPFx 1.18, 1.18 is what I would call a minor release, but we&amp;#39;re finally seeing one of the most requested features since the release of Adaptive card extensions!&lt;/p&gt;
&lt;p&gt;We&amp;#39;re getting the option to customize the cards, including the option to add buttons right on the front page of your connections dashboard!&lt;/p&gt;
&lt;h2&gt;OneNote supports stream&lt;/h2&gt;
&lt;p&gt;This one is minor, but OneNote finally got support for Stream on SharePoint videos, this is great, because it&amp;#39;s one of those features we&amp;#39;ve been missing in the new roll out of stream on SharePoint.&lt;/p&gt;
&lt;h2&gt;Project Archimedes&lt;/h2&gt;
&lt;p&gt;This one is one that I missed back in May, so I&amp;#39;ll bring it up here! - It&amp;#39;s a game changer in terms of creating useful governance reports, tools like Rencore, Avepoint, ShareGate and alike are probably a bit worried about what the future holds for them.&lt;/p&gt;
&lt;p&gt;A built in tool to generate data for governance reports, this is packaged under the syntex umbrella, so you&amp;#39;ll be paying for your usage, this is awesome since some of the other tools have a minimum license cost of 25 seats to even get started.&lt;/p&gt;
&lt;p&gt;This is a tool that&amp;#39;ll let you generate a sharing report right from within your Microsoft 365 environment, and allegedly it&amp;#39;s able to generate a full report of a tenant with 1.000.000+ documents in just a few hours, this is insane, as soo may of those other tools really struggle with that initial scan.&lt;/p&gt;
&lt;p&gt;From there you should also be able to generate delta reports, so you&amp;#39;re not scraping your entire environment every time.&lt;/p&gt;
&lt;p&gt;The output (to the best of my knowledge) is just a HUGE json file that you can then dump into Power BI and build a report that highlights only what your org asks to see!&lt;/p&gt;
&lt;h2&gt;Bing Chat Enterprise&lt;/h2&gt;
&lt;p&gt;Have you been playing with the Bing chat? - well now Microsoft is bringing Bing Chat Enterprise! - this is the same thing, but with a promise that no company data will ever leave the organization, this is unlike the private version og the Bing chat.&lt;/p&gt;
&lt;p&gt;Bing Chat is essentially a Copilot light, the main difference is in the fact that it does not have access to your data, you need to feed it data!&lt;/p&gt;
&lt;p&gt;Bing chat enterprise is included in select M365 licenses by default, this includes Microsoft 365 E3, E5, Business Standard, and Business Premium. otherwise it can be purchased for an additional price of $USD 5/month/user.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft really seems to have a focus on &amp;quot;what are out partners doing, and can we do that as well?&amp;quot; - which is both awesome and scary to see, they&amp;#39;re slowly eating up partner, both in governance, and now backup, we&amp;#39;re certainly moving towards a future where no data has to leave your M365 environment.&lt;/p&gt;
&lt;p&gt;Other then that, the focus on AI has not slowed down one bit, which is awesome to see!&lt;/p&gt;
</content:encoded></item>
<item><title>June in M365</title><link>https://blog.dan-toft.dk/2023/06/june-in-m365/</link><pubDate>Wed, 28 Jun 2023 19:11:55 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/06/june-in-m365/</guid><description>June was the first month of the year where it finally felt like Microsoft was slowing down their release cadence, or maybe I’ve just been too busy with other stuff to keep up, let’s find out!</description><enclosure url="https://blog.dan-toft.dk/2023/06/june-in-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Teams&lt;/h2&gt;
&lt;h3&gt;Two new types of teams backgrounds&lt;/h3&gt;
&lt;p&gt;Microsoft has announced two new types of backgrounds for Teams, the first is a blurred background with the option to add a image for instance your company logo on top, this is pretty neat to give a &amp;quot;glass wall&amp;quot; effect!&lt;/p&gt;
&lt;p&gt;The second is an animated background, I&amp;#39;m not sure how I feel about the animated backgrounds, but that depends on the implementation, if it&amp;#39;s like on the news where it&amp;#39;s slowly moving it&amp;#39;ll be okay, but imagine being in a call with someone who has nyan cat as their background!&lt;/p&gt;
&lt;h3&gt;Teams new client support for 3. party apps&lt;/h3&gt;
&lt;p&gt;This is only a very minor mention, but we can now finally use your orgs personal teams apps in the new teams app, this is a small thing, but was actually the only thing holding me back from upgrading, super pleased with this one!&lt;/p&gt;
&lt;h3&gt;Sequential Approvals&lt;/h3&gt;
&lt;p&gt;Another feature that was supposed to launch (but I&amp;#39;ve yet to see) is sequential approvals, a feature that let&amp;#39;s you build a multi step process while starting an approval in the approvals app.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really looking forward to this feature, it&amp;#39;s something I often hear requested from customers, when demoing approvals.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/06/june-in-m365/7.webp&quot; alt=&quot;sequential approvals&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Viva&lt;/h2&gt;
&lt;h3&gt;Viva pulse goes public preview&lt;/h3&gt;
&lt;p&gt;Viva pulse is Microsofts tool for managers to &lt;em&gt;keep a finger on the pulse&lt;/em&gt; and get real world feedback from their employees, it&amp;#39;s now in public preview, it&amp;#39;s nice to see Microsoft starting to focus on the employee experience, and not just productivity.&lt;/p&gt;
&lt;p&gt;I have yet to implement any of the Viva modules for any of my customers (except connections), but I&amp;#39;m looking forward to it, and this combined with insights is going to be a great toolkit for managers to see how their employees are doing, and how they can improve their work environment.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-viva-blog/microsoft-viva-pulse-available-for-public-preview/ba-p/3838338&quot;&gt;https://techcommunity.microsoft.com/t5/microsoft-viva-blog/microsoft-viva-pulse-available-for-public-preview/ba-p/3838338&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Viva amplify gets a release date (sorta)&lt;/h3&gt;
&lt;p&gt;Viva amplify is one of the viva tools that I&amp;#39;m looking forward to from a content creation perspective - it&amp;#39;s a tool to let content managers create campaigns and send them to employees via other tools like Engage (Yammer), Teams, SharePoint, Outlook etc, and then view metrics on how their campaigns are doing.&lt;/p&gt;
&lt;p&gt;The roadmap has finally been updated to say that it&amp;#39;s coming in September, so I&amp;#39;m looking forward to that!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/06/june-in-m365/3.webp&quot; alt=&quot;Viva amplify roadmap&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Viva Connections notifications&lt;/h3&gt;
&lt;p&gt;This one is a must beware for IT-admins, a change is coming that&amp;#39;ll make viva connections send notifications, such as @mentions and info about news posts in SharePoint - while I like the idea, this worries me since Viva connections is a part of teams, I fear that users will find these notifications annoying and turn them off, and then miss out on important notifications from teams.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/06/june-in-m365/4.webp&quot; alt=&quot;Viva connections notifications&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Dev&lt;/h2&gt;
&lt;h3&gt;Fluent 2&lt;/h3&gt;
&lt;p&gt;If you&amp;#39;re a dev in the M365 space, you&amp;#39;re no doubt familiar with Fluent UI (formerly Office UI fabric) which is a design toolkit/framework from Microsoft for building apps for M365 that look like they belong! - Fluent 2 is the next iteration of this, and it&amp;#39;s now in publicly available!&lt;/p&gt;
&lt;p&gt;The main focus is on harmonizing the design language across all Microsoft products, from SharePoint to teams.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://fluent2.microsoft.design/&quot;&gt;https://fluent2.microsoft.design/&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Graph Toolkit v. 3.0&lt;/h3&gt;
&lt;p&gt;If you haven&amp;#39;t played with Graph Toolkit now is the time to do so! - It&amp;#39;s a super cool collection of web components that let&amp;#39;s you get started, and build apps with the Microsoft Graph in no time!&lt;/p&gt;
&lt;p&gt;New in this release is better picker components, dark/light mode switcher, improved SPFx support, and the big one for me, account switching!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/microsoft-graph-toolkit-v3-0-is-now-generally-available/&quot;&gt;https://devblogs.microsoft.com/microsoft365dev/microsoft-graph-toolkit-v3-0-is-now-generally-available/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;OneDrive and SharePoint&lt;/h2&gt;
&lt;h3&gt;Favorite documents in SharePoint&lt;/h3&gt;
&lt;p&gt;Another small feature that deserves a small shoutout is the ability to favorite documents in SharePoint, and then find them in your OneDrive later, sorta like the add shortcut to OneDrive, but for a single document.&lt;/p&gt;
&lt;p&gt;A great way to aggregate the files you often work with in a single place.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/06/june-in-m365/6.webp&quot; alt=&quot;Favorite documents&quot;&gt;&lt;/p&gt;
&lt;h3&gt;PDF Annotation and Fillable Form Fields&lt;/h3&gt;
&lt;p&gt;FINALLY - We can now edit PDFs in OneDrive right in the browser, while the feature is very lightweight, it&amp;#39;s a great start, we can highlight, make some quick doodles, or fill out forms, but we can&amp;#39;t add text, images, or sign documents, but it&amp;#39;s a start!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really hoping we&amp;#39;ll see this coming to SharePoint some time in the not too distant future, but I&amp;#39;m not holding my breath since this might be competing with certain syntex features.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/06/june-in-m365/5.webp&quot; alt=&quot;PDF annotation&quot;&gt;&lt;/p&gt;
&lt;h3&gt;OneDrive simplified sharing&lt;/h3&gt;
&lt;p&gt;Permissions in SharePoint and OneDrive have always been tough, Microsoft has taken another stab at improving the experience, they seem to do this every few years, I really like where it&amp;#39;s headed this time around, a few less options for the user to care about, more focus on the end result, and a better experience for the end user. (if the admin has configured the default settings correctly)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/06/june-in-m365/2.webp&quot; alt=&quot;Simplified sharing&quot;&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft certainly didn&amp;#39;t slow down in June, maybe July will be the month where we get a small break, isn&amp;#39;t it awesome being on a platform that&amp;#39;s constantly evolving? - I think so!&lt;/p&gt;
</content:encoded></item>
<item><title>Why you should join a hackathon</title><link>https://blog.dan-toft.dk/2023/06/join-hackathon/</link><pubDate>Fri, 02 Jun 2023 15:27:02 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/06/join-hackathon/</guid><description>Hackathons are a great way to have fun while coding, and learn something new, but why? - let’s take a look</description><enclosure url="https://blog.dan-toft.dk/2023/06/join-hackathon/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;Right now (June 1-15 2023) - Microsoft is hosting a &lt;a href=&quot;https://aka.ms/hack-together-teams&quot;&gt;hackathon&lt;/a&gt;, but what is a hackathon? - and should you join it?&lt;/p&gt;
&lt;h2&gt;What is a hackathon?&lt;/h2&gt;
&lt;p&gt;A hackathon is essentially a nerd race! - often limited by a set timeframe (14 days in the case of the current Teams HackTogether), usually there&amp;#39;s a set of boundary you have to stay within - this can be anything from &amp;quot;solve our business problem&amp;quot;, to as in this case build something that runs in teams!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attended hackathons hosted by smaller organizations while  I was still studying, these where used as a way for the organization to find interns, but disguised as a fun event, with free pizza and beer, and some nerdy prices!&lt;/p&gt;
&lt;p&gt;Microsofts hackathons are slightly different, first off, they&amp;#39;re usually longer then the 1-2 days that a classic hackathon takes, and they&amp;#39;re not used to find employees, but rather to get more developers to see the awesomeness of developing for Microsofts platforms.&lt;/p&gt;
&lt;h2&gt;Why should you join a hackathon?&lt;/h2&gt;
&lt;p&gt;So joining a Microsoft hackathon won&amp;#39;t get you a new job, at least not right away, but your open-source contributions are great to use in a portfolio, so not only do you get to learn something new, but you also get to show it off!&lt;/p&gt;
&lt;p&gt;Secondly at least with Microsofts hackathons, you get to talk directly to industry experts, so if you have any issues, you can get help from the people who actually built the platform you&amp;#39;re building upon!&lt;/p&gt;
&lt;p&gt;They&amp;#39;re also not just a good way to learn a new thing, and show it off, it&amp;#39;s also a great way into the communities surrounding whatever technology the hackathon you&amp;#39;re joining is focused on.&lt;/p&gt;
&lt;p&gt;Lastly, it&amp;#39;s just a great way to have fun, and meet new people, and who knows, maybe you&amp;#39;ll even win a prize! &lt;sup&gt;or at least get an awesome badge!&lt;/sup&gt;&lt;/p&gt;
&lt;h2&gt;What are the downsides?&lt;/h2&gt;
&lt;p&gt;Downsides you say? - well other then learning new stuff, and having fun, there&amp;#39;s not really any downsides, so unless you hate those two things, there&amp;#39;s no reason not to join one!&lt;/p&gt;
&lt;h2&gt;But I&amp;#39;m not good enough!&lt;/h2&gt;
&lt;p&gt;Nonsense! - A hackathon is not about being the best, it&amp;#39;s about having fun, and learning something new, so even if you don&amp;#39;t win, you might have learned a new skill that you can use later in life, which is way more powerful then any xbox you could&amp;#39;ve won!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Remember, every contribution matters!&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;So what are you waiting for?&lt;/h3&gt;
&lt;h2&gt;join now!&lt;/h2&gt;
&lt;h3&gt;&lt;a href=&quot;https://aka.ms/hack-together-teams&quot;&gt;aka.ms/hack-together-teams&lt;/a&gt;&lt;/h3&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Hackathons are a great way to let your inner nerd out, and learn something new, while having fun, and competing for a chance to win cool prizes!&lt;/p&gt;
</content:encoded></item>
<item><title>May in M365</title><link>https://blog.dan-toft.dk/2023/05/may-in-m365/</link><pubDate>Thu, 25 May 2023 00:00:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/05/may-in-m365/</guid><description>May is coming to an end, with M365Conf and just a bunch of other awesome announcements, what did you miss, let’s take a look!</description><enclosure url="https://blog.dan-toft.dk/2023/05/may-in-m365/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;May started out with the super awesome M365 conference, and ended with build! - while I didn&amp;#39;t get to go to either one that doesn&amp;#39;t mean that I won&amp;#39;t be covering the updates from there, many of which unfortunately won&amp;#39;t be out before later this year, so let&amp;#39;s start by taking a look at some of the stuff that launched this month!&lt;/p&gt;
&lt;h2&gt;Outlook on the web work hours and location&lt;/h2&gt;
&lt;p&gt;Outlook online (and the new Outlook) got a nifty new feature this month, &amp;quot;Work Hours and Location&amp;quot; a nifty way to setup and share your work schedule, post pandemic we&amp;#39;ve seen a change in how people work, seeing Microsoft staying on top of this and allowing users to set a custom schedule is awesome!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/2.webp&quot; alt=&quot;The work week planner&quot; title=&quot;The work week planner&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now we&amp;#39;ve had working hours for a very long time, what&amp;#39;s new here is the option to set a location, this is great for those times where you want to schedule a meeting, being able to get an overview of where your colleagues are so you know if you&amp;#39;re doing an in-office or a teams meeting.&lt;/p&gt;
&lt;p&gt;We&amp;#39;re now also able to setup &amp;quot;split working days&amp;quot;, so you can work remote from 08:00 to 11:30 and then maybe you have to pickup your kids you&amp;#39;ll be working again from 18:30 till 22:00 you can now do that without filling your calender with random &amp;quot;blocks&amp;quot;.&lt;/p&gt;
&lt;p&gt;Now not only can you do this on a schedule, you can also change this on a day by day basis, if for instance you&amp;#39;re having a plumber come by, you can just mark tomorrow as a working form home day, unfortunately I haven&amp;#39;t found a way to set several locations on a single day without using the &amp;quot;bigger&amp;quot; schedule tool.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/3.webp&quot; alt=&quot;Setting your location on a day by day basis&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Edit forms responses&lt;/h2&gt;
&lt;p&gt;This feature is pretty neat, it does require admins to enable it in the admin center, but once it&amp;#39;s been turned on, users creating a form will have the option to allow respondents to edit their answers, this is a great feature if you&amp;#39;re using forms for things like &amp;quot;registrations for the christmas party&amp;quot; or other things in that ball park.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/4.jpeg&quot; alt=&quot;Microsoft card&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Modern document sets&lt;/h2&gt;
&lt;p&gt;Another really neat very minor thing that came up this month was actually a bit of a accident, I discovered that flipping a small switch on document sets causes them to modernize, apparently no one else had found this either.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/sharepointfocus&quot;&gt;Daniel Anderson&lt;/a&gt; made a great video about this &lt;a href=&quot;https://www.youtube.com/watch?v=9DYZqoLQ_P4&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;New look for Logic apps&lt;/h2&gt;
&lt;p&gt;Something I&amp;#39;ve really not seen addressed anywhere but that I find pretty neat is that a new look and feel for logic apps has started to roll out, now pure speculation on my side says we&amp;#39;ll see this hitting Power Automate within too long, and there&amp;#39;ll be more of a focus on it then.&lt;/p&gt;
&lt;p&gt;But it looks more &amp;quot;grown up&amp;quot; and less &amp;quot;lego&amp;#39;y&amp;quot; then the old UI huge thumbs up from me!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/5.webp&quot; alt=&quot;The new look&quot;&gt;&lt;/p&gt;
&lt;h2&gt;M365 Conference&lt;/h2&gt;
&lt;p&gt;Now for the big one this month!&lt;/p&gt;
&lt;p&gt;Microsoft 365 conference happened in the beginning of the month, and probably deserves a post of it&amp;#39;s own, but I&amp;#39;ll try to summarize the what, when and whys that matter to you as a M365 user!&lt;/p&gt;
&lt;p&gt;Most of those features unfortunately won&amp;#39;t be available till later this year, or maybe even early next year!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/7.png&quot; alt=&quot;Roadmap&quot; title=&quot;Here is a roadmap with some of the features that&amp;#39;re coming!&quot;&gt;&lt;/p&gt;
&lt;h3&gt;New UI for SharePoint&lt;/h3&gt;
&lt;p&gt;The first major thing that&amp;#39;ll truly affect the end users is what I would call modern UI 2.0, we don&amp;#39;t have a lot of details yet, but we&amp;#39;ll be able to customize SharePoint pages waaaaay more then what we&amp;#39;re currently limited to! - we&amp;#39;ll also be able to co-author SharePoint pages, two users can&amp;#39;t edit the same web part at the same time, but the same page without a problem.&lt;/p&gt;
&lt;p&gt;The following gif is a snippet from the official Microsoft Slides.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/6.gif&quot; alt=&quot;Samples of the new UI&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Brand center &amp;amp; BYOF&lt;/h3&gt;
&lt;p&gt;Along with the above awesome change we&amp;#39;ll also be getting more tenant customizations, what exactly those will be we don&amp;#39;t yet have a full picture of, but we did get one major thing! &lt;strong&gt;BYOF&lt;/strong&gt; (Bring your own font) - soon we&amp;#39;ll be able to bring our own font to SharePoint, I&amp;#39;m looking forward to seeing intranets using wingdings! - this for me is one of those things we&amp;#39;ve wanted since the start of day, I&amp;#39;m really looking forward to seeing how Microsoft will implement this as to not break when people bring crazy fonts!&lt;/p&gt;
&lt;h3&gt;Copilot is everywhere&lt;/h3&gt;
&lt;p&gt;Copilot is Microsofts big promise with AI, I&amp;#39;ll have a full blog post coming on that when I get access and have actual experience to share, as for now it&amp;#39;s looking like it&amp;#39;ll be ChatGPT hooked into your M365 environment!&lt;/p&gt;
&lt;p&gt;The main takeaway from M365 conference regarding Copilot for me was the fact that Copilot truly is coming to everything, from loop to Outlook to SharePoint pages, really everywhere!&lt;/p&gt;
&lt;p&gt;This is also a great reminder that we&amp;#39;re nearing the end of hiding content behind obscurity, Copilot &lt;em&gt;will&lt;/em&gt; find the content if the user has access to it!&lt;/p&gt;
&lt;h3&gt;Lists&lt;/h3&gt;
&lt;p&gt;Another area where we&amp;#39;re seeing loads of improvements is lists! - a product we&amp;#39;ve known and loved for years but in recent years it has gotten a lot of love is now getting even more love!&lt;/p&gt;
&lt;p&gt;Lot&amp;#39;s of this stuff is already making it&amp;#39;s way to the MSA (Microsoft accounts) lists version, and we&amp;#39;ll see them making the way to our organization accounts soon enough.&lt;/p&gt;
&lt;h4&gt;Performance&lt;/h4&gt;
&lt;p&gt;Microsoft has really put a lot of effort into improving performance, allegedly we&amp;#39;re going to see an performance increase that&amp;#39;s close to 50%, loads of this coming from a behind the scenes switch away from IndexDB in the browser.&lt;/p&gt;
&lt;p&gt;And loads of UX improvements to make it more intuitive, and faster to use!&lt;/p&gt;
&lt;h4&gt;Forms&lt;/h4&gt;
&lt;p&gt;Something really cool that I&amp;#39;m personally looking forward to is the ability to not only customize the new and edit forms more then we already can! - but also have several different forms on the same list, and share those forms, not just internally, but also externally (potentially even &lt;a href=&quot;https://twitter.com/mkashman/status/1656747616389181440&quot;&gt;anonymously&lt;/a&gt; - still waiting for full clarification on that one)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/8.gif&quot; alt=&quot;gif demonstrating&quot;&gt;&lt;/p&gt;
&lt;h4&gt;Co-authoring&lt;/h4&gt;
&lt;p&gt;Another thing that for me is a genuine gamechanger, co-authoring in lists, soon several people will be able to edit the same list at the same time, like we&amp;#39;ve been able to in excel for a while, this is something I hadn&amp;#39;t considered the need for, but now I don&amp;#39;t know how we&amp;#39;ve lived without!&lt;/p&gt;
&lt;p&gt;For a lot of collaboration tasks this is pretty cool, imagine tracking tasks during a meeting but now you&amp;#39;re no longer limited to just a single note taker (you could also use loop for this, but that&amp;#39;s still a bit out for full public release)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/9.gif&quot; alt=&quot;gif demonstrating&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Send a page as email&lt;/h3&gt;
&lt;p&gt;Something I&amp;#39;ve often had requests for that we&amp;#39;re now finally seeing is the ability to send a SharePoint news post as an email! - we&amp;#39;ve been able to share them as a link for a while, but being able to share the entire post as an email is super awesome!&lt;/p&gt;
&lt;h3&gt;Open all files in client&lt;/h3&gt;
&lt;p&gt;This was just a side note (at least on twitter where I saw it), but I cannot stress just how cool this is, the number one request I&amp;#39;ve heard over the years is &amp;quot;can I open PDFs in the client like I can with office documents&amp;quot;, FINALLY Microsoft is making some promises to resolve this long standing issue, leveraging the OneDrive app you&amp;#39;ll soon be able to open any file stored in OneDrive or SharePoint in it&amp;#39;s native client!&lt;/p&gt;
&lt;h3&gt;New OneDrive homepage&lt;/h3&gt;
&lt;p&gt;Another really awesome one for me is a new look and feel for OneDrive (and who knows, maybe in the future SharePoint as well) - this new look is more glassy, a bit like we&amp;#39;re seeing in Windows 11, it&amp;#39;s nice to see Microsoft slowly aligning their design language cross product!&lt;/p&gt;
&lt;p&gt;A tiny really nifty feature that I think will have a bigger impact then you might first imagine, not just for accessability, but also for the end users to feel like the product is theirs, colored folders, it&amp;#39;s a small thing, but it adds a lot of personality to the experience of using the app.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/10.webp&quot; alt=&quot;The new OneDrive&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Tenant to Tenant content migrations&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;FINALLY!&lt;/strong&gt; - Microsoft announced something I know hundreds of organizations have wanted throughout the years is finally coming! - built in content migration from tenant to tenant, this seems like we&amp;#39;ll see a very limited, but it&amp;#39;s something that many orgs spend lots of money on each year, Microsoft seems to have aimed for the lowest possible barrier here, so we&amp;#39;ll only be able to migrate content, whatever that means, I&amp;#39;m imagining that&amp;#39;s things like: Files, SitePages and Lists with items, but not any custom solutions, so this isn&amp;#39;t a end all be all tool, but it&amp;#39;s a free option that&amp;#39;ll do for maybe 80% of the mergers that would today need a third party tool like like ShareGate.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/11.webp&quot; alt=&quot;Powershell script showing the migration&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Microsoft Build&lt;/h2&gt;
&lt;p&gt;Another conference that took place this month was Microsoft Build, Microsofts big developer conference, unfortunately at the same time as European Collaboration Summit where I was attending, but that didn&amp;#39;t stop me from reading &lt;a href=&quot;https://news.microsoft.com/build-2023-book-of-news/&quot;&gt;the book of news&lt;/a&gt;, and picking out a few things that really stood out to me!&lt;/p&gt;
&lt;h3&gt;Copilot extensibility&lt;/h3&gt;
&lt;p&gt;We heard news that Copilot will be extensible, with support for the Power Platforms Custom connectors, I&amp;#39;ve also heard we&amp;#39;ll get support for teams message extensions, but I&amp;#39;m unsure if that&amp;#39;s been officially confirmed anywhere yet.&lt;/p&gt;
&lt;p&gt;Teams toolkit will also get a template to build these pretty soon, so you wont even need to change your existing tech-stack to get started!&lt;/p&gt;
&lt;h3&gt;Azure OpenAI Service&lt;/h3&gt;
&lt;p&gt;Azure OpenAI Service&amp;#39;s Azure AI Studio is going into preview now. Ai Studio is a tool that&amp;#39;ll allow orgs to mix in their own data with the LLMs.&lt;/p&gt;
&lt;p&gt;Microsoft also but on a big talk about how they&amp;#39;re making sure the AI &amp;quot;behaves well&amp;quot;, making sure it&amp;#39;s ethics still apply, even if you feed it unbalanced data, there should be no way to train an evil model.&lt;/p&gt;
&lt;h3&gt;Dev drives (is WSL still relevant)&lt;/h3&gt;
&lt;p&gt;This will be a new storage volume type in windows, optimized for development, I&amp;#39;m really hoping this will be a performant drive type that can help with things like escaping anti virus scans, and since it&amp;#39;s a new volume type, maybe we&amp;#39;ll be able to avoid having to use WSL for performant NVM installs, since they might redo the way they manage the files!&lt;/p&gt;
&lt;h3&gt;We will se Copilot for the following products&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Dynamics&lt;/li&gt;
&lt;li&gt;PowerBi&lt;/li&gt;
&lt;li&gt;Fabric&lt;/li&gt;
&lt;li&gt;Windows&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Syntex&lt;/li&gt;
&lt;li&gt;Power Automate&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Of course this is super cool, but I&amp;#39;ll try to steer clear of any promises till I have it in my hands&lt;/p&gt;
&lt;h3&gt;A new Edge for business&lt;/h3&gt;
&lt;p&gt;Bringing a bigger focus on security, and hopefully the customizations organizations often demand, to prevent scenarios like recently where Microsoft added the Bing-GPT button in edge and many larger organizations didn&amp;#39;t appreciate their users using it, or seeing the button there!&lt;/p&gt;
&lt;h3&gt;Microsoft Cost Management&lt;/h3&gt;
&lt;p&gt;This one for me is really cool, a tool that backed by AI will help you better understand your cloud bill, ask it questions using natural language, and get useful responses, if it&amp;#39;ll be able to check for things like unused licenses is not clear to me at this time, but just on the azure side, being able to ask &amp;quot;what&amp;#39;s costing me soo much money&amp;quot; is awesome, and will help any IT admin around the world! - discovering that you&amp;#39;re spending 75% of your budget on a SQL server that you&amp;#39;re not actually using is never fun.&lt;/p&gt;
&lt;h3&gt;Microsoft Fabric&lt;/h3&gt;
&lt;p&gt;A new tool for analytical workloads, integrating AI, Power Bi, Data Factory and Azure Synapse in order to improve your reporting experiences by bringing all the tools you&amp;#39;re already using together with AI.&lt;/p&gt;
&lt;h3&gt;GitHub advanced Security for DevOps goes into preview&lt;/h3&gt;
&lt;p&gt;GitHub advanced Security for DevOps is something that those of us who&amp;#39;re stuck using Azure DevOps have been looking longingly for, features like Code scan, Secrets scanning, and dependency scanning - you know that annoying dependabot email you get once a week? - yeah, that&amp;#39;s coming to your actual production environment, not just your hobby projects! - I find the branding part to be the most interesting of this, keeping the github name to me looks like we might be looking into to a future where DevOps and GitHub are moving closer and closer together.&lt;/p&gt;
&lt;h3&gt;Loads of &amp;quot;Confidential&amp;quot; azure stuff&lt;/h3&gt;
&lt;p&gt;We&amp;#39;re seeing loads of confidential things, things like kubernetes, hardware level trusted VMs, it looks like Microsoft is pushing hard to make Azure an actual option for orgs where security/governance is of high importance, this isn&amp;#39;t a field where I do a lot of work, so I don&amp;#39;t actually know a lot of what options we have today, but seeing even more security options is always awesome!&lt;/p&gt;
&lt;h3&gt;Containers&lt;/h3&gt;
&lt;p&gt;We&amp;#39;re also seeing a big push towards containers in development, an awesome concept that makes development more streamlined, things like deploying containerized Azure Functions in an Azure Container Apps.&lt;/p&gt;
&lt;h3&gt;Azure API Center&lt;/h3&gt;
&lt;p&gt;A new service in Azure that&amp;#39;s a feature of Azure API Management platform that enables tracking APIs in a centralized location for discovery, reuse, and governance, seemingly without the &amp;quot;protection&amp;quot;, and therefor costs normally associated with APIM, I&amp;#39;m really looking forward to playing with it.&lt;/p&gt;
&lt;h3&gt;Microsoft Syntex Repository Services&lt;/h3&gt;
&lt;p&gt;Here we&amp;#39;re getting what Microsoft is calling Syntex repository services, from the looks of it, we&amp;#39;re getting a headless SharePoint site, meaning there&amp;#39;s no UI out of the box, but you have full access to all the APIs, this means you have all the benefits of being inside your M365 environment, like auth, governance and compliance, permission management, collaboration(things like @mentions), and a clean slate for you to build apps on top off!&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any word on pricing yet, but I suspect we&amp;#39;ll see this as more of a pay-as-you-go sorta thing then something that&amp;#39;s consuming your SharePoint storage - this is already what&amp;#39;s powering Loop and designer behind the scenes!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/may-in-m365/12.webp&quot; alt=&quot;Microsoft Syntex Repository Services&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Smaller stuff from Build&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Mesh Avatars are going GA&lt;/li&gt;
&lt;li&gt;There will be an option to build our own mesh rooms&lt;/li&gt;
&lt;li&gt;Document translation in language Studio goes GA&lt;/li&gt;
&lt;li&gt;More ARM support on windows&lt;ul&gt;
&lt;li&gt;This focus makes a ton of sense with the ongoing rumor that Microsoft is currently working on their own SOC&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Github Copilot X in windows Terminal&lt;/li&gt;
&lt;li&gt;Work is being done on Graph APIs for Audit scenarios&lt;/li&gt;
&lt;li&gt;Power Platform excel to app feature (I want to see that before I believe it)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;What a month may was, loads and loads of announcements, less in terms of actual releases, but we got a great insight into the direction Microsoft is headed with their M365 suite! - and as always you should be excited to be along for the ride! 🏎️&lt;/p&gt;
</content:encoded></item>
<item><title>What are document sets, and are they relevant in 2023?</title><link>https://blog.dan-toft.dk/2023/05/document-sets-relevant-2023/</link><pubDate>Mon, 08 May 2023 16:54:17 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/05/document-sets-relevant-2023/</guid><description>Have you heard about document sets? - they’re definitely not the latest, but maybe they’re the greatest?</description><enclosure url="https://blog.dan-toft.dk/2023/05/document-sets-relevant-2023/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Document sets&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Depending on how long you&amp;#39;ve been working with SharePoint you probably either just had a flashback to good old classic document libraries, or you&amp;#39;re sitting here staring into the void thinking document whats?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;What are Document sets&lt;/h3&gt;
&lt;p&gt;Document sets is a fairly old feature that sorta got lost in the process that is the SharePoint classic to Modern UI transformation, and while they technically made a return to modern all the way back in 2019, they still haven&amp;#39;t gotten all the way back to their former glory, often referred to as &amp;quot;the blue folders&amp;quot;, they&amp;#39;re a special folder type.&lt;/p&gt;
&lt;p&gt;Of course you&amp;#39;re able to place files inside them as with any other folder, but the first an most obvious difference is the option to tag them with metadata, but with a bit of trickery, you could also do that on a &amp;quot;yellow folder&amp;quot; using quick edit, so why are they so special?&lt;/p&gt;
&lt;h3&gt;Shared Columns&lt;/h3&gt;
&lt;p&gt;Now why would I want metadata on a folder, well for one it improves searchability, and this is also where document sets have their first really big advantage, &amp;quot;Shared Columns&amp;quot;, with a document set you have the option to &amp;quot;share&amp;quot; specific columns to EVERY file that&amp;#39;s inside the document library, no matter if the content type of the document has that column or not the value will be set on the files, this is really useful for search.&lt;/p&gt;
&lt;p&gt;A classic use-case that you&amp;#39;ll see is a CRM integration, where every opportunity is created as a document set, with a customer column auto populated, this way you can setup a search portal where I can now filter for documents by the customer - making it easy to find what you&amp;#39;re looking for, even across projects!&lt;/p&gt;
&lt;h3&gt;Default content&lt;/h3&gt;
&lt;p&gt;With a document set you have the option to set default content, this means you can automatically create a set of files and/or folders every time a new document set is created, you can even add the name of the document set to those files - that means you can configure it so when you create an opportunity there&amp;#39;ll already be a &amp;#39;data processing agreement ready&amp;#39; for the client to sign, making sure there&amp;#39;s no excuse not to get it signed.&lt;/p&gt;
&lt;h3&gt;Limit content types&lt;/h3&gt;
&lt;p&gt;Another really neat feature, is the ability to limit content types within a document set, so you could theoretically create a setup where you cannot add a data processing agreement to a &amp;quot;self-hosted client&amp;quot; - this is a feature that takes a bit more setup to get right, but when you get it right - it&amp;#39;s a gamechanger!&lt;/p&gt;
&lt;h3&gt;Issues&lt;/h3&gt;
&lt;h4&gt;Classic layout&lt;/h4&gt;
&lt;p&gt;Now it&amp;#39;s not all fun and games, unfortunately whiles&amp;#39;t document sets works in modern UI, Microsoft for some reason still here 3 years after enabling it still haven&amp;#39;t modernized the UI to create them, so users will be redirected to a classic page that looks like ... well Classic SharePoint&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/05/document-sets-relevant-2023/2.webp&quot; alt=&quot;Even if you like the look of classic SharePoint, this looks dated in 2023&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now recently Microsoft created the option for us to control the new form with SPFx by creating &lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-form-customizer&quot;&gt;form customizers&lt;/a&gt; - but I&amp;#39;ve found some odd behavior whereby when you &lt;em&gt;NULL&lt;/em&gt; the new form id for it to use, you&amp;#39;ll actually get a modern experience, why this works, or if it breaks anything else I&amp;#39;ve yet to figure out, so do this at your own risk.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/pnp/script-samples/tree/main/scripts/spo-document-sets-modern-new-form&quot;&gt;I&amp;#39;ve created a script to do it here&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;Welcome pages&lt;/h4&gt;
&lt;p&gt;A feature that never made it to modern UI from classic for some odd reason is the Welcome Pages, they where a way to visually display certain columns, like the description of the document set at the top of the screen when you opened the document set, this meant you could have things like a &amp;quot;project brief&amp;quot; right there, front and center.&lt;/p&gt;
&lt;p&gt;Instead it seems Microsoft has opted to force the information pane on the right to always open whenever a user enters the document set, no matter if it was open or closed prior to them clicking it.&lt;/p&gt;
&lt;p&gt;This provides some of the same aspects, but in a much less &amp;quot;visual&amp;quot; way then before.&lt;/p&gt;
&lt;h4&gt;Getting started - disabled site feature&lt;/h4&gt;
&lt;p&gt;Document sets are a Site Collection feature that you must first enable, and then you can create content types that inherits from them, with the columns that you need, this is a minor thing, but puts the feature out of scope for most newer users, unfortunately.&lt;/p&gt;
&lt;p&gt;It would be nice to see Microsoft do more to raise awareness of this awesome feature, but I guess it&amp;#39;s a chicken and the egg kinda situation.&lt;/p&gt;
&lt;h3&gt;Programmatically&lt;/h3&gt;
&lt;p&gt;Working with document sets from code is actually pretty straight forward, once you&amp;#39;ve done it a few times, the important part is that it&amp;#39;s a two step process to create them.&lt;/p&gt;
&lt;p&gt;First you add a new folder, and then you&amp;#39;ll need to change the Content Type.&lt;/p&gt;
&lt;p&gt;Another thing to be aware of is that you need to set two values in order to rename a document set, both the &lt;em&gt;FileLeafRef&lt;/em&gt; and &lt;em&gt;Title&lt;/em&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;{
    &amp;quot;Title&amp;quot;: &amp;quot;New name&amp;quot;,
    &amp;quot;FileLeafRef&amp;quot;: &amp;quot;New name&amp;quot;,
    &amp;quot;ContentTypeId&amp;quot;:&amp;quot;0x0120.....&amp;quot;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you&amp;#39;re using things like PnP Framework there are built in extension methods to handle this sort of thing right out of the box, so you should be golden there.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Document sets are a great way to introduce more searchability into your documents, and streamline processes of document creation, and metadata maintenance.&lt;/p&gt;
</content:encoded></item>
<item><title>April 2023 in M365</title><link>https://blog.dan-toft.dk/2023/04/april-2023-m365/</link><pubDate>Sat, 29 Apr 2023 10:00:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/04/april-2023-m365/</guid><description>April was another crazy month in M365, let’s take a look af what’s going before the upcoming M365 conference in the beginning of may</description><enclosure url="https://blog.dan-toft.dk/2023/04/april-2023-m365/thumbnail.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;Here we are, April is coming to an end, and oh boy was April another crazy month in M365! - Time flies, and in just a few days &lt;a href=&quot;https://m365conf.com/&quot;&gt;M365 conference&lt;/a&gt; will take off, and we&amp;#39;ll see even more crazy stuff coming up!&lt;/p&gt;
&lt;p&gt;But before we get there, let&amp;#39;s take a look at what has happened in the past month!&lt;/p&gt;
&lt;h2&gt;Teams teams and more teams!&lt;/h2&gt;
&lt;h3&gt;The new Teams&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/&quot;&gt;Last month was crazy&lt;/a&gt;, but low and behold, within hours of publishing that previous post Microsoft announced the public preview of &lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-365/blog/2023/03/27/welcome-to-the-new-era-of-microsoft-teams/&quot;&gt;the new Teams windows app&lt;/a&gt;, this is a preview of what&amp;#39;s to come.&lt;/p&gt;
&lt;p&gt;Right now it&amp;#39;s very much a &amp;quot;lightweight&amp;quot; client, missing certain features that would be nice to see, such as 3. Party apps, search, teams creation, and some other things, but Microsoft are working very hard to bring this new client back up to speed with the &amp;quot;old&amp;quot; client.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/1.webp&quot; alt=&quot;List of features&quot; title=&quot;Snapshot of the current feature list&quot;&gt;&lt;/p&gt;
&lt;p&gt;The main focus appears to have been performance, some of the stats I&amp;#39;ve seen online are twice as fast, 50% smaller install size, waaay less memory usage.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s really good to see Microsoft taking the approach of &amp;quot;let&amp;#39;s try this with a clean slate&amp;quot;, I&amp;#39;ve seen a lot of criticism online of the approach, but I think it&amp;#39;s important to realize that Microsoft is building a product, not running a project with an end goal, so this was probably the right thing to do!&lt;/p&gt;
&lt;h3&gt;Snapchat filters&lt;/h3&gt;
&lt;p&gt;Another feature that Microsoft implemented is Snapchat filters in Teams ... I&amp;#39;m really not sure how to feel about this one, on the one hand I really like it, it&amp;#39;s great fun for informal internal meetings, but the very first time someone called me after I had played with it, I picked up pressing the camera icon in the notification, and now I&amp;#39;m sitting here in front of my client with a chicken on my head, not sure what to think, but it&amp;#39;s a thing, do with it what you want, or maybe turn it off.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/2.webp&quot; alt=&quot;First impressions&quot; title=&quot;What even is the point of this?&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Teams avatars&lt;/h3&gt;
&lt;p&gt;Mesh avatars also went into public preview this month, avatars are a great way to handle camera burn-out, often times you might be eating, working from home, or something else where you don&amp;#39;t want to be on camera (or just not feeling it), now you have the option to create and use an avatar to represent you on screen instead, it&amp;#39;s actually a pretty genius way to relax a bit more, and definitely something I see myself using in the future for those meetings where you&amp;#39;re just not wanting to be on camera!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/3.webp&quot; alt=&quot;Avatars in a meeting&quot; title=&quot;Avatars in a meeting&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Spatial audio in Teams meetings&lt;/h3&gt;
&lt;p&gt;One last thing that I want to call out on the teams side of things, that really flew under the radar in my book is &lt;a href=&quot;https://support.microsoft.com/en-us/office/spatial-audio-in-teams-meetings-547b5f81-1825-4ee1-a1cf-f02e12db4fdb&quot;&gt;spatial audio&lt;/a&gt; it is a new feature that&amp;#39;ll allow you to hear people in more of a 3D spatial way, this means that if someone is on the left of your screen in that camera grid we all know and love, the&amp;#39;ll sound like they&amp;#39;re to the left of you!&lt;/p&gt;
&lt;p&gt;Really looking forward to see this one come more to life later, hoping for things like together mode support, or maybe even meeting room support!&lt;/p&gt;
&lt;h2&gt;SharePoint&lt;/h2&gt;
&lt;h3&gt;Better Page Authoring Experience&lt;/h3&gt;
&lt;p&gt;Microsoft is making some changes to the page authoring experience, such as being able to switch layout types outside the property pane on web parts, being able to customize text on images, and making the add section feature easier to find, these are all just small tweaks that add together to make the whole product more coherent, and intuitive for new users!&lt;/p&gt;
&lt;h3&gt;SPFx 1.17&lt;/h3&gt;
&lt;p&gt;This one is more for the devs - SharePoint Framework version 1.17 released, the main thing for &amp;quot;clients&amp;quot; is that the &amp;quot;top actions&amp;quot; we saw in 1.16 now went GA, (also makes sense since we&amp;#39;re seeing it in MS web parts now)&lt;/p&gt;
&lt;p&gt;Other then that we saw a ton of &lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/announcing-sharepoint-framework-1-17-with-updates-for-microsoft-teams-microsoft-viva-and-sharepoint/&quot;&gt;dev awesomeness&lt;/a&gt;, from ACEs getting Adaptive cards schema v1.5 to improvements to authentication.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/4.webp&quot; alt=&quot;The option to have a additional properties right in the authoring experience&quot; title=&quot;The option to have a additional properties right in the authoring experience&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Filters in Microsoft lists&lt;/h3&gt;
&lt;p&gt;Another change that&amp;#39;s coming is a smaller detail when using Microsoft/SharePoint lists, you&amp;#39;ll be able to see which filters you&amp;#39;ve got applied currently, this is an awesome idea, it&amp;#39;s something that can be seen in the URL already, but brining it front and center for the users is awesome!&lt;/p&gt;
&lt;p&gt;This feature is set to release April 2023 on the &lt;a href=&quot;https://www.microsoft.com/da-dk/microsoft-365/roadmap?filters=&amp;searchterms=117585&quot;&gt;roadmap&lt;/a&gt;, but I have yet to see it on any of my dev tenants.&lt;/p&gt;
&lt;h2&gt;Power Platform&lt;/h2&gt;
&lt;h3&gt;Modern controls in canvas apps&lt;/h3&gt;
&lt;p&gt;Something that I&amp;#39;m more excited about then what I probably should be is that &amp;quot;modern controls&amp;quot; for Power apps went into public preview, this means that now you can take your awesome Power App, and make it look modern and nice without being a CSS magician!&lt;/p&gt;
&lt;p&gt;Definitely looking forward to playing more with this one!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/5.webp&quot; alt=&quot;The &amp;#39;classic&amp;#39; layout of Power Apps&quot; title=&quot;The &amp;#39;classic&amp;#39; layout of Power Apps&quot;&gt;
&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/6.webp&quot; alt=&quot;The modern controls&quot; title=&quot;The modern controls&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Power Platform 2023 release wave 1&lt;/h3&gt;
&lt;p&gt;I won&amp;#39;t cover this one too much (there&amp;#39;s a 190 page PDF explaining it if you&amp;#39;re curious) but the 2023 release wave 1 dropped for power platform.&lt;/p&gt;
&lt;p&gt;One of the key things I really liked is the natural language generation of Power Automate flows, I had a ton of fun playing with it, and even got to demo it for a class of computer science students who&amp;#39;s minds where blown, but also some of the layout changes in CRM were pretty neat!&lt;/p&gt;
&lt;h2&gt;Viva&lt;/h2&gt;
&lt;h3&gt;Glint&lt;/h3&gt;
&lt;p&gt;Microsoft announced a great partnership/integration with Glint, a market leader in employee feedback meets Microsofts AI, this looks really promising, having an option to in natural language ask about your employees well being, this is really an awesome addition to the Viva suite, which already has a ton of data on your employees work habbits, adding glint to that is something I&amp;#39;m really looking forward to see create a ton of value in loads of organizations!&lt;/p&gt;
&lt;h2&gt;Microsoft 365&lt;/h2&gt;
&lt;h3&gt;Unified domain Cloud.Microsoft&lt;/h3&gt;
&lt;p&gt;Microsoft has decided to unify all of their many cloud solutions into a single domain, this is done to streamline the user experience, and hopefully help to improve security as Microsoft owns all rights to the .Microsoft top-level domain, meaning no one can make a &amp;quot;fake&amp;quot; page that has a URL like team5.cloud.microsoft, ideally no user action should be needed for this change, BUT you should really warn your users once this starts rolling out.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/april-2023-m365/7.gif&quot; alt=&quot;Cloud.Microsoft&quot;&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;You&amp;#39;re on a constantly evolving platform, and teams has really been getting overhauled this month, not only with a new version, but also loads of new features!&lt;/p&gt;
&lt;p&gt;In the coming month we&amp;#39;ll see the M365 conference in vegas which promises to bring what sounds like &amp;quot;the next SharePoint&amp;quot;, I don&amp;#39;t know about you, but I&amp;#39;m &lt;strong&gt;SUPER&lt;/strong&gt; stoked!&lt;/p&gt;
&lt;h2&gt;Sources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://adoption.microsoft.com/en-us/new-microsoft-teams/&quot;&gt;The new Microsoft Teams (Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-teams-blog/oh-snap-let-your-silly-side-shine-with-snapchat-lenses-for/ba-p/3788722&quot;&gt;Snapchat filters&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-teams-blog/avatars-for-microsoft-teams-in-public-preview/ba-p/3774421&quot;&gt;Avatars for Microsoft Teams in Public Preview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://support.microsoft.com/en-us/office/spatial-audio-in-teams-meetings-547b5f81-1825-4ee1-a1cf-f02e12db4fdb&quot;&gt;Spatial audio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://m365admin.handsontek.net/sharepoint-improving-the-page-authoring-experience/&quot;&gt;SharePoint: Improving the Page Authoring Experience&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/announcing-sharepoint-framework-1-17-with-updates-for-microsoft-teams-microsoft-viva-and-sharepoint/&quot;&gt;SPFx 1.17&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.microsoft.com/da-dk/microsoft-365/roadmap?filters=&amp;searchterms=117585&quot;&gt;Applied filter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/modern-controls/overview-modern-controls&quot;&gt;Modern controls in canvas apps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/power-platform/release-plan/2023wave1/&quot;&gt;Microsoft Power Platform: 2023 release wave 1 plan&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/microsoft-viva/viva-and-glint&quot;&gt;Microsoft Viva and Glint&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-365-blog/introducing-cloud-microsoft-a-unified-domain-for-microsoft-365/ba-p/3804961&quot;&gt;Introducing cloud.microsoft: a unified domain for Microsoft 365 apps and services&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item>
<item><title>Uncovering the mysteries of the missing user profile images</title><link>https://blog.dan-toft.dk/2023/04/uncovering-mysteries-missing-user-profile-images/</link><pubDate>Fri, 14 Apr 2023 18:21:49 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/04/uncovering-mysteries-missing-user-profile-images/</guid><description>If you’ve ever dealt with missing user profile images in SharePoint Online, you know exactly what this post will be about - let’s do a deep dive on what’s going on, right there in front of us - and why it’s not working.</description><enclosure url="https://blog.dan-toft.dk/2023/04/uncovering-mysteries-missing-user-profile-images/Thumbnail.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;What is user profiles?&lt;/h2&gt;
&lt;p&gt;Users profiles is a mysterious place, it&amp;#39;s a database of users from your AD, but mirrored to SharePoint, it&amp;#39;s also the foundation of &lt;a href=&quot;https://support.microsoft.com/en-us/office/what-is-delve-1315665a-c6af-4409-a28d-49f8916878ca&quot;&gt;Delve&lt;/a&gt;, it also provides additional fields that aren&amp;#39;t in the AD, for people to populate themselves, such as skills, education and projects you&amp;#39;ve worked on.&lt;/p&gt;
&lt;p&gt;It does however seem like Microsoft is moving this stuff to other platforms, and slowly killing off delve, such as the pronouns feature ending up in the Azure AD, cover photos in Viva engage, and the whole myaccount page which as been getting overhauled. - *this is all my best guess, I have seen no official statements from Microsoft to back this up! - so take it with a grain of salt *&lt;/p&gt;
&lt;h2&gt;The profile photo issues&lt;/h2&gt;
&lt;p&gt;A common issue for quite some years now has been IT updating the profile photo in the Active Directory and it for some reason not syncing to SharePoint, this would give a super detached experience where you could see a user without an image, hover your mouse over them, have the profile card pop up only for them to have a picture in the card.&lt;/p&gt;
&lt;p&gt;Now Microsoft is slowly moving their official web parts to use the Graph API to pull photos, so the out of the box experience is surely getting better, but many old custom web parts will still have issues (there are 90 references to userphoto.aspx in the &lt;a href=&quot;https://github.com/search?q=org%3Apnp+userphoto.aspx&amp;type=code&quot;&gt;PnP SPFx samples&lt;/a&gt;) and it&amp;#39;s still not possible to use the graph API in column formatters, so it&amp;#39;s hard to do a low-code solution that has access to the right photo.&lt;/p&gt;
&lt;p&gt;So we really do need that photo to be in sync! - but unfortunately it seems to get out of sync, or just not sync more often then what&amp;#39;s reasonable, and for a myriad of reasons that aren&amp;#39;t clear to neither users or IT, heck I still haven&amp;#39;t found a &amp;quot;one size fits all&amp;quot; explanation, but I&amp;#39;ve found a few things that I would like to address.&lt;/p&gt;
&lt;h3&gt;Prerequisites for images to sync&lt;/h3&gt;
&lt;p&gt;It is a requirement that the user has a &lt;strong&gt;Exchange Online Mailbox&lt;/strong&gt;, just having the license isn&amp;#39;t enough, so if you&amp;#39;re running an hybrid environment with exchange on prem, this is because there actually isn&amp;#39;t any OOTB sync from Azure Active Directory to SharePoint Online, it&amp;#39;s actually a Azure Active Directory to Exchange to SharePoint, and only upon the user requesting a photo of themselves (visiting a SharePoint page) this is also why it can sometimes take days for the full sync to complete.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/04/uncovering-mysteries-missing-user-profile-images/1.webp&quot; alt=&quot;Diagram showing the complexity of user profile photo sync&quot; title=&quot;Diagram showing the complexity of user profile photo sync&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;sub&gt;&lt;a href=&quot;https://social.technet.microsoft.com/Forums/lync/en-US/97386378-7a4c-49d2-a7cb-959ef94131bf/user-profile-picture-not-syncingdisplaying-in-sp-online-and-delve?forum=onlineservicessharepoint&quot;&gt;Photo credit&lt;/a&gt;&lt;/sub&gt;&lt;/p&gt;
&lt;h2&gt;What can be done&lt;/h2&gt;
&lt;p&gt;It&amp;#39;s more then possible to manually sync the photos around the sync job, but before we go down that path, Microsoft somewhat recently released a pretty neat tool that&amp;#39;ll help you diagnose why a single user isn&amp;#39;t getting their photo updated, it&amp;#39;s in the admin center, &lt;a href=&quot;https://aka.ms/PillarPictureSync&quot;&gt;give it a try&lt;/a&gt; if you&amp;#39;re still having issues, syncing manually is definitely an option.&lt;/p&gt;
&lt;h3&gt;Manually syncing&lt;/h3&gt;
&lt;p&gt;The photos are stored in the my-sites site collection: &lt;em&gt;https://{Tenant}-my.SharePoint.com&lt;/em&gt; in a document library named &amp;#39;Profile Picture&amp;#39; &lt;em&gt;(or whatever that translates to in the tenants original language.. yes they localized that location)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In here there will be three photos for each user, named based on the users guid from the AAD:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Dimensions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;&amp;lt;User Object ID&amp;gt;_SThumb.jpg&lt;/td&gt;
&lt;td&gt;48x48&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt;User Object ID&amp;gt;_MThumb.jpg&lt;/td&gt;
&lt;td&gt;72x72&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt;User Object ID&amp;gt;_LThumb.jpg&lt;/td&gt;
&lt;td&gt;300x300&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;After this you can set the &lt;em&gt;PictureURL&lt;/em&gt; property on their user profile and it&amp;#39;ll update all around SharePoint almost instantaneously.&lt;/p&gt;
&lt;p&gt;Unfortunately this cannot be done with application permissions, you need a legacy ACS authentication with &lt;em&gt;Full control&lt;/em&gt; on both social and content at tenant level, which is frustrating.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;FULL DISCLOSURE!&lt;/strong&gt; - I have no idea if this breaks the sync from exchange, or if exchange just overwrites after a few days, do it at your own risk.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Microsoft doesn&amp;#39;t seem to care about the photos not syncing as they might slowly be killing off user profiles.&lt;/p&gt;
&lt;p&gt;If your sync is not running check the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;User has photo in Azure Active Directory&lt;ul&gt;
&lt;li&gt;And is not a guest&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;User has an exchange online mailbox&lt;/li&gt;
&lt;li&gt;User has signed into SharePoint Online a few days after photo has been added to AAD&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;https://aka.ms/PillarPictureSync&quot;&gt;Try Microsofts own diagnostics tool&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If for some reason it&amp;#39;s not possible to fix one of the prerequisites, it&amp;#39;s possible to manually sync the photos around the built in sync job.&lt;/p&gt;
&lt;h2&gt;Resources&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://support.microsoft.com/en-us/office/information-about-profile-picture-synchronization-in-microsoft-365-20594d76-d054-4af4-a660-401133e3d48a&quot;&gt;The official documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/troubleshoot/administration/profile-picture-not-showing&quot;&gt;Official help guide for photos not syncing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item>
<item><title>Dealing with the 5k item limit in SharePoint APIs</title><link>https://blog.dan-toft.dk/2023/04/dealing-5k-item-limit-sharepoint-apis/</link><pubDate>Tue, 11 Apr 2023 17:25:17 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/04/dealing-5k-item-limit-sharepoint-apis/</guid><description>If you’ve ever dealt with large lists in SharePoint from a dev perspective you might’ve run into the list view threshold exceptions at some point</description><enclosure url="https://blog.dan-toft.dk/2023/04/dealing-5k-item-limit-sharepoint-apis/Thumbnail.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;Before we even get started talking about the list view threshold, let&amp;#39;s make one thing &lt;em&gt;VERY&lt;/em&gt; clear!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Microsoft lists is &lt;strong&gt;not&lt;/strong&gt; a relational database!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now that we&amp;#39;ve got that out of the way this post will summarize my experiences working with large lists, some with upwards of 500k elements, without folders, it&amp;#39;s more than possible - is it a good idea? - let&amp;#39;s have a look.&lt;/p&gt;
&lt;h2&gt;What is the list view threshold, and why it&amp;#39;s there&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve worked with SharePoint as a dev for some time, you&amp;#39;ve eventually run into the issue of &lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/troubleshoot/lists-and-libraries/items-exceeds-list-view-threshold&quot;&gt;&amp;quot;The number of items in this list exceeds the list view threshold&amp;quot;&lt;/a&gt;, Microsoft has a few tips on it, the main one being &amp;quot;use modern&amp;quot; - well that doesn&amp;#39;t help you when you&amp;#39;re using the APIs, not even via Graph API, so what do you do?&lt;/p&gt;
&lt;p&gt;Firstly, I want to address why it&amp;#39;s there, I&amp;#39;ve seen a lot of people saying Microsoft should just remove the limit, you could do that on-premise, but I genuinely disagree with this stance, it&amp;#39;s there for performance reasons, but also as a dev you should really stop and think &amp;quot;am I doing something wrong here&amp;quot; anytime you&amp;#39;re fetching 5000 rows at once from a SharePoint list.&lt;/p&gt;
&lt;p&gt;So the limit is there to save the system from performance degradation, but also limit just how slow a query you&amp;#39;re doing can get, not just to prevent timeouts, but also to prevent a bad user experience.&lt;/p&gt;
&lt;p&gt;Now If you&amp;#39;re getting the message there are a few things you can do to get around the issue, let&amp;#39;s have a look at those:&lt;/p&gt;
&lt;h2&gt;Filtering&lt;/h2&gt;
&lt;p&gt;Firstly, the most simple thing to do, and something you should always be doing, is to make sure that you&amp;#39;re filtering the dataset to limit how much data you&amp;#39;re fetching, using the REST APIs you can do this with OData filters, or &lt;a href=&quot;https://blog.dan-toft.dk/2023/03/caml-query-in-2023/&quot;&gt;CAML&lt;/a&gt;, both have the same limits in terms of the 5000 items, so really just go for whichever one you&amp;#39;re most comfortable with.&lt;/p&gt;
&lt;h3&gt;The filtering order matters!&lt;/h3&gt;
&lt;p&gt;Now something that took me longer then I would like to admit to wrap my head around is that the order in which you write your filter actually matters, coming from an SQL background, I&amp;#39;m sure the same applies there, but you don&amp;#39;t notice it in the same way since there aren&amp;#39;t the same limits.&lt;/p&gt;
&lt;p&gt;Now due to the nature of how this limit is applied, no specific part of your query can result in a result set of 5.000 items, this means choosing the order of your filters can have a huge impact.&lt;/p&gt;
&lt;p&gt;Looking at the &lt;a href=&quot;#sample-data---contacts-list&quot;&gt;contacts list&lt;/a&gt; at the bottom of this page, let&amp;#39;s say I want to receive a list of all consultants at &amp;#39;Company A&amp;#39;, I could filter in two ways:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Job title == &amp;#39;Consultant&amp;#39; and Company == &amp;#39;Company A&amp;#39;&lt;/code&gt; or &lt;code&gt;Company == &amp;#39;Company A&amp;#39; and Job title == &amp;#39;Consultant&amp;#39;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Both will leave me with the same result, but depending on how the rest of my data looks, one might work and the other might fail.&lt;/p&gt;
&lt;p&gt;They&amp;#39;re evaluated left to right, so the two statements executing will look something like this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Job title == &amp;#39;Consultant&amp;#39; and Company == &amp;#39;Company A&amp;#39;&lt;/code&gt; - Give me everyone with the job title &amp;#39;Consultant&amp;#39; - &lt;strong&gt;2 results&lt;/strong&gt; - of those, give the ones who work at &amp;#39;Company A&amp;#39; - &lt;strong&gt;1 result&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Company == &amp;#39;Company A&amp;#39; and Job title == &amp;#39;Consultant&amp;#39;&lt;/code&gt; - Give the the ones who work at &amp;#39;Company A&amp;#39; - &lt;strong&gt;1 result&lt;/strong&gt; - of those, give me the ones with the job title &amp;#39;Consultant&amp;#39; - &lt;strong&gt;1 result&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now this is a fairly simple example, but if our list had more then 5001 people with the job title consultant, the first statement would actually fail, same goes the other way around.&lt;/p&gt;
&lt;p&gt;So keep the order in mind when you&amp;#39;re designing your query, always query by the most distinct property first, and then narrow down from there.&lt;/p&gt;
&lt;h2&gt;Indexing&lt;/h2&gt;
&lt;p&gt;Now we&amp;#39;ve talked a lot about filters in the above sections, once your list grows beyond 5.000 items you&amp;#39;ll need to index columns in order to filter using them, think of indexing as marking a column for query - &lt;a href=&quot;https://www.vrdmn.com/2012/11/sharepoint-list-indexes-under-hood.html&quot;&gt;behind the scenes&lt;/a&gt; a lot more is going on that we&amp;#39;ll not worry about today.&lt;/p&gt;
&lt;p&gt;Most of the time if your list just grows slowly, SharePoint (Online) will actually automatically setup indexes for you, but in some cases I&amp;#39;ve found that to not work, so just set them up manually if you know you&amp;#39;ll be using them.&lt;/p&gt;
&lt;p&gt;This is done by going to &lt;strong&gt;list settings&lt;/strong&gt; under the columns press the &lt;strong&gt;Indexed columns&lt;/strong&gt; link, &lt;strong&gt;Create a new index&lt;/strong&gt; and you&amp;#39;re off to the races, you&amp;#39;ll be given the option to add a secondary column, here in theory this is supposed to improve performance when those two columns are queried together, but it does not change any of the limits, and from &lt;a href=&quot;https://twitter.com/tanddant/status/1644069468476264456&quot;&gt;my twitter feed&lt;/a&gt; it seems to be mostly theoretical.&lt;/p&gt;
&lt;h2&gt;Dynamic data&lt;/h2&gt;
&lt;p&gt;Now common for the two things above is that they hardly require any changes to your codebase, maybe a rewrite of your filter, but that should really be about it.&lt;/p&gt;
&lt;p&gt;If the above two do not solve your problems, maybe we&amp;#39;re attacking the issue in the wrong way, if your app shows a long list of data you really should consider loading in more data as needed, for instance when I scroll to the bottom of the list, this can be done using paging, or better yet the &lt;a href=&quot;https://learn.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.client.list.renderlistdataasstream?view=sharepoint-csom&quot;&gt;RenderListDataAsStream API&lt;/a&gt;, that&amp;#39;s how the modern list views manage to show large lists (and also why you sometimes see the &lt;strong&gt;load more&lt;/strong&gt; button on the page).&lt;/p&gt;
&lt;p&gt;This will not only allow you to show data from a very large list, but also really improve the user experience of your app, as you&amp;#39;re no longer fetching all the data before showing it, but rather you&amp;#39;re fetching it as you need it, this does of course mean that you have to do a bit more of code rewrite, so do be sure to test that the API does what you need it to before going down this route.&lt;/p&gt;
&lt;h2&gt;Archive data&lt;/h2&gt;
&lt;p&gt;Another option is to archive data - and here I&amp;#39;m not talking about having a &lt;strong&gt;inactive&lt;/strong&gt; flag on your items, although that could actually work, I&amp;#39;ve seen it done as a &amp;quot;temporary&amp;quot; fix - a flow that sets a boolean on every list item at the start of every week, and every query to the list just has &lt;code&gt;Archived eq 0&lt;/code&gt; but at this point you&amp;#39;re already peeing your pants to stay warm, please don&amp;#39;t actually do this unless it&amp;#39;s very temporary.&lt;/p&gt;
&lt;p&gt;The right solution is to move your data off to somewhere else, this could be an SQL instance, Dataverse, or even just a separate SharePoint list, it&amp;#39;s important to realize that data has a lifetime, and while you might not want to delete the data, you should still archive it once it&amp;#39;s no longer actively being worked on!&lt;/p&gt;
&lt;h2&gt;Other data sources&lt;/h2&gt;
&lt;h3&gt;SQL&lt;/h3&gt;
&lt;p&gt;Something I realized at one point while helping out an individual who was stuck with a list view threshold issue was that the person knew that SharePoint lists wasn&amp;#39;t the correct approach, but really liked the provided APIs from SharePoint, and I mean, who can disagree, OData is pretty awesome, but something that not everyone knows, is that OData is a library that you can easily implement in something like Azure functions, checkout this sample &lt;a href=&quot;https://github.com/xuzhg/WebApiSample/tree/main/AzureFuncDemo&quot;&gt;Azure Functions with OData&lt;/a&gt;, now combine that with Entity Framework, and you&amp;#39;re off to the races.&lt;/p&gt;
&lt;p&gt;This way you won&amp;#39;t have any problems dealing with many thousands of items at a time.&lt;/p&gt;
&lt;h3&gt;Dataverse&lt;/h3&gt;
&lt;p&gt;Another option is &lt;a href=&quot;https://learn.microsoft.com/da-dk/power-apps/maker/data-platform/data-platform-intro&quot;&gt;Dataverse&lt;/a&gt;, Dataverse is the database behind the Power Platform, it&amp;#39;s essentially an end user database that&amp;#39;s easily setup and managed by a power user, and easily connects with the Power Platform.&lt;/p&gt;
&lt;p&gt;While Dataverse does come with a slight license cost, so does running an SQL server in Azure, here you&amp;#39;re given everything from security to APIs right out of the box.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;The threshold is there to ensure the performance of your app, make sure you index your columns, filter in a smart and efficient way, and consider using modern APIs like RenderListDataAsStream if you&amp;#39;re building a responsive app.&lt;/p&gt;
&lt;p&gt;And remember, data has a lifecycle, &lt;strong&gt;archive it!&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;Resources&lt;/h2&gt;
&lt;h3&gt;Sample Data - Contacts list&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;First Name&lt;/th&gt;
&lt;th&gt;Last Name&lt;/th&gt;
&lt;th&gt;Company&lt;/th&gt;
&lt;th&gt;Job title&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Dan&lt;/td&gt;
&lt;td&gt;Toft&lt;/td&gt;
&lt;td&gt;Company A&lt;/td&gt;
&lt;td&gt;Consultant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Casey&lt;/td&gt;
&lt;td&gt;Smith&lt;/td&gt;
&lt;td&gt;Microsoft&lt;/td&gt;
&lt;td&gt;Manager&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jim&lt;/td&gt;
&lt;td&gt;Smith&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;Manager&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Brian&lt;/td&gt;
&lt;td&gt;Jacobsen&lt;/td&gt;
&lt;td&gt;Contoso&lt;/td&gt;
&lt;td&gt;Consultant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;John&lt;/td&gt;
&lt;td&gt;Doe&lt;/td&gt;
&lt;td&gt;Contoso&lt;/td&gt;
&lt;td&gt;CEO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;...&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h3&gt;Read more&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/microsoft-365/community/large-lists-large-libraries-in-sharepoint&quot;&gt;Community docs - Living Large with Large Lists and Large Libraries&lt;/a&gt; - great tips if you do deiced to stay in a SharePoint list, or you&amp;#39;re on-prem.&lt;/p&gt;
</content:encoded></item>
<item><title>March 2023 in M365</title><link>https://blog.dan-toft.dk/2023/03/march-2023-m365/</link><pubDate>Sat, 25 Mar 2023 13:24:10 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/03/march-2023-m365/</guid><description>What a month it has been, so many new features and announcements, these where some of my favorites from the month that passed</description><enclosure url="https://blog.dan-toft.dk/2023/03/march-2023-m365/thumbnail.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;The month of march has been super packed with awesome announcements, product launches and previews! - and while it&amp;#39;s not over yet, let&amp;#39;s take a quick look at some of them.&lt;/p&gt;
&lt;h2&gt;The minor stuff&lt;/h2&gt;
&lt;h3&gt;Teams files&lt;/h3&gt;
&lt;p&gt;I don&amp;#39;t know if you know this, but teams has a files &amp;quot;app&amp;quot;, now I never really use it, or introduce clients to it, as it&amp;#39;s pretty damn useless, for me it usually just shows a bunch of random files that I&amp;#39;m not sure what to do with, and don&amp;#39;t know when I worked on - I always wanted it to be more smart, and find the files I might actually need.&lt;/p&gt;
&lt;p&gt;Well it&amp;#39;s getting an overhaul that looks really promising, pulling content from SharePoint, OneDrive and everywhere else where you interact with files on M365.&lt;/p&gt;
&lt;p&gt;This is a minor change, but a very welcome one, this means using the files tab in Teams should soon become a lot more like the OneDrive homepage, with some more &amp;quot;easy to understand&amp;quot; filters for filetypes, hopefully making it quick and easy to find what you&amp;#39;re looking for.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/1.webp&quot; alt=&quot;The new experience&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Microsoft Drop&lt;/h3&gt;
&lt;p&gt;Drop was one of those product announcements that really took me by surprise, it&amp;#39;s a simple product idea, but it solves a years long problem, at least for us Windows/Android users - years ago Apple announced Airdrop, a quick way to share files between your Mac and iOS device.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve wanted a native feature for this for years, now we&amp;#39;re finally starting to see something in that regards on the windows/android ecosystem - Microsoft announced drop - an edge feature that let&amp;#39;s you drag n&amp;#39; drop files from your PC to your phone with the only requirement being having edge on both devices ... oh by the way, it also works on mac and iOS. now what&amp;#39;s really happening here is that the files are being uploaded to your OneDrive in a more convenient way.&lt;/p&gt;
&lt;p&gt;Also it does not enable the &amp;quot;nearby share&amp;quot; that AirDrop has (yet) - but being able to share files and text from right where you already are is awesome, and honestly as a long time chrome user this might be enough to bring me over to the edge train.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/2.webp&quot; alt=&quot;Screenshot of drop&quot;&gt;&lt;/p&gt;
&lt;h3&gt;New &amp;quot;my groups&amp;quot; experience&lt;/h3&gt;
&lt;p&gt;Honestly, when I heard of this announcement on the &lt;a href=&quot;https://www.messagecentershow.com/&quot;&gt;365 Message Center Show&lt;/a&gt; I was about as blown away as the hosts that this &amp;quot;product&amp;quot; even existed, apparently there is a &lt;a href=&quot;https://mygroups.microsoft.com&quot;&gt;mygroups.microsoft.com&lt;/a&gt;, that will very conveniently list all the groups that you&amp;#39;re a member of, and also a convenient list of the groups you&amp;#39;re an owner off - man the number of times where this would&amp;#39;ve been nice to know to quickly help diagnose an issue.&lt;/p&gt;
&lt;p&gt;Well it&amp;#39;s getting a makeover, and a new URL that the existing one will redirect to (myaccount.microsoft.com/groups)[&lt;a href=&quot;https://myaccount.microsoft.com/groups/%5D&quot;&gt;https://myaccount.microsoft.com/groups/]&lt;/a&gt; - to me it makes a lot of sense to move it under the myaccount resource.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also getting a more modern look and feel, which is a great addition because the existing one, well looks a bit dated, using a more &amp;quot;classic&amp;quot; square look and feel, where as the new one uses the more soft corners, and colors of modern M365.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/3.webp&quot; alt=&quot;The new &amp;quot;my groups&amp;quot; experience&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Planner templates&lt;/h3&gt;
&lt;p&gt;A very small feature that I haven&amp;#39;t seen enough people talking about, perhaps because it&amp;#39;s still in the very early roll-out stages are templates for Planner, this one is a major feature! - currently only a few limited default templates are supported, but with Microsofts focus on templates across the products my gut feeling tells me that we&amp;#39;ll see options to build our own in the coming months!&lt;/p&gt;
&lt;p&gt;This is a huge benefit as this is something I often meet in the field as a request, and while we could build this ourselves with the &lt;a href=&quot;https://blog.dan-toft.dk/2023/02/planner-application-permissions/&quot;&gt;Application permissions&lt;/a&gt; that launched back in january there&amp;#39;s also a cost associated with that, so getting this out of the box will be a great benefit to many - It&amp;#39;s also something that Trello has had for years, and that makes it hard to sell Planner as a real replacement.&lt;/p&gt;
&lt;p&gt;So as excited as I am for this one, I&amp;#39;m more excited for what&amp;#39;s to come! - but this is a great start to &amp;quot;show the art of possible&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/4.webp&quot; alt=&quot;Create planner board from a template&quot;&gt;&lt;/p&gt;
&lt;h2&gt;The two big once&lt;/h2&gt;
&lt;h3&gt;Microsoft Loop&lt;/h3&gt;
&lt;p&gt;For a what feels like close to a year now we&amp;#39;ve had loop components in Teams chats, and it&amp;#39;s a pretty nifty feature, I&amp;#39;ve found myself using it more and more over the recent months, in the beginning I had lots of issues with users getting access denied when I had just created a component in our chat which never really made sense to me - but it like so many other first generation products have gotten a ton better, and the components are great for things like working on a table of pros or cons, an simple agenda for a upcoming meeting, the collaboration options are really nice - and with the option to embed them in more places from Outlook web to Word online there&amp;#39;s definitely huge potentials for loop as a whole.&lt;/p&gt;
&lt;p&gt;But this month we got the biggest &amp;quot;update&amp;quot; yet, loop launched as a &lt;a href=&quot;https://loop.microsoft.com/&quot;&gt;product&lt;/a&gt; by itself, currently you need an admin to enable it on your tenant, due to it not yet supporting the compliance features that are required by most organizations, so I had to use my dev tenant to play with it, and didn&amp;#39;t get to really enjoy the full collaboration experience just yet.&lt;/p&gt;
&lt;p&gt;But from the little bit of playing i did with it by myself what I&amp;#39;ll say is this is OneNote 2035, it&amp;#39;s fast, it&amp;#39;s fluent, you get this super nice editor that just makes it super easy to generate content that looks sleek - It&amp;#39;s almost like &lt;a href=&quot;https://www.markdownguide.org/&quot;&gt;Markdown&lt;/a&gt; - but less complicated, and faster to use because there are shortcuts to generate things like a table, honestly, if the integration between a Loop workspace, and a Teams team where more seamless, I would be replacing all my OneNote usage with loop - for now it&amp;#39;s definitely my new personal notes app ... or will be once they release the Android app, there&amp;#39;s an open preview for the iOS app in case you&amp;#39;re interested.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/5.webp&quot; alt=&quot;Microsoft loop app&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Copilot&lt;/h3&gt;
&lt;p&gt;It doesn&amp;#39;t feel like it&amp;#39;s all that long ago we had the pleasure of getting Github Copilot, back then my brain exploded, and then came Chat-GPT, rinse and repeat - honestly I don&amp;#39;t need to cover that, it&amp;#39;s been covered a billion times Chat-GPT is freaking awesome!&lt;/p&gt;
&lt;p&gt;Now Microsoft announced &lt;a href=&quot;https://blogs.microsoft.com/blog/2023/03/16/introducing-microsoft-365-copilot-your-copilot-for-work/&quot;&gt;Microsoft 365 Copilot&lt;/a&gt;, no release date or anything yet, it&amp;#39;s only currently being tested at 20 companies world wide, but from what we&amp;#39;re seeing and hearing this really looks like it could very well change the way information workers do their job, and not just a little bit we&amp;#39;re talking massively, like to the level of everyone having their own PA.&lt;/p&gt;
&lt;p&gt;Essentially it&amp;#39;s bringing Chat-GPT to your tenant and into your apps, writing an email and realize you&amp;#39;re a bit frustrated in your tone? - simple prompt &lt;code&gt;Please rewrite this email bot more formal&lt;/code&gt; - there you go, ask it to draft you an email to the client telling them that you&amp;#39;ve gone over budget due to them changing the specs, &lt;code&gt;Draft me a 2 paragraph email going over why we&amp;#39;ve gone over budget due to changes in the scope&lt;/code&gt;. - &amp;#39;Well Chat-GPT can do those as well&amp;#39; - yeah, but this is where Copilot takes it to the next level! - need to find out which month you did the most revenue pr. working hour - simple open your revenue excel sheet and ask Copilot, right there within your spreadsheet!&lt;/p&gt;
&lt;p&gt;Now all of those are very &amp;quot;isolated&amp;quot; tasks - just like helping with grammar in word, which it&amp;#39;s also supposed to do, but what I&amp;#39;m really excited about is the broader aspect, prompts like &amp;quot;I just got back from vacation, summarize all my emails from the last week, and let me know which once I should act on immediately - and which once I can just delete.&lt;/p&gt;
&lt;p&gt;Need to know how in your org might know something about wind turbines, just ask it, &amp;quot;Who has worked on clients that deal with wind turbines?&amp;quot; and it should know.&lt;/p&gt;
&lt;p&gt;What is really awesome is that it gathers all of it&amp;#39;s knowledge from within the walls of your tenant, this means you shouldn&amp;#39;t find it returning answers that don&amp;#39;t apply to your org (unless that is of course you have wrong information written down).&lt;/p&gt;
&lt;p&gt;This to me looks like it will change how we work! - I see it as the biggest change in the workforce potentially since I was born, we&amp;#39;re going from people needing to understand computers to do their jobs, to computers understanding humans, and aiding them in doing their job more efficiently, this is a whole new world!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really looking forward to this one!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/march-2023-m365/6.webp&quot; alt=&quot;Preview of the Copilot content generation prompt&quot;&gt;&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;M365 continues to evolve, and we keep seeing more and more awesome features coming from small efficiency improvements to the M365 Copilot that might very well change the way we work over the next few years! - the future is now, and it&amp;#39;s on M365!&lt;/p&gt;
&lt;p&gt;Also keep your eyes out for what&amp;#39;s to come from the &lt;a href=&quot;https://m365conf.com/&quot;&gt;Microsoft 365 Conference&lt;/a&gt; in the beginning of may! - I Won&amp;#39;t get to be there, but I have no doubt we&amp;#39;ll see a bunch of new and exciting things being announced, and or released!&lt;/p&gt;
</content:encoded></item>
<item><title>Automating with SharePoint list events</title><link>https://blog.dan-toft.dk/2023/03/sharepoint-list-events/</link><pubDate>Fri, 17 Mar 2023 19:22:32 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/03/sharepoint-list-events/</guid><description>Remote event receivers, webhooks, sockets, Power automate and along, what are the pros and cons</description><enclosure url="https://blog.dan-toft.dk/2023/03/sharepoint-list-events/thumbnail.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;Automating lists&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;ve been working with SharePoint lists you&amp;#39;ve inevitably run into the need to know when an item/document has been created or edited, or something else.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s multiple ways to achieve this, in this post I&amp;#39;ll go over some of the options that can enable us to do this, weigh the pros and cons of each, so you can take the best possible decision for your project!&lt;/p&gt;
&lt;h3&gt;List rules&lt;/h3&gt;
&lt;p&gt;Rules are perhaps the newest take on automating lists, they&amp;#39;re easy for an end user to setup, all it takes is going to the list you want to automate and clicking through a quick wizard&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/sharepoint-list-events/1.webp&quot; alt=&quot;&amp;quot;Menu to create the rule&amp;quot;&quot;&gt;
&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/sharepoint-list-events/2.webp&quot; alt=&quot;&amp;quot;Options for when the rule should trigger&amp;quot;&quot;&gt;
&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/sharepoint-list-events/3.webp&quot; alt=&quot;&amp;quot;Setting up the rule&amp;quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;List rules are super great because they allow you to really quickly setup a rule, and have a super intuitive UI, however they&amp;#39;re greatly limited in terms of what they can do, it&amp;#39;s pretty much limited to &lt;code&gt;when x changes (and y == z) send and email to &amp;lt;user&amp;gt;&lt;/code&gt; so use cases could include stuff like a task list where the assignee might change and need an email - another downside is that there&amp;#39;s no way to change the email that&amp;#39;s being sent from, and up until recently it was just sent from a random Microsoft account, now recently Microsoft announced that they would change this so that the user who last changed the rule will be the sender, this is not necessarily great either, as you&amp;#39;re now suddenly sending emails without knowing it. - an option to customize the email would be really nice, maybe that&amp;#39;s coming in the future.&lt;/p&gt;
&lt;h3&gt;Power Automate (Logic apps)&lt;/h3&gt;
&lt;p&gt;The next easiest way to get going is with &lt;a href=&quot;https://powerautomate.microsoft.com/&quot;&gt;Power Automate&lt;/a&gt;, Microsoft&amp;#39;s low code automation tool, when you go to create a instant cloud flow you&amp;#39;ll have a bunch of options, and more are coming often!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/sharepoint-list-events/4.webp&quot; alt=&quot;The options in Power Automate&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now with Power Automate your options are essentially unlimited, with &lt;a href=&quot;https://powerautomate.microsoft.com/en-us/connectors/&quot;&gt;like 900+ of connectors&lt;/a&gt; the limit really is your imagination, from sending emails to posting to twitter, anything is possible.&lt;/p&gt;
&lt;p&gt;Honestly this is most likely the best option to what you&amp;#39;re trying to do, with two major exceptions:&lt;/p&gt;
&lt;p&gt;Provisioned sites - one of the things that&amp;#39;re really frustrating with the SharePoint triggers is that they&amp;#39;re all based on a single list, I haven&amp;#39;t found an efficient way to use flows distributed, some people achieve this with a column formatter, this is an alright solution, but it requires the user to press a button, so I&amp;#39;m not really counting it here.&lt;/p&gt;
&lt;p&gt;The other is the trigger delay, if you&amp;#39;re running a &amp;quot;free&amp;quot; tier flow, it seems to be delayed by 1-5 minutes, this goes down to seconds if you&amp;#39;re on premium, so if speed is important to you, you really need to be on premium.
Now this is not too much of an issue, but more something to be aware of in case you&amp;#39;re going back and doing something to the list item, you might run into a situation where the item has already changed again! - so please go for premium if speed is important.&lt;/p&gt;
&lt;h3&gt;Websockets&lt;/h3&gt;
&lt;p&gt;The first pro-code option we&amp;#39;ll look at is websockets, websockets are super awesome because they provide an very much instant notification when a change happens, this can client side be done with the @microsoft/sp-list-subscription, but should also be possible from daemon code, unfortunately with a websocket the only notification you get is &amp;quot;something changed&amp;quot; - not anything in regards to which item, this means you can hook it up to a list and display the lists data somewhere else and you&amp;#39;ll know immediately if something in the lists changes, unfortunately you&amp;#39;ll just have to load the lists data to see what.&lt;/p&gt;
&lt;p&gt;I see this mainly useful for dashboards since we don&amp;#39;t know which item changed, I&amp;#39;ve only used this once in production and that was a summary web part that displayed some real time stats based on a SharePoint list, unfortunately I ended up switching up this model due to a bug that now appears to be &lt;a href=&quot;https://github.com/SharePoint/sp-dev-docs/issues/6477&quot;&gt;resolved&lt;/a&gt;, but I don&amp;#39;t see this a great option due simply to the fact that you don&amp;#39;t know what changed, also server to server websocket connections are fragile in my experience.&lt;/p&gt;
&lt;h3&gt;Webhooks&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/apis/webhooks/lists/overview-sharepoint-list-webhooks&quot;&gt;Webhooks&lt;/a&gt; are probably the solution Microsoft really wants you to use! - they provide a wide range of events from the list - ranging from new attachments to item moved, this is great because unlike with the websocket you actually know what happened, but at the same time the webhook does not contain compromising data as you&amp;#39;ll only get a reference to what site, list and item that have changed, so it&amp;#39;s up to you to find the new and old values for instance.&lt;/p&gt;
&lt;p&gt;Creating a webhook is a bit more cumbersome than most of the other methods discussed here, but once you&amp;#39;ve done it a few times it&amp;#39;s easy enough, there are however more than a few disadvantages to webhooks, some of which I think Microsoft really needs to address at some point.&lt;/p&gt;
&lt;p&gt;My main problems are best summed up here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;They&amp;#39;re pretty slow to fire, like 1-5 minutes, timing seems random&lt;/li&gt;
&lt;li&gt;They work as a subscription - which means you&amp;#39;ll need to &amp;quot;renew&amp;quot; them at least every 180 days, if you&amp;#39;re running a provisioning scenario where you might have 1000+ sites with lists you need to be subscribed to this quickly becomes an overhead&lt;/li&gt;
&lt;li&gt;You have to respond with an OK http message within 5 seconds, essentially rendering any non always-on hosting option useless&lt;/li&gt;
&lt;li&gt;If your backend fails too many times in a given period the webhook will be removed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now this does not mean you shouldn&amp;#39;t use webhooks, they&amp;#39;re still great, and definitely the way you should move, also to be somewhat future proof, especially compared the next option we&amp;#39;ll look at that does all of the above, (and IMO does it better), the main reason I end up not using webhooks is simply the set up and maintenance that comes with them.&lt;/p&gt;
&lt;p&gt;But that&amp;#39;s not to say that webhooks don&amp;#39;t have their advantages, one of those being that it&amp;#39;s (AFAIK) the only one of the tools listed here that have a built in retry logic, meaning that if your backend code is unavailable SharePoint will retry in order to ensure that you get the notification - this is really a game changer compared to the other options!&lt;/p&gt;
&lt;p&gt;Another huge benefit is the security aspect, with a webhook you get the bare minimum amount of data to know what has changed, compared to the next option we&amp;#39;ll look at this is way more secure!&lt;/p&gt;
&lt;h3&gt;Remote event receivers (ReR)&lt;/h3&gt;
&lt;p&gt;Perhaps the oldest option on this list (I did skip Workflows since I pretty much only work with SPO) is ReRs, they&amp;#39;re still my most used option for a few reasons, which frustrates me because they&amp;#39;re very much a legacy technology, they require an ACS app registration to setup (or a user, but please never do that, it&amp;#39;ll be tied to that account and die with the account) - ReRs have some advantages compared to the above options, perhaps my favorite is the synchronous option, this means we have the option to intercept the create/edit event, and even more powerfully we have an option to block them!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/sharepoint-list-events/5.webp&quot; alt=&quot;Blocked request&quot;&gt;&lt;/p&gt;
&lt;p&gt;This means you can setup joined unique values, in cases where you want there to only be one item with a given set of values, or you want to make sure people actually filled out a field with more than just a &amp;quot;.&amp;quot; - another usage is syncing real time to another service.&lt;/p&gt;
&lt;p&gt;Another really cool thing about ReRs is how fast even the async operations are triggered, we&amp;#39;re talking less then 2 seconds from item created till you receive your &lt;em&gt;SOAP&lt;/em&gt; request ... you read that right, now luckily there are plenty of good XML to C# tools online, or even built right into Visual Studio so you can easily parse the request and use it in anything you want - I mostly go for Azure Functions.&lt;/p&gt;
&lt;p&gt;Now unlike the above options with ReRs you actually get to know more info then just &amp;quot;something changed&amp;quot;, or &amp;quot;this item changed&amp;quot; - we get a full list of the changed properties (slightly different behavior in libraries and lists, see &lt;a href=&quot;#remote-event-receivers-properties-table&quot;&gt;The ReR properties table&lt;/a&gt; at the bottom of this page) this means you can track how the users have changed data, even without looking in the version history, but also that there&amp;#39;s data from your list potentially going to third parties if you don&amp;#39;t know where your ReR is pointing to!&lt;/p&gt;
&lt;p&gt;Another great thing about ReRs are that they&amp;#39;re dead simple in their implementation, simply provide a URL, and you&amp;#39;re off to the races, no need to validate the URL, or anything, and no required response, it&amp;#39;s just off to the races, this also means they&amp;#39;re VERY MUCH fire and forget, and if your backend is down you WILL loose requests, so proceed with caution!.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;List rules are great for informing users something changed&lt;/li&gt;
&lt;li&gt;Power Automate is the perfect low code option to know when things change&lt;/li&gt;
&lt;li&gt;Websockets are best used when you would normally pull the data every few seconds&lt;/li&gt;
&lt;li&gt;Webhooks are the way to go if you&amp;#39;re developing a solution today!&lt;/li&gt;
&lt;li&gt;Remote event receivers are the legacy tech that really needs a modernizations (please Microsoft)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Remote event receivers properties table&lt;/h2&gt;
&lt;p&gt;Full credit to &lt;a href=&quot;https://sites.google.com/site/icsharepoint2010/desarrollo/beforeproperties-afterproperties-in-event-receivers&quot;&gt;this page&lt;/a&gt; for building the lists, I&amp;#39;ve seen them around the web for years, but my bookmark had died when I was writing this post, so here&amp;#39;s another backup&lt;/p&gt;
&lt;hr&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;List&lt;/th&gt;
&lt;th&gt;BeforeProperties&lt;/th&gt;
&lt;th&gt;AfterProperties&lt;/th&gt;
&lt;th&gt;properties.ListItem&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;ItemAdding&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;New value&lt;/td&gt;
&lt;td&gt;Null&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemAdded&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;New value&lt;/td&gt;
&lt;td&gt;New value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemUpdating&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Changed value&lt;/td&gt;
&lt;td&gt;Original value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemUpdated&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Changed value&lt;/td&gt;
&lt;td&gt;Changed value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemDeleting&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Original value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemDeleted&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Null&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;hr&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;BeforeProperties&lt;/th&gt;
&lt;th&gt;AfterProperties&lt;/th&gt;
&lt;th&gt;properties.ListItem&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;ItemAdding&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Null&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemAdded&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;New value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemUpdating&lt;/td&gt;
&lt;td&gt;Original value&lt;/td&gt;
&lt;td&gt;Changed value&lt;/td&gt;
&lt;td&gt;Original value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemUpdated&lt;/td&gt;
&lt;td&gt;Original value&lt;/td&gt;
&lt;td&gt;Changed value&lt;/td&gt;
&lt;td&gt;Changed value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemDeleting&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Original value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ItemDeleted&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;No value&lt;/td&gt;
&lt;td&gt;Null&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content:encoded></item>
<item><title>🐫(CAML) Query: What is it and why is it relevant in 2023?</title><link>https://blog.dan-toft.dk/2023/03/caml-query-in-2023/</link><pubDate>Tue, 07 Mar 2023 06:56:37 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/03/caml-query-in-2023/</guid><description>You might’ve heard of CAML query, but what is it, why do you need to know about it? - and is it even still relevant here in 2023</description><enclosure url="https://blog.dan-toft.dk/2023/03/caml-query-in-2023/thumbnail.webp" type="image/webp" length="0"/><content:encoded>&lt;h3&gt;Why this post&lt;/h3&gt;
&lt;p&gt;Recently I had the great pleasure of presenting a sample web part &lt;a href=&quot;https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-caml2table&quot;&gt;CAML to Table&lt;/a&gt; on a &lt;a href=&quot;https://www.youtube.com/watch?v=SPJiV5CbRUc&quot;&gt;PnP Community call&lt;/a&gt;, during that presentation something occurred to me from the chat: Not everyone know what CAML is!&lt;/p&gt;
&lt;p&gt;Now, not only did that make my presentation confusing to some, it also means they&amp;#39;re missing out on some great opportunities.&lt;/p&gt;
&lt;h3&gt;So what is CAML?&lt;/h3&gt;
&lt;p&gt;CAML is short for Collaborative Application Markup Language and is an XML based syntax to query data in SharePoint (Microsoft) Lists.&lt;/p&gt;
&lt;p&gt;CAML has been around for at least 10 years at this point, at might have a bit of a &amp;quot;old ring&amp;quot; to it because of it&amp;#39;s XML nature, but it&amp;#39;s very much hidden right there in plain sight - every time you create a view, filter a list, or even sort a list, it&amp;#39;s all CAML, it&amp;#39;s just hidden so you don&amp;#39;t have to worry about is.&lt;/p&gt;
&lt;p&gt;Traditionally CAML has only been something for coders to worry about, but I genuinely believe that if you&amp;#39;re doing anything with lists you should at least look at the basics of it, because it can really help you present the data you want to show, and hide the rest!&lt;/p&gt;
&lt;h3&gt;Getting started&lt;/h3&gt;
&lt;p&gt;The easiest way to get started, is to find a list, setup a view with a simple filter - connect to the site with &lt;a href=&quot;https://pnp.github.io/powershell/&quot;&gt;PnP.PowerShell&lt;/a&gt; and run the following two lines to see the query of the view you&amp;#39;ve just created&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;$view = Get-PnPView -List &amp;quot;Onboarding tasks&amp;quot; -Identity &amp;quot;Done Tasks&amp;quot; -Includes ViewQuery
Write-Host $view.ViewQuery
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The output will be in a single line, but using a tool like VS Code to format it you&amp;#39;ll notice it&amp;#39;s just XML&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;Where&amp;gt;
    &amp;lt;Eq&amp;gt;
        &amp;lt;FieldRef Name=&amp;quot;Status&amp;quot; /&amp;gt;
        &amp;lt;Value Type=&amp;quot;Text&amp;quot;&amp;gt;Done&amp;lt;/Value&amp;gt;
    &amp;lt;/Eq&amp;gt;
&amp;lt;/Where&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Looking at a simple CAML query it&amp;#39;s actually somewhat readable, &lt;code&gt;WHERE &amp;lt;The field status&amp;gt; is equal to &amp;lt;the text value &amp;#39;Done&amp;#39;&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now this query is somewhat simple, but the great part about writing CAML query is that we get to mix and match our &amp;#39;ANDs&amp;#39; and &amp;#39;ORs&amp;#39; and get creative really fast, let&amp;#39;s say we want all the Stevens, no matter their age, and Dans that are over 20 and under 30:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;Query&amp;gt;
    &amp;lt;Where&amp;gt;
        &amp;lt;Or&amp;gt;
            &amp;lt;Eq&amp;gt;
                &amp;lt;FieldRef Name=&amp;quot;Name&amp;quot; /&amp;gt;
                &amp;lt;Value Type=&amp;quot;Text&amp;quot;&amp;gt;Steven&amp;lt;/Value&amp;gt;
            &amp;lt;/Eq&amp;gt;
            &amp;lt;And&amp;gt;
                &amp;lt;Eq&amp;gt;
                    &amp;lt;FieldRef Name=&amp;quot;Name&amp;quot; /&amp;gt;
                    &amp;lt;Value Type=&amp;quot;Text&amp;quot;&amp;gt;Dan&amp;lt;/Value&amp;gt;
                &amp;lt;/Eq&amp;gt;
                &amp;lt;And&amp;gt;
                    &amp;lt;Gt&amp;gt;
                        &amp;lt;FieldRef Name=&amp;quot;Age&amp;quot; /&amp;gt;
                        &amp;lt;Value Type=&amp;quot;Number&amp;quot;&amp;gt;20&amp;lt;/Value&amp;gt;
                    &amp;lt;/Gt&amp;gt;
                    &amp;lt;Lt&amp;gt;
                        &amp;lt;FieldRef Name=&amp;quot;Age&amp;quot; /&amp;gt;
                        &amp;lt;Value Type=&amp;quot;Number&amp;quot;&amp;gt;30&amp;lt;/Value&amp;gt;
                    &amp;lt;/Lt&amp;gt;
                &amp;lt;/And&amp;gt;
            &amp;lt;/And&amp;gt;
        &amp;lt;/Or&amp;gt;
    &amp;lt;/Where&amp;gt;
&amp;lt;/Query&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now if you&amp;#39;re anything like me you can look at that and get an idea of what&amp;#39;s going on, but writing it ... no thanks!&lt;/p&gt;
&lt;p&gt;Here we&amp;#39;re incredibly lucky that the community has our back!&lt;/p&gt;
&lt;p&gt;There are two libraries you should know about:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.npmjs.com/package/camljs&quot;&gt;camljs&lt;/a&gt; by &lt;a href=&quot;https://twitter.com/amarkeev&quot;&gt;Andrei Markeev&lt;/a&gt; is a great JS library that allows you to write CAML queries in a more fluent style - there&amp;#39;s also a great &lt;a href=&quot;https://chrome.google.com/webstore/detail/camljs-console/ohjcpmdjfihchfhkmimcbklhjdphoeac&quot;&gt;browser extension&lt;/a&gt; also by Andrei, that wraps the library in an easy to use way.&lt;/p&gt;
&lt;p&gt;Here is the same query from above but written in camljs&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JavaScript&quot;&gt;var query = new CamlBuilder().Query().Where()
                    .TextField(&amp;quot;Name&amp;quot;).EqualTo(&amp;quot;Steven&amp;quot;).Or()
                    .TextField(&amp;quot;Name&amp;quot;).EqualTo(&amp;quot;Dan&amp;quot;).And()
                    .NumberField(&amp;quot;Age&amp;quot;).GreaterThan(20).And()
                    .NumberField(&amp;quot;Age&amp;quot;).LessThan(30).ToString();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now if you&amp;#39;re writing .NET, there&amp;#39;s also a library, &lt;a href=&quot;https://github.com/sadomovalex/camlex&quot;&gt;Camlex.NET&lt;/a&gt; by &lt;a href=&quot;https://twitter.com/sadomovalex&quot;&gt;Alexey Sadomov&lt;/a&gt; - which uses LINQ to setup the filters for your query, like here:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;Camlex.Query().Where(x =&amp;gt; (string)x[&amp;quot;Name&amp;quot;] == &amp;quot;Steven&amp;quot; || (string)x[&amp;quot;Name&amp;quot;] == &amp;quot;Dan&amp;quot; &amp;amp;&amp;amp; ((double)x[&amp;quot;Age&amp;quot;] &amp;gt; 20,0 &amp;amp;&amp;amp; (double)x[&amp;quot;Age&amp;quot;] &amp;lt; 30,0))
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Using the CAML query&lt;/h3&gt;
&lt;p&gt;Alright, so now you&amp;#39;ve created an awesome query, and maybe even tested it with the CAML2Table sample I mentioned earlier, now what can we do with it? - well CAML is super awesome because it&amp;#39;s the tech behind views, this means we can set a views filter to a CAML query &lt;strong&gt;Beware that this well reset if someone changes the filter and saves the view.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Setting the filter is done with PnP.PowerShell like this&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-PowerShell&quot;&gt;Set-PnPView -List &amp;quot;People&amp;quot; -Identity &amp;quot;Stevens and Dans in their 20s&amp;quot; -Values @{ViewQuery = &amp;quot;&amp;lt;Where&amp;gt;&amp;lt;Or&amp;gt;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&amp;#39;Name&amp;#39; /&amp;gt;&amp;lt;Value Type=&amp;#39;Text&amp;#39;&amp;gt;Steven&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&amp;lt;And&amp;gt;&amp;lt;Eq&amp;gt;&amp;lt;FieldRef Name=&amp;#39;Name&amp;#39; /&amp;gt;&amp;lt;Value Type=&amp;#39;Text&amp;#39;&amp;gt;Dan&amp;lt;/Value&amp;gt;&amp;lt;/Eq&amp;gt;&amp;lt;And&amp;gt;&amp;lt;Gt&amp;gt;&amp;lt;FieldRef Name=&amp;#39;Age&amp;#39; /&amp;gt;&amp;lt;Value Type=&amp;#39;Number&amp;#39;&amp;gt;20&amp;lt;/Value&amp;gt;&amp;lt;/Gt&amp;gt;&amp;lt;Lt&amp;gt;&amp;lt;FieldRef Name=&amp;#39;Age&amp;#39; /&amp;gt;&amp;lt;Value Type=&amp;#39;Number&amp;#39;&amp;gt;30&amp;lt;/Value&amp;gt;&amp;lt;/Lt&amp;gt;&amp;lt;/And&amp;gt;&amp;lt;/And&amp;gt;&amp;lt;/Or&amp;gt;&amp;lt;/Where&amp;gt;&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Notice we removed the &amp;lt;Query&amp;gt; and &amp;lt;/Query&amp;gt;&lt;/p&gt;
&lt;h3&gt;CAML vs. SP REST&lt;/h3&gt;
&lt;p&gt;Now if you&amp;#39;ve worked with REST and OData you might be thinking &amp;quot;I can do all of that with the REST API easier&amp;quot; - whether it is easier or not I&amp;#39;ll leave up to you, but, there are a few REALLY cool tricks we can do with CAML, that cannot be done with REST&lt;/p&gt;
&lt;h4&gt;The &lt;code&gt;IN&lt;/code&gt; statement&lt;/h4&gt;
&lt;p&gt;Have you ever seen something like this &lt;code&gt;Name eq &amp;#39;Dan&amp;#39; or Name eq &amp;#39;Steven&amp;#39; or Name eq &amp;#39;Brian&amp;#39;....&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;CAML makes this really easy - with up to 1000 values in your filter (There are &lt;a href=&quot;https://sharepoint.stackexchange.com/questions/80210/caml-query-limitation-of-values-in-in-operator&quot;&gt;workarounds to that limit as well&lt;/a&gt;)&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;Where&amp;gt;
    &amp;lt;In&amp;gt;
        &amp;lt;FieldRef Name=&amp;quot;Name&amp;quot; /&amp;gt;
        &amp;lt;Values&amp;gt;
            &amp;lt;Value Type=&amp;quot;Text&amp;quot;&amp;gt;Dan&amp;lt;/Value&amp;gt;
            &amp;lt;Value Type=&amp;quot;Text&amp;quot;&amp;gt;Steven&amp;lt;/Value&amp;gt;
            &amp;lt;Value Type=&amp;quot;Text&amp;quot;&amp;gt;Brian&amp;lt;/Value&amp;gt;
            ...
        &amp;lt;/Values&amp;gt;
    &amp;lt;/In&amp;gt;
&amp;lt;/Where&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Membership operator&lt;/h4&gt;
&lt;p&gt;This one is REALLY powerful - have you ever had a task list in SharePoint with an assignee field you might&amp;#39;ve had that case where a task needs to be assigned to a group, now using a SharePoint Group and a person field that allows groups we can use the &lt;code&gt;Membership&lt;/code&gt; operator to filter based on if the current user is in that group using the &lt;code&gt;CurrentUserGroups&lt;/code&gt; filter - this way we can have a shared task list-&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;Where&amp;gt;
    &amp;lt;Membership Type=&amp;quot;CurrentUserGroups&amp;quot;&amp;gt;
        &amp;lt;FieldRef Name=&amp;quot;Responsible&amp;quot; /&amp;gt;
    &amp;lt;/Membership&amp;gt;
&amp;lt;/Where&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Next level is hiding the tasks that are done, and just like that you have a list of tasks that are pending pr. department&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;Query&amp;gt;
    &amp;lt;Where&amp;gt;
        &amp;lt;And&amp;gt;
            &amp;lt;Membership Type=&amp;quot;CurrentUserGroups&amp;quot;&amp;gt;
                &amp;lt;FieldRef Name=&amp;quot;Responsible&amp;quot; /&amp;gt;
            &amp;lt;/Membership&amp;gt;
            &amp;lt;Neq&amp;gt;
                &amp;lt;FieldRef Name=&amp;quot;Status&amp;quot; /&amp;gt;
                &amp;lt;Value Type=&amp;quot;Choice&amp;quot;&amp;gt;Done&amp;lt;/Value&amp;gt;
            &amp;lt;/Neq&amp;gt;
        &amp;lt;/And&amp;gt;
    &amp;lt;/Where&amp;gt;
&amp;lt;/Query&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Querying a URL field based on the URL&lt;/h4&gt;
&lt;p&gt;This one is pretty self explanatory, but is actually not supported in the SharePoint REST API, querying a list item based on the value of a URL field&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-XML&quot;&gt;&amp;lt;Query&amp;gt;
    &amp;lt;Where&amp;gt;
        &amp;lt;Eq&amp;gt;
            &amp;lt;FieldRef Name=&amp;quot;UrlField&amp;quot; /&amp;gt;
            &amp;lt;Value Type=&amp;quot;URL&amp;quot;&amp;gt;https://pnp.github.io/blog/&amp;lt;/Value&amp;gt;
        &amp;lt;/Eq&amp;gt;
    &amp;lt;/Where&amp;gt;
&amp;lt;/Query&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Summary&lt;/h4&gt;
&lt;p&gt;That was a couple of cool things that CAML allows you to do that can&amp;#39;t easily be done with anything else, there&amp;#39;s also awesome support for date filters, including offsets from &amp;quot;Now&amp;quot; that make it really easy to write a query that&amp;#39;ll always be up to date.&lt;/p&gt;
&lt;p&gt;The only thing I find myself really missing coming from SQL is the ability to select an item based on the value of two columns relative to each other, i.e Where Modified By and Author aren&amp;#39;t the same, this can however be worked around using a calculated column and querying on that&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;CAML Has been around for a really long time, and while it&amp;#39;s not as visible as it&amp;#39;s been previously, it&amp;#39;s not going anywhere anytime soon, so you might as well start learning it today.&lt;/p&gt;
&lt;h3&gt;More Resources&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/schema/collaborative-application-markup-language-caml-schemas&quot;&gt;Read more about CAML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/dev/schema/query-schema&quot;&gt;Query schema&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-caml2table&quot;&gt;CAML to Table sample to test queries&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item>
<item><title>Protecting your Azure functions using your AAD</title><link>https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/</link><pubDate>Wed, 01 Mar 2023 06:05:29 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/</guid><description>You might have built Azure functions previously, but did you know you that you have the option to require the consumers of your functions to be authenticated with your AAD in order to use your APIs? - let’s take a look at how!</description><enclosure url="https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;Full disclosure before you read this blog post, this will be a lightweight introduction to the capabilities of authentication for your Azure Functions provided by Microsoft, I will not go into what is going on behind the scenes, how the authentication works, this will be a &amp;quot;implement security 101&amp;quot; - the baseline of what you need to get going building protected functions!&lt;/p&gt;
&lt;h3&gt;What we&amp;#39;ll be protecting&lt;/h3&gt;
&lt;p&gt;The function we&amp;#39;ll be using in this example is just a simplified version of the default visual studio boilerplate code where I&amp;#39;ve stripped out http post support, just for the sake of simplicity.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;[FunctionName(&amp;quot;HelloWorld&amp;quot;)]
public static async Task&amp;lt;IActionResult&amp;gt; Run(
    [HttpTrigger(AuthorizationLevel.Anonymous, &amp;quot;get&amp;quot;, Route = null)] HttpRequest req, ILogger log) {

    string name = req.Query[&amp;quot;name&amp;quot;];
    string responseMessage = string.IsNullOrEmpty(name)
        ? &amp;quot;Pass a name in the query string or in the request body for a personalized response.&amp;quot;
        : $&amp;quot;Hello, {name}. This HTTP triggered function executed successfully.&amp;quot;;

    return new OkObjectResult(responseMessage);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Why security is important&lt;/h3&gt;
&lt;p&gt;Now with the function above you might be thinking &amp;quot;why would I want to protect that?&amp;quot; - well, it&amp;#39;s a sample, nothing more.&lt;/p&gt;
&lt;p&gt;But from time to time I find myself building functions that are connected to databases containing sensitive information, or elevating user permissions, like getting access to specific parts of the datasets that the user does not normally have access to, or maybe you just want to make sure the user calling your function is already authenticated.&lt;/p&gt;
&lt;h3&gt;&lt;em&gt;But security is hard!&lt;/em&gt;&lt;/h3&gt;
&lt;p&gt;Well yes and no, coding security is generally considered to be tough, but thankfully Microsoft has provided a no-code way to setup authentication, it&amp;#39;s actually all done through the Azure Portal (or better yet through your terminal)&lt;/p&gt;
&lt;h3&gt;Setting it up&lt;/h3&gt;
&lt;p&gt;Currently my function works like this&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;GET&lt;/strong&gt; | &lt;a href=&quot;https://yourazurefunctiontosecure.azurewebsites.net/api/HelloWorld?name=Dan&quot;&gt;https://yourazurefunctiontosecure.azurewebsites.net/api/HelloWorld?name=Dan&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;200 OK&lt;/strong&gt; | Hello, Dan. This HTTP triggered function executed successfully.&lt;/p&gt;
&lt;p&gt;Now to add authentication we&amp;#39;ll open up our function the Azure portal, head to the authentication tab, and press the &amp;quot;Add an identity provider&amp;quot; button.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll be asked to select your identity provider, here we&amp;#39;ll select &amp;quot;Microsoft&amp;quot;, a bunch of options will appear that can be overwhelming.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/2.webp&quot; alt=&quot;A snippet of some of the options you&amp;#39;ll see&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now there are two options we want to change in the particular case, the rest are great in their default configuration for our purposes.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Name&lt;/td&gt;
&lt;td&gt;An app registration will be created, this will be the name of said registration, I generally add something like &amp;#39; - Identity provider&amp;#39; at the end&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unauthenticated requests&lt;/td&gt;
&lt;td&gt;HTTP 401 Unauthorized: recommended for APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Press &lt;strong&gt;Add&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Calling your function now should result in an&lt;/p&gt;
&lt;p&gt;  &lt;strong&gt;HTTP 401&lt;/strong&gt; | You do not have permission to view this directory or page.&lt;/p&gt;
&lt;p&gt;Awesome, that&amp;#39;s it, now we&amp;#39;re done, your function is secure and no one can call it, perfect! ... &lt;em&gt;jk - let&amp;#39;s look at how we can call it&lt;/em&gt;.&lt;/p&gt;
&lt;h3&gt;Calling your function from SPFx&lt;/h3&gt;
&lt;p&gt;So firstly you&amp;#39;ll need to get API permissions for your SPFx solutions, if you haven&amp;#39;t done this before this is done by updating your &amp;#39;package-solution.json&amp;#39; and adding the webApiPermissionRequests section:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;...
    &amp;quot;webApiPermissionRequests&amp;quot;: [
      {
        &amp;quot;resource&amp;quot;: &amp;quot;YourAzureFunctionToSecure - Identity provider&amp;quot;, //This is the name of the app registration that was created automatically in the previous step 
        &amp;quot;scope&amp;quot;: &amp;quot;user_impersonation&amp;quot;
      }
    ]
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now the next time you deploy your SPFx solution (to the modern app catalog) you&amp;#39;ll be prompted to approve these permissions - you&amp;#39;ll need an admin account.&lt;/p&gt;
&lt;p&gt;Unfortunately this still isn&amp;#39;t enough, but Microsoft has done a really good job at making it easy for us to authenticate from SPFx, with your component context (WebPartContext, or alike) -&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-TypeScript&quot;&gt;import { AadHttpClient } from &amp;quot;@microsoft/sp-http&amp;quot;;
...
...
  const client = await context.aadHttpClientFactory.getClient(CLIENT_ID);
...
  const URL = &amp;quot;https://yourazurefunctiontosecure.azurewebsites.net/api/HelloWorld?Name=Dan&amp;quot;;
  const response = await client.get(URL, AadHttpClient.configurations.v1);
...
  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now the CLIENT_ID parameter here is the client id of the corresponding app registration that you&amp;#39;ve requested permissions from above, it&amp;#39;ll be listed under the Authentication tab on your function.&lt;/p&gt;
&lt;p&gt;The rest should look pretty familiar to you if you&amp;#39;ve ever call the SharePoint REST API from SPFx without using libraries like PnPjs.&lt;/p&gt;
&lt;p&gt;And there you go - you&amp;#39;re off to the races!&lt;/p&gt;
&lt;h3&gt;Calling your function from another application using OAuth 2.0&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;We&amp;#39;ll be using Postman in this example, but it should be essentially the same procedure to do it from C# using the ConfidentialClientApplicationBuilder, or whatever language you&amp;#39;re using&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Now, when using SPFx as in the sample above, there&amp;#39;s a user present, but when using OAuth from &amp;quot;the outside&amp;quot; we won&amp;#39;t have that privilege.&lt;/p&gt;
&lt;p&gt;So in order to setup authentication from elsewhere, the first thing we&amp;#39;ll setup is a &amp;quot;consumer&amp;quot; app registration, simply create an app registration and name it whatever makes sense to you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;AAD -&amp;gt; App Registrations -&amp;gt; New registration&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/3.webp&quot; alt=&quot;Settings&quot; title=&quot;We&amp;#39;ll just fill out a name and leave the rest alone&quot;&gt;&lt;/p&gt;
&lt;p&gt;Once that&amp;#39;s done we&amp;#39;ll need to grant our app registration permissions to call our function, this is done by going under your app registration going to&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;API permissions -&amp;gt; Add a permission -&amp;gt; My APIs -&amp;gt; Select your identity provider -&amp;gt; user_impersonation -&amp;gt; Add permissions&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/4.webp&quot; alt=&quot;The setup we want to see&quot; title=&quot;The setup we want to see&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now go ahead and click &lt;strong&gt;Grant admin consent for {your tenant name}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now the next step is to go to &lt;strong&gt;Certificates &amp;amp; secrets&lt;/strong&gt; and depending on your authentication needs add a secret or a certificate.&lt;/p&gt;
&lt;p&gt;For this test purpose I&amp;#39;ll use a secret, I would recommend certificates in actual production environments.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;That&amp;#39;s all, now you&amp;#39;re ready to call your function again!&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s test is out from Postman:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Postman config - grab these value from the overview of our two app registrations&lt;/em&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Access Token URL&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://login.microsoftonline.com/%7B%7BTenant&quot;&gt;https://login.microsoftonline.com/{{Tenant&lt;/a&gt; ID}}/oauth2/v2.0/token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client ID&lt;/td&gt;
&lt;td&gt;{{Client Id of our consumer app registration}}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client Secret&lt;/td&gt;
&lt;td&gt;{{The secret you generated}}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope&lt;/td&gt;
&lt;td&gt;{{Client ID of your identity provider}}/.default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client Authentication&lt;/td&gt;
&lt;td&gt;Send client credentials in body&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/03/protecting-azure-functions-aad/5.webp&quot; alt=&quot;Success&quot; title=&quot;Success, that&amp;#39;s all it took!, now go do it&quot;&gt;&lt;/p&gt;
&lt;h3&gt;See who&amp;#39;s calling (C#)&lt;/h3&gt;
&lt;p&gt;Now you might want to know who&amp;#39;s calling your function, this can be achieved pretty simply by adding a ClaimsPrincipal parameter to your function, the following snippet should give you an idea of how to look for the callers identity&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;[FunctionName(&amp;quot;Me&amp;quot;)]
public static async Task&amp;lt;IActionResult&amp;gt; Run(
    [HttpTrigger(AuthorizationLevel.Anonymous, &amp;quot;get&amp;quot;, Route = null)] HttpRequest req, ILogger log, ClaimsPrincipal claims) {

          ...

          Dictionary&amp;lt;string, string&amp;gt; claims = new Dictionary&amp;lt;string, string&amp;gt;();
          foreach (Claim claim in Principal.Claims) {
              log.LogInformation(&amp;quot;CLAIM TYPE: &amp;quot; + claim.Type + &amp;quot;; CLAIM VALUE: &amp;quot; + claim.Value);
              claims.Add(claim.Type, claim.Value);
          }

        ....

        return new OkObjectResult(claims);
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For users calling from SPFx I generally go for one of the following properties (sometimes one is null and another is not, i.e if the user doesn&amp;#39;t have an mailbox or something like that)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress&quot;&gt;http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn&quot;&gt;http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;preferred_username&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You also always for the object id, what should work across both App registrations and Users, depending on your needs&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;Adding authentication to your function is far easier than you might think, and there really isn&amp;#39;t any excuse not to do so.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And do it NOW, before it&amp;#39;s too late!&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;If you had any issues following this guide feel free to reach out to me over on twitter and I&amp;#39;ll be happy to help.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;All functions, and app registrations used in this example have been deleted, you can&amp;#39;t test with them&lt;/strong&gt;&lt;/p&gt;
</content:encoded></item>
<item><title>Attending your first conference - how and what to do?</title><link>https://blog.dan-toft.dk/2023/02/attending-tech-conference/</link><pubDate>Tue, 21 Feb 2023 19:32:37 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/02/attending-tech-conference/</guid><description>The conference season has started and now that covid is pretty much a thing of the past in-person conferences are coming back - are you going?</description><enclosure url="https://blog.dan-toft.dk/2023/02/attending-tech-conference/1.webp" type="image/webp" length="0"/><content:encoded>&lt;p&gt;I&amp;#39;m currently sat in my sofa looking through the recently published agenda for the &lt;a href=&quot;https://www.collabsummit.eu/&quot;&gt;European Collaboration Summit 2023&lt;/a&gt; as I recently convinced my boss to let me attend - this will be my second tech conference, and I realized there was something I missed before I headed out to my first conference - &amp;quot;a beginners guide to tech conferences&amp;quot;, now normally I would say that a rookie can&amp;#39;t write a beginners guide, but maybe in this case there&amp;#39;s an exception! - here are my thoughts, takeaways, tips and tricks I wish I knew before my first conference!&lt;/p&gt;
&lt;h2&gt;My first conference&lt;/h2&gt;
&lt;p&gt;As someone who started out their career in 2018/19 Covid has been a thing for most of my &amp;quot;adult life&amp;quot; watching conferences remote, I was supposed to go to my first conference back in 2020, but yeah...&lt;/p&gt;
&lt;p&gt;2022 would be the year I finally got to go, I went to the &lt;a href=&quot;https://www.sharepointeurope.com/&quot;&gt;European SharePoint, Office 365 &amp;amp; Azure Conference (ESPC)&lt;/a&gt; it was being held in Copenhagen, and after begging my boss for a little while he caved in - I WAS HEADED TO ESPC!&lt;/p&gt;
&lt;p&gt;I went with a colleague who ended up getting sick while we were there, so I spent a decent part of the conference on my own, which means I had to just &amp;quot;figure things out&amp;quot; if I didn&amp;#39;t wanna spend the nights alone in my hotel room, here are my best takeaways from that trip.&lt;/p&gt;
&lt;h2&gt;Pre-conference&lt;/h2&gt;
&lt;p&gt;The &amp;quot;networking&amp;quot; part of the conference actually starts waaaay before the real conference, usually there is an app (ESPC uses Whova, Collaboration Summit uses run.events, and others probably a third one) they all serve the same purposes!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Calendar&lt;ul&gt;
&lt;li&gt;See the agenda&lt;/li&gt;
&lt;li&gt;Plan your schedule&lt;/li&gt;
&lt;li&gt;Social events&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Networking&lt;ul&gt;
&lt;li&gt;Private messaging&lt;/li&gt;
&lt;li&gt;&amp;quot;Group&amp;quot; chats - &lt;em&gt;things like ride sharing, local recommendations, ask the organizers ect.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Social events&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Giveaways - &lt;strong&gt;lots and lots of lego&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The app is where you really want to get in on the action, there&amp;#39;ll be loads of chit chat, I was lucky enough to be some what local to the conference, having spent a ton of weekends in Copenhagen over the past year, so I was able to share tips on local foods, places and public transit.&lt;/p&gt;
&lt;p&gt;You might not be that lucky, but still do your very best to be active here, not only reading, contribute! - I cannot stress this enough, contribute, this means people will see your name, they&amp;#39;ll remember seeing you everywhere, I remember seeing &lt;a href=&quot;https://www.linkedin.com/in/lesley-crook&quot;&gt;Lesley Crook&lt;/a&gt; and &lt;a href=&quot;https://twitter.com/kevmcdonk&quot;&gt;Kevin McDonnell&lt;/a&gt; literally EVERYWHERE in the app weeks before heading out, I would later realize that others had noticed my posts as well, this started already monday night when I realized I was stranded at the hotel by myself - NO WAY, I pulled up the app, and found that there was a pub quiz at a local bar that night! - unfortunately it was fully booked, but I ended up sending a message to the host and getting a ticket, and several people there already had seen me on the app and &amp;quot;knew&amp;quot; me, which was great fun, and also a great conversation starter, and a way to make sure people remember your name.&lt;/p&gt;
&lt;p&gt;Also beware that usually there&amp;#39;s an option to pick-up tickets the afternoon before your ticket is valid (as least for multi day conferences) - this will save you time in the morning where you might already be stressing a ton - and there might be queues!&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;What to pack&lt;/h2&gt;
&lt;p&gt;You&amp;#39;ll of course want to pack some clothing for the days you&amp;#39;re gone, go with whatever you&amp;#39;re comfortable in, doesn&amp;#39;t matter if thats a shirt, hoodie, or even just a t-shirt, no one is judging you - also make sure you pack some solid shoes, you&amp;#39;ll be walking a ton!&lt;/p&gt;
&lt;p&gt;A few other things I had great pleasure from bringing&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Earplugs for sleeping in a potentially noisy hotel.&lt;/li&gt;
&lt;li&gt;Medication, especially some painkillers, you&amp;#39;re most likely going to be hungover at one point or another.&lt;/li&gt;
&lt;li&gt;Snacks to carry in your bag, there&amp;#39;s probably food at the venue, but a granola bar is nice cause you can enjoy it anywhere.&lt;/li&gt;
&lt;li&gt;A water bottle, remember to stay hydrated.&lt;/li&gt;
&lt;li&gt;Powerbank, you&amp;#39;re going to be spending all day out, and perhaps using navigation and taking photos.&lt;/li&gt;
&lt;li&gt;Pen and paper, remember to take notes!&lt;/li&gt;
&lt;li&gt;A daypack to bring to the venue to carry all the swag you&amp;#39;re going to be collecting.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;During the day&lt;/h2&gt;
&lt;p&gt;If you&amp;#39;re like me you&amp;#39;re excited about heading to a conference to finally meet people who are as passionate about tech as you are, and I guarantee you&amp;#39;ll meet people who are waaaay more passionate, smart and brilliant than you, be sure to listen to them, suck in all the knowledge you can!&lt;/p&gt;
&lt;p&gt;I cannot stress this enough! - not only the speakers, also the peers in the crowd, talk to the person next to you, go to the &amp;quot;ask the experts&amp;quot; panels, if you don&amp;#39;t feel like asking questions, hang around even just to listen, there is so much knowledge &amp;quot;in the air&amp;quot;.&lt;/p&gt;
&lt;p&gt;When attending the actual sessions, don&amp;#39;t be afraid to ask questions at the end, if you&amp;#39;re like me and slightly introverted you might be more comfortable going up and talking to the speakers afterwards, and that&amp;#39;s also totally okay, speakers are just like you, they&amp;#39;re passionate techies.&lt;/p&gt;
&lt;p&gt;Between sessions remember to check out the expo area, where you&amp;#39;ll be able to find a bunch of sponsors presenting their products, for instance talking to a rep from one of the sponsors, and you&amp;#39;ll be able to collect swag, this ranges from stickers to t-shirts in return they scan your pass and get to send you some marketing material afterwards.&lt;/p&gt;
&lt;p&gt;Another tip I cannot stress enough, &lt;strong&gt;bring a pen and paper&lt;/strong&gt;, looking out over a group of attendees at a session where I arrived a bit late and took a seat in the back I noticed that thing we all know - people on their laptops get distracted, &lt;em&gt;Oooh, look an email...&lt;/em&gt; - pen and paper is the only 100% distraction free note taking option, and note taking is something you might as well do from the get go, you&amp;#39;ll gain sooo much knowledge during those few days, 3 days at ESPC (18 hours of sessions) ended up in 27 pages of notes for me.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;During the afternoon/night&lt;/h2&gt;
&lt;p&gt;As soon as the sessions end the expo area starts to live up again, and you&amp;#39;re going to wanna hang around there to grab a drink from some of the sponsors.
Here you might be tempted to head off with a colleague for a bite in town and then back to the hotel for some much needed sleep, &lt;strong&gt;BUT&lt;/strong&gt; you would be missing out on half the fun!&lt;/p&gt;
&lt;p&gt;No matter if you&amp;#39;re into parties with unlimited drinks, exploring the city, or even just meeting new people over a bite of local food, make sure to checkout the conference app, here you will find all of the above and sooo much more! - and don&amp;#39;t stress, you won&amp;#39;t be able to do it all, so pick and choose some of the things you find interesting.&lt;/p&gt;
&lt;p&gt;I had a blast heading to Tivoli gardens with a bunch of people I&amp;#39;d never met before, a lot of them I knew either from seeing them on twitter, listening to their podcasts, or even just from the conference app - initially I was obviously a bit &amp;quot;&lt;em&gt;scared&lt;/em&gt;&amp;quot; as these were people who had proven their worth in the community, many where even MVPs, and most certainly had no clue who I was, but wouldn&amp;#39;t you know it, they were all super awesome and welcoming people, &lt;em&gt;remember MVPs are also just passionate techies&lt;/em&gt;, and we ended up having a blast exploring Tivoli at later heading to a great party by one of the conference sponsors.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/02/attending-tech-conference/2.webp&quot; alt=&quot;Group photo at tivoli garden&quot; title=&quot;Photo credit - Kevin McDonnell (@kevmcdonk)&quot;&gt;&lt;/p&gt;
&lt;p&gt;This also gives you a great opportunity to talk to speakers, I ended up changing my agenda after talking to some speakers about their upcoming sessions, and hearing what they were planning to cover, or weren&amp;#39;t - this is a great way to get a feeling for the level of a session before heading to it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Make sure you remember yourself and your body during the week&lt;/strong&gt; - I ended up sleeping an average of 3 hours a night for the days of ESPC, man was that rough, but I had an absolute blast, ended up spending a full week recovering fully, always remember it&amp;#39;s better to miss part of the party and feel good rather then ending up staying in bed a full day.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Post conference&lt;/h2&gt;
&lt;p&gt;Now during the conference you&amp;#39;ll meet a bunch of people, make sure you connect with them on your preferred networking app, whether that would be Twitter, LinkedIn, or even mastodon, that way you&amp;#39;ll be able to keep up with what your new friends are up to, and expand your network!&lt;/p&gt;
&lt;p&gt;The next thing that might be a good idea to do is to create a presentation that you can share with your colleagues that didn&amp;#39;t get to go, this can either just be in the form of a news post on your intranet, or some slides that you present for them at a &amp;quot;mini-session&amp;quot;, I really like the latter as it often leads to there being some chatting around some of the news that you&amp;#39;re &amp;quot;bringing home&amp;quot;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Bring yourself, your best mood, and make sure to enjoy the moment, have a great time, and talk to strangers!&lt;/p&gt;
&lt;p&gt;After I introduced myself to some new people as &amp;quot;a nobody&amp;quot; Kevin pulled me aside and said something that stuck with me - and really helped me realize, it&amp;#39;s okay to go up to anyone and talk to them!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You&amp;#39;re not a nobody, your just building you career!&lt;/p&gt;
&lt;p&gt;-- &lt;a href=&quot;https://twitter.com/kevmcdonk&quot;&gt;Kevin McDonnell&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;sub&gt;P.S. Go read Kevins awesome post &lt;a href=&quot;https://www.mcd79.com/2023/02/05/Chatting-is-hard-but-so-so-worth-it/&quot;&gt;Chatting is hard but so so worth it&lt;/a&gt;&lt;/sub&gt;&lt;/p&gt;
</content:encoded></item>
<item><title>Planner Application permissions - what does it mean?</title><link>https://blog.dan-toft.dk/2023/02/planner-application-permissions/</link><pubDate>Sat, 04 Feb 2023 18:50:44 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/02/planner-application-permissions/</guid><description>The new Planner Applications permissions have landed, but what does it mean, and why do you need to know about it?</description><enclosure url="https://blog.dan-toft.dk/2023/02/planner-application-permissions/1.webp" type="image/webp" length="0"/><content:encoded>&lt;h2&gt;The why&lt;/h2&gt;
&lt;p&gt;Planner is one of those products that are really awesome, but it is also very hard to keep structured due to the lack of templating/automation around it, this leaves every Planner board at the mercy of users reproducing an existing setup again, and again ... that&amp;#39;s not going to happen.&lt;/p&gt;
&lt;h2&gt;The what&lt;/h2&gt;
&lt;p&gt;So, what does application permissions for Planner mean? - well essentially it means that we can now access Planner from automated code, this makes things like provisioning Planner boards possible.&lt;/p&gt;
&lt;p&gt;So, what can we use it for? - well essentially we can do anything you normally can do in Planner, but automated!&lt;/p&gt;
&lt;p&gt;For instance, a thing I often meet in the market is people who&amp;#39;re used to Trello but want to migrate to Planner, not only can we now actually migrate their existing tasks to Planner without every task being created by a service account, we can also automate certain tasks, or pull data for better reporting, and all pretty simple.&lt;/p&gt;
&lt;h2&gt;Real life business cases&lt;/h2&gt;
&lt;p&gt;In the half a month or so this API has been available I&amp;#39;ve already used it a few times to do some cool stuff, here are some real-life ideas that can be implemented.&lt;/p&gt;
&lt;h3&gt;Provisioning tasks&lt;/h3&gt;
&lt;p&gt;Some business scenarios have us provisioning teams or sites for every project in the organization, this is nothing new, but what we&amp;#39;re now able to do that is new is provisioning and assigning tasks upon project creation - and even project phase changes, I&amp;#39;ve implemented this combined with a stage-gate model where users cannot change the project phase without having completed all the tasks in the current phase, and then when they move to the next phase new tasks are created fully automatically, also tasks are dynamically assigned based on your role in the project.&lt;/p&gt;
&lt;h3&gt;Connecting tasks to Outlook events&lt;/h3&gt;
&lt;p&gt;An other use case that I found really interesting was a client who has 600+ meetings a year, had a hard time keeping up on pre and post meeting tasks, they had tried Planner, but found it hard to keep things in sync when a meeting moved date suddenly you have to remember to move the tasks in Planner as well, otherwise your to to-do would remind you to &amp;quot;send out meeting summary&amp;quot; for a meeting you haven&amp;#39;t yet had.&lt;/p&gt;
&lt;p&gt;So, I built a relatively simple job that&amp;#39;ll generate a few tasks in Planner for each meeting in a specific calendar and move them with the meeting in Outlook keeping it very simple to keep on top of your meetings and tasks that go along with them.&lt;/p&gt;
&lt;h2&gt;The how&lt;/h2&gt;
&lt;p&gt;Microsoft introduced a new permissions scope &lt;em&gt;Tasks.ReadWrite.All&lt;/em&gt; unfortunately there&amp;#39;s currently no way to limit this down to a single group/board at this time, maybe we&amp;#39;ll see that down the line, just like we did with the SharePoint application permissions, maybe even a read-only permission for reporting reasons.&lt;/p&gt;
&lt;p&gt;So, once you&amp;#39;ve granted yourself this magical new permission what&amp;#39;s next?&lt;/p&gt;
&lt;p&gt;Well because this API has been supported for a while using delegated permissions it&amp;#39;s already in all the SDKs, so simply authenticate with your app-registration and start using the API&lt;/p&gt;
&lt;p&gt;Here is an example using the GraphServiceClient in C#&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;PlannerTask plannerTask = new PlannerTask
{
 PlanId = Desired_Plan_Id,
 BucketId = Desired_Bucket_Id,
 Title = &amp;quot;Create my first task via the API&amp;quot;,
 Assignments = new PlannerAssignments
 {
  AdditionalData = new Dictionary&amp;lt;string, object&amp;gt;()
  {
   {AAD_Object_Id_of_user_to_assign, &amp;quot;{\&amp;quot;@odata.type\&amp;quot;:\&amp;quot;#microsoft.graph.plannerAssignment\&amp;quot;,\&amp;quot;orderHint\&amp;quot;:\&amp;quot; !\&amp;quot;}&amp;quot;}
  }
 }
};


await Graph.Planner.Tasks.Request().AddAsync(plannerTask);
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Quirks&lt;/h3&gt;
&lt;p&gt;There were a few things that I had to wrap my head around, at least with the C# SDK, which is the main way I&amp;#39;ve been integrating with the new permissions.&lt;/p&gt;
&lt;h4&gt;Task assignments&lt;/h4&gt;
&lt;p&gt;First off, why are user assignments so hard! - Why do I need to remember the JSON parameter in order to assign a task! - this should really just be handled by the SDK where I just provide a list of user IDs, I get that it&amp;#39;s stored like this in the backend, but I don&amp;#39;t need to see it on the dev side.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;{&amp;quot;@odata.type&amp;quot;:&amp;quot;#microsoft.graph.plannerAssignment&amp;quot;,&amp;quot;orderHint&amp;quot;:&amp;quot; !&amp;quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;The API structure&lt;/h4&gt;
&lt;p&gt;Another one of those where the Planner API is not structured hierarchically like (at least I) expected.&lt;/p&gt;
&lt;p&gt;This means that you go.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;await Graph.Planner.Buckets[BUCKET_ID].Tasks().Request().GetAsync();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and not hierarchically like we&amp;#39;re used to from other Graph endpoints, or SharePoint which would be more like:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;await Graph.Planner.Plans[PLAN_ID].Buckets[BUCKET_ID].Tasks[TASK_ID].Request().GetAsync();
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;E-tag&lt;/h4&gt;
&lt;p&gt;Another thing I&amp;#39;ve found which feels like one of those growing pains where it becomes obvious that the C# SDK at least hasn&amp;#39;t been used widely for Planner compared to things like PnPjs which supports the delegated permissions and has been widely used for years is the E-tag property you need to grab when you&amp;#39;re updating the task you&amp;#39;ve just created.&lt;/p&gt;
&lt;p&gt;Not only to you need to grab it from the &lt;em&gt;AdditionalData&lt;/em&gt; you also need to strip off the first two characters, this hopefully will be handled by the SDK at some point.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-C#&quot;&gt;PlannerTask PlannerTask = await Graph.Planner.Tasks.Request().AddAsync(plannerTask);

//We have to remove the &amp;#39;W/&amp;#39; at the beginning of the E-Tag
//https://powerusers.microsoft.com/t5/Using-Connectors/Custom-Connector-Graph-The-If-Match-header-must-be-specified-for/m-p/144099#M3314
string ETAG = PlannerTask.AdditionalData.TryGet(&amp;quot;@odata.etag&amp;quot;) + &amp;quot;&amp;quot;).Substring(2);

await Graph.Planner.Tasks[PlannerTask.Id].Request().Header(&amp;quot;If-Match&amp;quot;, ETAG).UpdateAsync(new PlannerTask() { Title = UPDATE_TITLE });
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Other SDKs like PnPjs handles this smoother, that makes it obvious to the developer that you need to provide an etag&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-TypeScript&quot;&gt;const UpdatedTask = await graph.planner.tasks.getById(TASK_ID).update({properties, eTag: ETAG});
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;The Application permissions have finally landed, and they&amp;#39;re awesome!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve played with the C# Graph SDK and it works great, there are a few quirks that need some ironing out before it&amp;#39;s intuitive, Microsoft should really look towards the community and PnPjs for some inspiration on how to handle certain things more intuitively - but they&amp;#39;re here, and they work&lt;/p&gt;
&lt;h2&gt;Bonus tip: what does application permissions mean?&lt;/h2&gt;
&lt;p&gt;This is one of those places where we as dev sometimes take things for granted, and assume that everyone knows what things are, but the essence is that application permissions is the way our code can authenticate without a user being present - where as delegated permissions are the ones where we extend the currently signed in user.&lt;/p&gt;
</content:encoded></item>
<item><title>January 2023 in M365</title><link>https://blog.dan-toft.dk/2023/01/january-2023-m365/</link><pubDate>Tue, 31 Jan 2023 22:34:06 +0000</pubDate><guid>https://blog.dan-toft.dk/2023/01/january-2023-m365/</guid><description>The first month of the year has passed and a lot of new things have happened or are ongoing right now - let’s do a checkup on 5 things that are going on with M365 in 2023</description><enclosure url="https://blog.dan-toft.dk/2023/01/january-2023-m365/thumb.png" type="image/png" length="0"/><content:encoded>&lt;h3&gt;The death of stream&lt;/h3&gt;
&lt;p&gt;Well - sort of, as you may have noticed, Microsoft is pushing Stream on SharePoint pretty hard! - this also means the death of classic stream as we&amp;#39;ve come to know and love (or hate) it.&lt;/p&gt;
&lt;p&gt;This also means more features coming to SharePoint, this includes an option to create playlists of multiple videos, for instance if you&amp;#39;re building a learning session consisting of multiple videos.&lt;/p&gt;
&lt;p&gt;Microsoft unveiled some quite important &amp;quot;save the dates&amp;quot; - as we now have a schedule for how and when stream is going away - it&amp;#39;ll be a three-phase process.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;May 15th&lt;/strong&gt; - You&amp;#39;ll no longer be able to upload new content to stream.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;October 15th&lt;/strong&gt; - This is the &amp;quot;official&amp;quot; death date, stream will close, and users will no longer be able to access their content. - this is when the phone starts ringing, and you&amp;#39;ll be able to enable extended support.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;February 15th &amp;#39;24&lt;/strong&gt; - This is the &amp;quot;real&amp;quot; death, on this day ALL your content in stream disappears ... forever.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;BEWARE&lt;/strong&gt; - It is your own responsibility to migrate from Classic stream to Stream on SharePoint, whether this is a cool play by Microsoft or not, I won&amp;#39;t comment on, but you really need to start thinking and planning about how you&amp;#39;re going to migrate if your org is using stream.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/stream/streamnew/stream-classic-to-new-migration-overview&quot;&gt;Read more here&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;Planner Application Permissions&lt;/h3&gt;
&lt;p&gt;This is a small one if you&amp;#39;re not a dev, but for us devs, it&amp;#39;s huge - &lt;a href=&quot;https://techcommunity.microsoft.com/t5/planner-blog/planner-at-ignite-2022/ba-p/3651366&quot;&gt;back in October&lt;/a&gt; Microsoft promised us Planner application permissions, they&amp;#39;ve now landed, what this means is that we&amp;#39;re now able to support Planner in automated workflows without needing to use a service principal, but can instead use our normal app-registrations, this is huge, both for the accessibility and security, and makes supporting business scenarios in Planner a lot smoother and easier.&lt;/p&gt;
&lt;h3&gt;Office scripts&lt;/h3&gt;
&lt;p&gt;If you&amp;#39;ve been around for a little while, you might have noticed just how hard Microsoft has worked to kill macros, and while nothing will stop that old script guy in the corner, they&amp;#39;ve now launched the first real alternative ... or well, it&amp;#39;s made it to the desktop, it&amp;#39;s been in the cloud for quite some time.&lt;/p&gt;
&lt;p&gt;What is Office scripts? - Office scripts is a way to run Java(Type)script inside your Office apps, currently limited to Excel.&lt;/p&gt;
&lt;p&gt;It provides a great API to interact and automate parts of your spreadsheet - that could be counting and adding up in ways you normally couldn&amp;#39;t do in excel, or - and this is where it gets better then macros for me, you can run you scripts from Power Automate, so you could have a spreadsheet with everyone&amp;#39;s contact info and look up peoples phone number from Power Automate (please don&amp;#39;t actually do that, it&amp;#39;s a terrible way to structure that info, just using it as an example)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2023/01/january-2023-m365/1.png&quot; alt=&quot;Here is how the editor looks&quot;&gt;&lt;/p&gt;
&lt;h3&gt;The death of Teams Wiki pages&lt;/h3&gt;
&lt;p&gt;If you&amp;#39;re one of the dozen or so people left on earth who still uses Teams Wikis, it time to act &lt;strong&gt;NOW&lt;/strong&gt; - from mid-February they&amp;#39;ll users will be unable to create new wikis, an option will be provided to export your existing wikis to OneNote, and instead use a OneNote tab in teams.&lt;/p&gt;
&lt;p&gt;This change makes a ton of sense given the relative feature parity between the two products, and OneNotes superior search experience (and indexing in Microsoft Search) &lt;/p&gt;
&lt;p&gt;&lt;em&gt;See MC496248 for more info&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;Update to Microsoft/SharePoint lists&lt;/h3&gt;
&lt;p&gt;Ever since the &amp;quot;launch&amp;quot; of Microsoft lists, we&amp;#39;ve seen a ton of love for them, and for the past year Microsoft has been pumping out new features, they currently show no sign of slowing down anytime soon! - we&amp;#39;ve seen a few new features already, and a ton more are just around the corner, this includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Calendar view - week mode (coming soon)&lt;/li&gt;
&lt;li&gt;Generate a list from CSV, this feature launched and is working awesomely&lt;ul&gt;
&lt;li&gt;This provides a great way to import data from an older system you have and surface it in your SharePoint environment for all users to take advantage off - perhaps that old contact list form earlier!&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Additional lookup field options&lt;ul&gt;
&lt;li&gt;Lookup to boolean &amp;amp; multi choice fields.&lt;/li&gt;
&lt;li&gt;Column formatting to show up on lookup fields (this is &lt;strong&gt;MEGA&lt;/strong&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-sharepoint-blog/microsoft-lists-announcements-at-ignite-2022/ba-p/3647355?WT.mc_id=M365-MVP-5004644&quot;&gt;These updates were announced at Ignite, but are starting to show up now.&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;The platform you&amp;#39;re on is constantly evolving, beware that Stream and teams wikis are going away, and lists are getting even more awesome!&lt;/p&gt;
</content:encoded></item>
<item><title>Viva is coming home for christmas (almost)</title><link>https://blog.dan-toft.dk/2022/12/viva-coming-home-christmas/</link><pubDate>Mon, 19 Dec 2022 17:00:00 +0000</pubDate><guid>https://blog.dan-toft.dk/2022/12/viva-coming-home-christmas/</guid><description>Did you know that early next year your Viva connections experience is going to change quite drastically?</description><enclosure url="https://blog.dan-toft.dk/2022/12/viva-coming-home-christmas/thumb.webp" type="image/webp" length="0"/><content:encoded>&lt;h3&gt;Viva connections&lt;/h3&gt;
&lt;p&gt;If you&amp;#39;re like me you were excited when Microsoft launched Viva connections - a way to get your SharePoint Online intranet integrated into Microsoft teams! - lovely, especially since we&amp;#39;re trying to work more and more from within teams. &lt;/p&gt;
&lt;p&gt;But the viva branding never quite clicked for me, no additional license, no viva branding, it was just simply your SharePoint Home site inside teams.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been very happy with the feature as it was, and it&amp;#39;s been an easy &amp;quot;let&amp;#39;s also do that&amp;quot; for every client that I&amp;#39;ve built an intranet for over the past year or so! - but that&amp;#39;s all about to change!&lt;/p&gt;
&lt;h3&gt;The new Viva Connections home experience&lt;/h3&gt;
&lt;p&gt;In case you haven&amp;#39;t noticed, Microsoft is pushing viva, and that&amp;#39;s a train that doesn&amp;#39;t seem to be slowing down any time soon, with that Microsoft recently &lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-viva-blog/more-options-coming-soon-for-the-viva-connections-desktop/ba-p/3644419&quot;&gt;announced&lt;/a&gt; that they&amp;#39;ll be &amp;quot;updating&amp;quot; the viva connections app in the spring of 2023 (Roadmap ID &lt;a href=&quot;https://www.microsoft.com/da-dk/microsoft-365/roadmap?featureid=99917&quot;&gt;98173&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;What does these update include? - well first of all a more viva centric experience, whether or not you like the new experience might be a personal preference, I&amp;#39;m not going to tell you to love it, or hate it.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll say that it does look quite different from what we&amp;#39;re used to seeing in SharePoint, but I think it&amp;#39;s just a matter of getting used to it! - One thing that I really like is that I think we&amp;#39;ll see more coherent designs than what I&amp;#39;ve at least seen some SharePoint intranets look like.&lt;/p&gt;
&lt;p&gt;Here are the two compared:
&lt;img src=&quot;https://blog.dan-toft.dk/2022/12/viva-coming-home-christmas/1.webp&quot; alt=&quot;The new and old experience next to each other&quot;&gt;&lt;/p&gt;
&lt;p&gt;One thing to note is that at the time the only real way to extend Viva connections home is by using SPFx Adaptive Card Extensions, again a more coherent experience, instead of a ton of custom webparts.&lt;/p&gt;
&lt;h4&gt;What does it bring?&lt;/h4&gt;
&lt;p&gt;The new viva connections home will bring insights into the users viva data, so if you&amp;#39;re already invested in the viva platform this will be a very welcome addition!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Navigational elements&lt;/strong&gt;
At the very top there&amp;#39;ll be a navigational bar connected to your home site, and the other viva apps.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dashboard&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re not that invested in viva this is where things will be a bit annoying, because what you&amp;#39;ll see at the top is your viva &lt;strong&gt;dashboard&lt;/strong&gt;, that you might already be familiar with from your current home site, if you haven&amp;#39;t already set one up, now might be a good time to get started on doing just that, as it&amp;#39;ll be a key part of the experience!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Next below that you&amp;#39;ll find your &lt;strong&gt;resources&lt;/strong&gt;, this will show your navigation from your app bar, and some frequent data (right now it looks like it&amp;#39;s going to be Frequent sites and Followed sites)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Feed&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To the right of all of that is your &lt;strong&gt;feed&lt;/strong&gt; your feed is a rollup of news, from your org (Home sites, news sites), Yammer (Viva engage) posts, that are relevant to you (organization community, and communities you follow)&lt;/p&gt;
&lt;h3&gt;Is my home site going away?&lt;/h3&gt;
&lt;p&gt;Don&amp;#39;t worry, your existing SharePoint home site is only a single click away, just click the button in the top right to head straight there, if your organization decides not to adopt viva &lt;strong&gt;there will be a PowerShell cmdlet to disable the new experience!&lt;/strong&gt; (maybe only if you&amp;#39;re already using viva connections now, I haven&amp;#39;t been able to find a clear answer on future customers)&lt;/p&gt;
&lt;h3&gt;What about my theming, my organizations branding is important to us&lt;/h3&gt;
&lt;p&gt;Don&amp;#39;t worry there will be &lt;a href=&quot;https://learn.microsoft.com/en-us/viva/connections/edit-viva-home&quot;&gt;plenty&lt;/a&gt; of customization options, I haven&amp;#39;t seen anyone mention the color scheme, but the banner image is customizable, and I&amp;#39;m assuming we&amp;#39;ll see even more in the not too distant future.&lt;/p&gt;
&lt;h3&gt;Final thoughts&lt;/h3&gt;
&lt;p&gt;This will help bring even more people onto viva connections, as it&amp;#39;ll be easier than ever to setup, and what&amp;#39;s awesome is that it&amp;#39;s a great way to get users familiar with the viva look and feel!&lt;/p&gt;
&lt;p&gt;But I still foresee a lot of client&amp;#39;s wanting the default experience changed back, but we&amp;#39;ve been promised that we can do that, so no worries.&lt;/p&gt;
&lt;p&gt;I would rather have seen this as a new product (viva home) so I don&amp;#39;t have to explain to people that viva connections is now defaulted to this new viva connections home, and not their intranet that they might have built over years.&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;The Viva connections app&amp;#39;s default layout will change in the spring of &amp;#39;23 and get a lot more viva centric.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll be able to switch the new experience off for existing environments, no word yet (that I can find) on new environments.&lt;/p&gt;
&lt;h3&gt;Read more&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.microsoft.com/da-dk/microsoft-365/roadmap?featureid=99917&quot;&gt;Roadmap entry&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/microsoft-viva-blog/more-options-coming-soon-for-the-viva-connections-desktop/ba-p/3644419&quot;&gt;More options coming soon for the Viva Connections desktop experience&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/viva/connections/edit-viva-home&quot;&gt;Overview of Viva Connections&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded></item>
<item><title>When to use Add shortcut to OneDrive vs. Sync</title><link>https://blog.dan-toft.dk/2022/12/add-shortcut-onedrive-sync/</link><pubDate>Mon, 12 Dec 2022 17:14:20 +0000</pubDate><guid>https://blog.dan-toft.dk/2022/12/add-shortcut-onedrive-sync/</guid><description>Microsoft recently added a new option for getting files from SharePoint to your file explorer, but what does that mean for you, and what is the right choice for you?</description><enclosure url="https://blog.dan-toft.dk/2022/12/add-shortcut-onedrive-sync/thumb.webp" type="image/webp" length="0"/><content:encoded>&lt;h3&gt;What does the new &amp;quot;Add shortcut to OneDrive&amp;quot; button do?&lt;/h3&gt;
&lt;p&gt;So recently Microsoft added the new &amp;quot;Add shortcut to OneDrive&amp;quot; button, and that has caused a few confused emails from people asking which to choose, and what the difference is.&lt;/p&gt;
&lt;p&gt;And to be honest I had no clue, so I recently decided to figure it out, to my luck Microsofts own podcast &lt;a href=&quot;https://intrazone.libsyn.com/&quot;&gt;The Intrazone&lt;/a&gt; released an episode title &amp;quot;&lt;a href=&quot;https://intrazone.libsyn.com/add-to-onedrive&quot;&gt;Add to OneDrive&lt;/a&gt;&amp;quot; - in which they brought on Gaia Carini (Principal GPM) and Katy Erlandson (Senior product manager) to talk about this exact issue - I honestly recommend you just go and listen to that episode rather than reading this blog post, but now that you&amp;#39;re here I&amp;#39;ll go over my main take aways mixed with my personal experiences.&lt;/p&gt;
&lt;h3&gt;Why Sync is frustrating&lt;/h3&gt;
&lt;p&gt;Sync is one of those features I think I&amp;#39;ve had the most frustrating calls about in my career, not the most calls, just the most frustrating, actually to the point where I just generally recommend my clients not to use it.&lt;/p&gt;
&lt;p&gt;Now why is that? - generally because every single time, data has either been lost, or has almost been lost and requires manual remerge, because the client had gotten disconnected, or just the classic &amp;quot;it&amp;#39;s slow&amp;quot;.&lt;/p&gt;
&lt;h3&gt;What does &amp;quot;Add shortcut to OneDrive&amp;quot; add to the table&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Performance&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Add shortcut to OneDrive does not seem to fix all of these issues, but does some work to address it, mainly the performance part, something that I did not know, but that was mentioned in the episode is that if you sync a folder from within a document library it&amp;#39;ll still sync metadata for the entire document library, this is actually something I&amp;#39;ve previously recommended to clients as a way to improve performance, and while it did help, the way &amp;quot;Add shortcut to OneDrive&amp;quot; handles it is supposedly vastly superior as it skips the metadata sync from the rest of the document library.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cross device&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Another issue people often have had with sync is whenever you get a new PC you would have to resync all the locations you want synced, and there also isn&amp;#39;t an easy way to get access to your synced files on a mobile device.&lt;/p&gt;
&lt;p&gt;Add shortcut to OneDrive solves both of these issues by simply adding a shortcut in your own OneDrive, this means it&amp;#39;ll be available right there on your new PC, your phone or your tablet, easy as pie.&lt;/p&gt;
&lt;h3&gt;Issues that still remain&lt;/h3&gt;
&lt;p&gt;I still have a few concerns before I&amp;#39;ll actively start recommending clients to actually use either approach to get files to their file explorer, and not just try to stay in the browser.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sync client disconnecting&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;While the &amp;quot;Add shortcut to OneDrive&amp;quot; does also assist the users in getting easy access to files in SharePoint from their OneDrive online, the main use I see is to get the files accessible in file explorer, and I&amp;#39;ve seen this approach fail one too many times due to the OneDrive sync client getting logged out and the user ignoring the errors that&amp;#39;ll show up - and eventually they find out their colleagues cannot see their changes, and that&amp;#39;s when I get the frustrated call, the only real solution I&amp;#39;ve found to this is user training, more user training, and a bit more of user training.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Delete&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Oh god the amount of times I&amp;#39;ve seen this happen... someone in the organization has synced an entire library, decided &amp;quot;hey, I don&amp;#39;t want those files to be taking up space on my machine&amp;quot; .... &lt;em&gt;*Delete*&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Cue the call &amp;quot;WHERE ARE MY FILES?!?!?!&amp;quot;, let me have a look, oh looks like John deleted them, John claims he didn&amp;#39;t, bit and back and forth, before everyone is caught up, and realize what happened, get the files restored, help John to remove the synced library, and we&amp;#39;re rolling, so long as the files are still in the recycling bin...&lt;/p&gt;
&lt;p&gt;Thankfully Katy Erlandson mentioned in the Intrazone episode that it is a top priority to make it more clear to the users what they&amp;#39;re doing which is awesome to hear!&lt;/p&gt;
&lt;h3&gt;Final thoughts&lt;/h3&gt;
&lt;p&gt;I definitely see &amp;quot;Add shortcut to OneDrive&amp;quot; as the future instead of sync, and already now is an awesome way to get your SharePoint files into a single place.&lt;/p&gt;
&lt;p&gt;But until Microsoft finds a great way to solve the issues regarding users accidentally deleting large amounts of data, and the issues with the OneDrive client getting signed out and users still being able to work for weeks until they somehow realize that that one prompt they kept closing means they haven&amp;#39;t been syncing changes for weeks.&lt;/p&gt;
&lt;p&gt;So the way I see it, we&amp;#39;re headed the right direction, and with promises being made around the delete prompts I find it hard to believe MS aren&amp;#39;t also working on fixing the disconnect issues as well.&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;Use the &amp;quot;Add shortcut to OneDrive&amp;quot; for the best experience, as files will be available on all your devices, not just the one you&amp;#39;re on right now, and for better performance!&lt;/p&gt;
</content:encoded></item>
<item><title>Run JavaScript in Power Automate</title><link>https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/</link><pubDate>Thu, 08 Dec 2022 20:55:32 +0000</pubDate><guid>https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/</guid><description>With the addition of Office Scripts a while back Microsoft opened up a world of opportunities for the low/pro code people of the world to easily extend Power Automate, but how?</description><enclosure url="https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/thumb.webp" type="image/webp" length="0"/><content:encoded>&lt;h3&gt;Why would I ever need JS in Power Automate?&lt;/h3&gt;
&lt;p&gt;Coming from a pro-code background, I&amp;#39;ve always found the Power Platform to be interesting and cool, but often a bit cumbersome, to say the least, I love the idea of citizen developers to be able to build tools that helps them grow their business, but I haven&amp;#39;t personally spend too much time with it!&lt;/p&gt;
&lt;p&gt;It wasn&amp;#39;t until recently where I was training a new colleague who&amp;#39;s new to Microsoft 365, and comes from a pro-code background that I really ended up scratching my head, and came across this feature, a customer wanted a flow that whenever a mail arrived in a shared mailbox with a subject that contained a specific pattern any attachments would be uploaded to a SharePoint document library.&lt;/p&gt;
&lt;p&gt;Oh, what a great case for Power Automate - a simple trigger on new mail, a quick RegEx, and upload attachments - should be easy ... Well as it turned out after I had scoped the task and assigned in to him, there is no non-premium RegEx testers in Power Automate.&lt;/p&gt;
&lt;p&gt;Well crap! - Well, there has to be a way, quick Google search later I came across a tweet suggesting that Office Scripts could be triggered from Power Automate, NOW this opens a whole new world - cause we can now run any JavaScript code in Power Automate.&lt;/p&gt;
&lt;h3&gt;The implementation&lt;/h3&gt;
&lt;p&gt;What impressed me the most was just how easy it was to implement, let&amp;#39;s have a look! - 
Firstly I&amp;#39;m going to be assuming that you&amp;#39;ve got a flow already setup and am just currently stuck on implementing a little thing, so that&amp;#39;s where we&amp;#39;ll start!&lt;/p&gt;
&lt;p&gt;Since we&amp;#39;ll be using excel for this we&amp;#39;ll need to create an excel file and store it somewhere, if at all possible I would recommend a location only you have access to, that way you&amp;#39;re sure no one will ever come across it and end up breaking your flow - you could also slowly build your own little library over time that you copy with you from solution to solution.&lt;/p&gt;
&lt;p&gt;Once in Excel Online you should see a &amp;quot;new&amp;quot; ribbon tab called Automate (&lt;strong&gt;NOTE&lt;/strong&gt;, you&amp;#39;ll need a Microsoft 365 license with access to the Microsoft 365 Office desktop apps - despite this not actually working in the desktop apps...)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/2.png&quot; alt=&quot;The excel ribbon&quot;&gt;&lt;/p&gt;
&lt;p&gt;To those of you who&amp;#39;ve ever used macros this will look fairly familiar, and to those of you who haven&amp;#39;t had to deal with them ... congratulation!&lt;/p&gt;
&lt;p&gt;From here we&amp;#39;ll click the new script button, from where we&amp;#39;ll have the option to create a new script, for this sample I&amp;#39;ll be creating a &lt;em&gt;AddTwoDigits&lt;/em&gt; function, just to show the concept.&lt;/p&gt;
&lt;p&gt;My code ends up looking like this (I know it&amp;#39;s technically TypeScript, but just roll with it)&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-TypeScript&quot;&gt;function main(workbook: ExcelScript.Workbook, num1: number, num2: number): number {
    return num1 + num2;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You&amp;#39;ll notice that our first parameter &amp;quot;workbook&amp;quot; is of the type ExcelScript.Workbook - this is a JS reference to the spreadsheet if you wish to read/write to the sheet, for our case here I&amp;#39;ve just added two more parameters, the two digits we want to add together, and a very simple return.&lt;/p&gt;
&lt;p&gt;It looks like this in practice
&lt;img src=&quot;https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/3.png&quot; alt=&quot;The code&quot;&gt;&lt;/p&gt;
&lt;p&gt;From here it&amp;#39;s as easy as pie to use it in Power Automate, simply add the &amp;quot;Run Script&amp;quot; trigger from Excel in Power Automate&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/4.png&quot; alt=&quot;The Run Script trigger icon&quot;&gt;&lt;/p&gt;
&lt;p&gt;And after running the flow this is what we get&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://blog.dan-toft.dk/2022/12/run-javascript-power-automate/5.png&quot; alt=&quot;The Run Script trigger icon&quot;&gt;&lt;/p&gt;
&lt;p&gt;There you go - You&amp;#39;ve just successfully ran JavaScript/TypeScript code from Power Automate!&lt;/p&gt;
&lt;p&gt;Notice the &amp;quot;logs&amp;quot; array? - that&amp;#39;s a string array of all the &lt;strong&gt;console.log&lt;/strong&gt;&amp;#39;s you&amp;#39;ve printed, prefixed with a timestamp, like below:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;  &amp;quot;logs&amp;quot;: [
    &amp;quot;[2022-12-09T19:04:17.9850Z] Adding 1 and 2&amp;quot;,
    &amp;quot;[2022-12-09T19:04:18.0010Z] The result is 3&amp;quot;
  ]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you&amp;#39;re anything like me you&amp;#39;re about to attempt to use the fetch API this way to avoid the premium connector, unfortunately Microsoft already thought of this, so no dice.&lt;/p&gt;
&lt;h3&gt;Conclusions&lt;/h3&gt;
&lt;p&gt;This is a really cool technology, and really highlights some of the crazy ways you make Microsoft&amp;#39;s different technologies play together, and I absolutely love it, and since discovering it, I&amp;#39;ve used it a few times to help out my low-code colleagues, when they hit a roadblock or something (like RegEx) that isn&amp;#39;t really supported in Power Automate, however it&amp;#39;s a fairly vulnerable and obfuscated way to solve a simple problem, I wish Microsoft would bring the JavaScript action from Logic Apps to Power Automate, and at the same time I get why they haven&amp;#39;t.&lt;/p&gt;
&lt;p&gt;For me the biggest problem with this approach is how easily it breaks if someone somehow gets rid of you excel sheet, i.e IT deletes the site it&amp;#39;s on cause of inactivity, a user deletes it cause &amp;quot;no one is using it&amp;quot; - and at least for me the OneDrive &amp;quot;Location&amp;quot; option was broken - that might also just be my dev tenant, I&amp;#39;m not quite sure. &lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;You can use Excel Script to run JavaScript in Power Automate.&lt;/p&gt;
</content:encoded></item>
<item><title>Sites.Selected Permissions what is it, and how do I use it</title><link>https://blog.dan-toft.dk/2022/12/sites-selected-permissions/</link><pubDate>Wed, 07 Dec 2022 17:34:29 +0000</pubDate><guid>https://blog.dan-toft.dk/2022/12/sites-selected-permissions/</guid><description>With the “recent” launch of the Sites.Selected permission we can finally target our application permissions better, let’s have a look!</description><content:encoded>&lt;h3&gt;Why is it even needed&lt;/h3&gt;
&lt;p&gt;For the longest time we were using service accounts when making background jobs to run on SharePoint online, which overall was... let&amp;#39;s call it functional, then we moved to &lt;a href=&quot;https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app&quot;&gt;App Registrations&lt;/a&gt; with Client Secrets which were just as simple to implement as the service accounts, awesome - however we could only do two permission levels&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read everything&lt;/li&gt;
&lt;li&gt;Read/Write everything&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Instead of the app just having the same permissions as the service accounts.&lt;/p&gt;
&lt;p&gt;This (at least for me) caused a lot of concerned clients, (in fact &lt;a href=&quot;https://www.reddit.com/r/sharepoint/comments/zd9qrq/let_it_read_items_in_all_site_collectionsdanger/&quot;&gt;this reddit post&lt;/a&gt; is a great example of just that, and is what prompted me to write this post).&lt;/p&gt;
&lt;p&gt;So initially we moved to using X.509 certificates, as that was a bit more secure, and &amp;quot;the best we can do&amp;quot; - now as time went on, more and more clients started to bug us about this, and FINALLY - in back in &lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/controlling-app-access-on-specific-sharepoint-site-collections/&quot;&gt;February of 2021&lt;/a&gt;, Microsoft announced a new permission level was on the way, it would be all the way up until &lt;a href=&quot;https://devblogs.microsoft.com/microsoft365dev/updates-on-controlling-app-specific-access-on-specific-sharepoint-sites-sites-selected/&quot;&gt;August 11th, 2022&lt;/a&gt; before we saw the actual permission level, but now we have it!&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;So as a developer, what do I do?&lt;/h3&gt;
&lt;p&gt;Honestly surprisingly little!&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need to grant the app the Sites.Selected permission instead of whichever permission you currently have i.e. Sites.ReadWrite.All&lt;/p&gt;
&lt;p&gt;Now your app will get an &lt;strong&gt;Access Denied&lt;/strong&gt;, this is what we want!&lt;/p&gt;
&lt;p&gt;Now we need to grant our app access to the sites we want it to use, you could easily do this with PnP.PowerShell using the &lt;a href=&quot;https://pnp.github.io/powershell/cmdlets/Grant-PnPAzureADAppSitePermission.html&quot;&gt;Grant-PnPAzureADAppSitePermission&lt;/a&gt; cmdlet.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Grant-PnPAzureADAppSitePermission -AppId &amp;lt;Guid&amp;gt; -DisplayName &amp;lt;String&amp;gt; -Permissions &amp;lt;Read|Write&amp;gt; [-Site &amp;lt;SitePipeBind&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However I find clients are reluctant to give me the &lt;strong&gt;Sites.FullControl.All&lt;/strong&gt; permission required to do this.&lt;/p&gt;
&lt;p&gt;So I generally do a screenshare with the client and get them to go to the &lt;a href=&quot;https://developer.microsoft.com/en-us/graph/graph-explorer&quot;&gt;Graph Explorer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And first we need the ID of the site - I use this query to get it with a minimal JSON as possible, as to help the client understand what&amp;#39;s going on&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;GET | https://graph.microsoft.com/v1.0/sites?select=webUrl,Title,Id&amp;amp;$search=&amp;quot;&amp;lt;Name of the site&amp;gt;*&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;{
    &amp;quot;@odata.context&amp;quot;: &amp;quot;https://graph.microsoft.com/v1.0/$metadata#sites&amp;quot;,
    &amp;quot;value&amp;quot;: [
        {
            &amp;quot;id&amp;quot;: &amp;quot;contoso.sharepoint.com,361cafff-021d-4889-81e1-302ab581cf53,3c2ab6a9-dd75-48b5-82bf-ed8bb59105ba&amp;quot;,
            &amp;quot;webUrl&amp;quot;: &amp;quot;https://contoso.sharepoint.com/sites/YourSite&amp;quot;,
            &amp;quot;displayName&amp;quot;: &amp;quot;Your site&amp;quot;
        },
        ....
    ]
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now we&amp;#39;ll simply copy the id for the site we wish to grant our app permission to and run the following requests on that:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;POST | https://graph.microsoft.com/v1.0/sites/&amp;lt;SiteId from above&amp;gt;/permissions
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;POST | https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com,361cafff-021d-4889-81e1-302ab581cf53,3c2ab6a9-dd75-48b5-82bf-ed8bb59105ba/permissions
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Body: &lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-JSON&quot;&gt;{
    &amp;quot;roles&amp;quot;: [
        &amp;quot;write&amp;quot; //or &amp;quot;read&amp;quot; - depending on your needs
    ],
    &amp;quot;grantedToIdentities&amp;quot;: [
        {
            &amp;quot;application&amp;quot;: {
                &amp;quot;id&amp;quot;: &amp;quot;cfa6b32c-acaa-462b-b7b2-113c72c9faa7&amp;quot;, //ClientId for your app registration
                &amp;quot;displayName&amp;quot;: &amp;quot;My super cool yet limited app&amp;quot; //A display name the app, only used to identify it later on this site
            }
        }
    ]
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;That&amp;#39;s it, run your code as normally!&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;Closing thoughts&lt;/h3&gt;
&lt;p&gt;Honestly it&amp;#39;s hard to find any good reasons &lt;strong&gt;NOT&lt;/strong&gt; to use &lt;em&gt;Sites.Selected&lt;/em&gt; every time, but I&amp;#39;ve tried anyways&lt;/p&gt;
&lt;p&gt;You need &lt;em&gt;Sites.FullControl.All&lt;/em&gt; permission to add more sites to your allowed sites, and there isn&amp;#39;t any easy way to see which sites an app registration has access to. It would be really nice to see a centralized way to manage this - and a way to create new sites and automatically have access to it for provisioning cases, so you don&amp;#39;t need a separate app with the &lt;em&gt;Sites.FullControl.All&lt;/em&gt; just to assign permissions to your other apps.&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;Sites.Selected gives you all the permissions you need, but limited to a single site, requires a bit more setup, but should probably be preferred.&lt;/p&gt;
</content:encoded></item>
<item><title>You can now change your tenant name - but should you</title><link>https://blog.dan-toft.dk/2022/11/change-tenant/</link><pubDate>Sat, 19 Nov 2022 17:54:29 +0000</pubDate><guid>https://blog.dan-toft.dk/2022/11/change-tenant/</guid><description>Microsoft finally launched what has long been the most requested feature - renaming your tenant! - but it comes with more than a few gotchas, so, should you?</description><content:encoded>&lt;h3&gt;Into&lt;/h3&gt;
&lt;p&gt;Microsoft recently updated their &lt;a href=&quot;https://learn.microsoft.com/en-us/sharepoint/change-your-sharepoint-domain-name&quot;&gt;documentation&lt;/a&gt; on SharePoint Tenant renmaes to now allow tenants with less than &lt;strong&gt;10.000&lt;/strong&gt; sites to finally change their tenant name!&lt;/p&gt;
&lt;p&gt;That means you can now go from having your URL say &lt;em&gt;CompanyA&lt;/em&gt;.SharePoint.com to  &lt;em&gt;CompanyB&lt;/em&gt;.SharePoint.com.
	
Now before you rush off and change it right away, there are a few gotchas to watch out for!
	
A lot of issues are time related and will fix themselves within 48-72 hours, these I won&amp;#39;t cover in this blog post - but beware that it might be a good idea to do this on a friday after hours, or start of a vacation.&lt;/p&gt;
&lt;h3&gt;Gotchas&lt;/h3&gt;
&lt;p&gt;But there are still some things that might/will break:
	&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Most of your apps need to be updated to recent versions for this to work (see the docs).&lt;/li&gt;
&lt;li&gt;Hub site menu items should be updated automatically as they&amp;#39;re relative URLs, but sometimes they&amp;#39;ll have been set as absolute URLs and therefore need to be manually updated.&lt;/li&gt;
&lt;li&gt;All hub connected sites will need to be disconnected and rejoined.&lt;/li&gt;
&lt;li&gt;The OneDrive Sync Clients folder won&amp;#39;t be renamed.&lt;/li&gt;
&lt;li&gt;Search Index might be slow to update.&lt;/li&gt;
&lt;li&gt;Third party app that don&amp;#39;t handle a &lt;strong&gt;HTTP 308&lt;/strong&gt; correctly will fail.&lt;/li&gt;
&lt;li&gt;eDiscovery hold will get stuck until you update the URL.&lt;/li&gt;
&lt;li&gt;Power Automate flows that use the request sign off feature will break and you&amp;#39;ll need to recreate them.&lt;/li&gt;
&lt;li&gt;Any flows deployed as solutions with managed layers that use SharePoint as a connection won’t work.   &lt;/li&gt;
&lt;li&gt;Power BI connections will need to be updated.&lt;/li&gt;
&lt;li&gt;Project Online Workflow will straight up break if they&amp;#39;re &amp;quot;in flight&amp;quot;.&lt;/li&gt;
&lt;li&gt;Project Online references to PWA sites will need to be manually updated.&lt;/li&gt;
&lt;li&gt;Some web parts might break if they have absolute urls.&lt;/li&gt;
&lt;li&gt;Lots of teams tabs will need to be re-added. (files, embedded sites)&lt;/li&gt;
&lt;li&gt;Teams Wiki images will break - a fix is in the doc&lt;/li&gt;
&lt;li&gt;Any sites that have been deleted can&amp;#39;t be restored after the change.&lt;/li&gt;
&lt;li&gt;Locked sites or OneDrive accounts cannot be renamed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Those are my key takeaways from the docs the Microsoft docs, there are other edge cages, such as not being able to rename if you have a Multi-geo tenant, so if you&amp;#39;re really serious about a rename, go ahead and read the docs, and make sure you understand everything before you start.&lt;/p&gt;
&lt;h3&gt;TL;DR&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;PROBABLY DON&amp;#39;T&lt;/strong&gt;&lt;/p&gt;
</content:encoded></item></channel></rss>