Showing posts with label SharePoint development. Show all posts
Showing posts with label SharePoint development. Show all posts

Wednesday, 21 January 2026

ERR_SSL_PROTOCOL_ERROR in spfx workbench

Issue error on local workbaench:


This site can’t provide a secure connection localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR

Solution:

1.Open package.json file
2. go to below section

before

  "scripts": {
    "build": "gulp bundle",
    "clean": "gulp clean",
    "test": "gulp test"
  }

and add "dev" : "set NODE_NO_HTTP2=1&& gulp serve",

after

  "scripts": {
    "build": "gulp bundle",
    "clean": "gulp clean",
    "test": "gulp test",
    "dev" : "set NODE_NO_HTTP2=1&& gulp serve"
  }

3.  Run "npm run dev" command in terminal or command window
4. if you  still face the issue then run command "gulp trust-dev-cert" then run "npm run dev" command

Monday, 19 January 2026

How to Get User Detail Programatically on ListItem Field

How to Get SPUser Detail Programatically on ListItem Field




 using (SPSite site = new SPSite("http://servername/"))
            {
                using (SPWeb web = site.OpenWeb())
                {
                    SPList List=web.Lists["Voucher"];
                   foreach(SPListItem ListItem in List.Items)
                   {
                       SPFieldUser ownerField =ListItem.Fields.GetField("ColumnName") as SPFieldUser;
                       SPFieldUserValue ownerValue = ownerField.GetFieldValue(ListItem[ownerField.Id].ToString()) as SPFieldUserValue;
                       SPUser owner = ownerValue.User;
                       string ownersEmail = owner.Email;
                       Console.WriteLine("user Name"+ListItem["ColumnName"].ToString());
                       Console.WriteLine("Users Email Id....."+ownersEmail.ToString());
                       Console.WriteLine("User Name .........." + owner.Name);
                       Console.WriteLine("User Id ............." + owner.ID);
                       Console.WriteLine("User Login........." + owner.LoginName);
                   
                       Console.Read();
                   }
                }
            }

Wednesday, 7 January 2026

What's New in SharePoint Framework (SPFx): Latest Features and Updates

Introduction to SharePoint Framework (SPFx)

The SharePoint Framework (SPFx) is a modern development model for building custom solutions in SharePoint Online and on-premises. It enables developers to create responsive, mobile-friendly web parts and extensions using popular web technologies like React, Angular, and TypeScript. In this article, we’ll explore what’s new in SPFx and how these updates can enhance your SharePoint development experience.

Key New Features in SPFx

Microsoft continuously improves SPFx to provide developers with better tools and capabilities. Here are some of the latest updates:

  • Support for Microsoft Teams: SPFx now allows developers to build apps that work seamlessly in both SharePoint and Microsoft Teams, improving collaboration and integration.
  • Improved Performance: The latest versions of SPFx include optimizations for faster load times and better resource management, ensuring a smoother user experience.
  • Yarn and NPM Compatibility: Developers can now use Yarn or NPM for package management, offering flexibility in managing dependencies.
  • Enhanced Tooling: Updated Yeoman generators and Gulp tasks make scaffolding and building projects easier than ever.

Benefits of the Latest SPFx Updates

The new features in SPFx bring several benefits to developers and organizations:

  • Cross-Platform Development: Build solutions that work across SharePoint Online, on-premises, and Microsoft Teams.
  • Modern Web Standards: Leverage React, Angular, and other frameworks for creating dynamic, responsive solutions.
  • Faster Deployment: Improved build processes and performance optimizations reduce time-to-market for custom solutions.

Examples of SPFx Use Cases

Here are some practical examples of how organizations use SPFx:

  • Custom Web Parts: Create tailored web parts for dashboards, reports, and interactive content.
  • Extensions: Add custom actions, field customizers, and application customizers to enhance SharePoint functionality.
  • Teams Integration: Build apps that provide a unified experience across SharePoint and Microsoft Teams.

Conclusion

The latest updates in SharePoint Framework (SPFx) make it a powerful tool for modern SharePoint development. By leveraging these new features, developers can create more efficient, integrated, and user-friendly solutions. Stay updated with SPFx releases to maximize your SharePoint investment.

Monday, 5 January 2026

What is SharePoint Embedded and Its New Features?

SharePoint Embedded is a modern, API-first platform designed to help developers integrate Microsoft 365 content management capabilities directly into their applications. Unlike traditional SharePoint, which focuses on site-based collaboration, SharePoint Embedded provides a headless, scalable solution for building custom content experiences without the overhead of full SharePoint sites.

What is SharePoint Embedded?

SharePoint Embedded is a cloud-based service that allows developers to leverage Microsoft 365's secure file storage, compliance, and collaboration features within their own apps. It is built on the same trusted infrastructure as SharePoint and OneDrive, ensuring enterprise-grade security and compliance while offering flexibility for custom development.

Key Benefits of SharePoint Embedded

  • API-First Architecture: Enables developers to create custom content solutions without relying on SharePoint UI.
  • Scalability: Designed to handle large-scale content storage and management for enterprise applications.
  • Security and Compliance: Inherits Microsoft 365’s robust security, compliance, and governance features.
  • Seamless Integration: Easily integrates with Microsoft Graph and other Microsoft 365 services.

New Features in SharePoint Embedded

Microsoft has introduced several new features to make SharePoint Embedded more powerful and developer-friendly:

  • Multi-Tenant Support: Build apps that can serve multiple organizations securely.
  • Granular Permissions: Fine-tuned access control for files and folders within your application.
  • Enhanced API Capabilities: Improved endpoints for file operations, metadata management, and search.
  • Cost-Effective Storage: Flexible pricing models for large-scale content storage needs.

Why Choose SharePoint Embedded?

If you are building an application that requires secure document storage, compliance, and collaboration features without the complexity of a full SharePoint site, SharePoint Embedded is the ideal solution. It empowers developers to create tailored experiences while leveraging Microsoft’s trusted infrastructure.

By adopting SharePoint Embedded, businesses can accelerate development, reduce infrastructure costs, and deliver modern, secure content solutions to their users.