Saturday, September 18, 2021

Apply SharePoint Template to site in SharePoint Online

 This article describes applying a built-in template to the site. Following are the steps.


Go to the preferred site that you need to add a custom theme and click on the gear wheel in suite bar.


Then You will able to see the “Apply a site template” under the Settings.



When it displays the "Select a template" you are able to see two tabs. 

"From Microsoft":- by default when we are creating the team site it will apply a "Team collaboration" template other than that Microsoft has introduced Event Planning, Project Management, Training and courses, Training and development team. According to your requirement.

"From your organization":- Some organisations have built their own custom template in this section you can select the organisation level custom theme.



Select the preferred template to apply. For example, I select a Project management template to show you. then it displays the "Preview and apply template" window explaining the capabilities of the template.


 Click on the "Use template" button to apply the template.


After applying the template site will look like following



Once the template is added as it explains according to the scenario it has generated the relevant list to cater for it. Presently, for project management template, it has added following list.















Monday, April 5, 2021

Customizing Office 365 Suite Bar Theme with logo image

 

Here I'm going to explain how to change the logo in SharePoint online. In This method, the logo is changed at the tenant level and it is displayed on the office suite bar.

Select Admin from Apps


Once the admin panel has loaded. Click on … Show all



Click On Settings to expand to the option. Then select the Org settings



Under Org settings select the Organization profile tab.




Select the Custom themes



T hen it will display the Custom Thames pane on the right-hand side



Under the Custom themes pane Select the Upload an image Under Use a Custom logo image option



then it will visible the Upload an image option so the user can Browse and select the relevant logo image (logo image dimension should be 200 x 30)



 After selecting the logo image press the Save button to save changes. 



Once settings are successfully saved it will show the following message.



Then logo will display beside the text








Friday, January 22, 2021

How to navigate to power automate admin center

 In this article, I am explaining how to navigate the Power Platform Admin Center. There were two methods,

  1. Direct Navigation by URL
  2. Navigate Through  O365
1. Direct Navigation by URL
As per today, 22/01/2021 following URL is navigating to the Power Automate Platform

2. Navigate Through O365

If you are log with the O365 with Tenant Admin the follow the below steps

In Admin Center you can see the Customize Navigation item, below that Click on the ."..Show all" item  to expand 

Then Admin centre is expanding the list with more items, So select the "All admin centres"



 So you can see all the admin centres, from that to choose the relevant item. in this scenario, we need to access the "Power Automate Admin Center".



Once you select the "Power Automate" Then it loads the Power Platform Admin Center




Tuesday, November 24, 2020

How to add custom URL to Modern SharePoint List

 


In this article, I will show you how to add a custom link to SharePoint Modern List thanks to the new SharePoint List View Formatting.  Earlier If we want to do this kind of task we need to add JSLink JavaScript.

So following code will show you how to do it

{

   "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",

   "elmType": "a",

   "txtContent": "@currentField.desc",

   "attributes": {

      "href": "@currentField",

      "target": "_blank"

   }

}

If you are gone through the code snippet it is adding "a href "HTML tag to SharePoint List. It represents the above JSON to HTML it will look like as follows

<a href='@currentField' target='_blank'>@currentField.desc</a>

in elmType it will define the tag to which we are asked to add an element to the list view. Then the txtContent text is the Link text that shows to you. @currentField.desc is return the value of the field. finally, in the attributes section, it defines the <a> tag attributes. In this scenario, it adds the href and target attributes.


In this post, I have explaining how to add current list item link to the modern SharePoint list view if you need to add a static URL need to replace textContent and href in the attribute section.

Tuesday, August 6, 2019

_spPageContextInfo in JavaScript object model

What is _spPageContextInfo SharePoint JavaScript Object Model?

In JavaScript Object Model _spPageContextInfo is a main object use to key values like user name, siteurl, userid,etc. 

  • _spPageContextInfo.webabsoluteurlAbsolute URL of the current Web
  • _spPageContextInfo.userid - User Id of login user
  • _spPageContextInfo.userloginname - user name of login user

You can learn more about the _spPageContextInfo for followings blog codesharepoint.com

In some occasions  "_spPageContextInfo is not defined" error occurs in above error explain in above also

Saturday, January 17, 2015

Sunday, March 24, 2013

WebTemplate’s in SharePoint 2010


It is a New Feature Introduce in SharePoint 2010 can use as a Sandbox solution architecture
* Its allows deployment at site collection level
* Most of "Site Definitions" features are in the web template
* Web templates were based on existing site definition
* It Does not support Document Templates
* Only one Configuration
* It is best approach to control environment

WebTemplate Element

It specifies the default behavior the template
There are 3 required attributes
    - BaseTemplateID
    - BaseTemplateName
    - BaseConfigurationID
    - Name
Optional Attribute
    - Titke
    - AlternateCssUrl
    - CustOmJS

Onet.xml

It contain NavBars and Configuration Elements but not ListTemplate, DocumentTemplate, Modules, ServerEmailFooter
like Site Definition

One Configuration

Some attributes of project are superseded by WebTemplate attribute

It use features instead of Module

Sunday, September 9, 2012

Sunday, October 9, 2011

Retrieving the SharePoint List

There are two types of data retrieving in the SharePoint one method is using the SharePoint Web Service and other method is Using SharePoint dll. Today I am doing the second method, To use this method you need to do development in the SharePoint server or else that you can develop your own machine and deploy it in the machine and check but you are not able to debug it.

Saturday, October 8, 2011

How to add item to Sharepoint List

In this article I will show you how to add record to Sharepoint List using Sharepoint web part. The list name is ContactUs and following are the field to fill “Name”,” Email”, “WebSite”, “Telephone”, “Company”, “JobRole”,” Comment”, “How_do_you_hear “ and “UseSocialSite”

Friday, October 7, 2011

Wednesday, October 5, 2011

CRM2011 Data Filtering and retrieve

Following code illustrate how to Filter the data in the CRM and retrieve data from it in following code I have Select "Paidamount " form "Eventbooking" Entity for that I need to satisfy following criteria 
PaidAmount should not null, Bookingstatus should be 2, StatusCode should be 1 and event id must have to equal to provide one of the top 

Tuesday, October 4, 2011

Monday, October 3, 2011