Saturday, December 9, 2023

Friday, December 1, 2023

Get SharePoint Term Store items using REST

 In SharePoint Term Store is user for Manage Meta data. Manage meta data plays vital part if SharePoint when it using across multiple department in a organization. 

Since it is easy to configure the Term Store in development it will given more paint to the development and Power Automate. So that I have found the SharePoint REST call for the Term Store data.

In following URL is using for retrieve all values Term sets. For the <<TERMGROUPID>> and <<TERMSETID>> you need to find out GUID form admin center.

_api/v2.1/termStore/groups/
            <<'TERMGROUPID'>>
            /sets/
            <<'TERMSETID')>>
            /terms?$select=id,labels


In Power Automate You can assign the relevant TERMGROUPID and TERMSETID in to variable and refer as follows

I think you would able to get little knowledge about the Term Store data retrieval






Thursday, November 30, 2023

Get SharePoint all users from in the Group Using the Group Name or Group Id

 In this blog I am explaining how to get all uses form SharePoint group using Name and Id with REST

Get All Users from Groups Name

"_api/web/sitegroups/getbyname('" + groupname + "')/users/"

Get All Users from Groups ID

"/_api/web/sitegroups/GetById(" + groupID +")/Users"

Suppose If you getting Groupe Name from textbox and in will contain special character such as "&" or you can use the Group-id method

var groupName = encodeURIComponent(groupname);
_spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups?
                    $filter=LoginName eq '" + groupName + "'"

Additionally If you need to group details related to the the login user use following method

"/_api/web/sitegroups?$filter=substringof('" + groupname + "',LoginName)"



Wednesday, November 29, 2023

How to use Power Automate Object Variable

 As you all know in the power automate you can find the variable type as object in this blog I am explaining how use Power Automate Object Variable




In above figure shows that I have initialize the Object Type variable for configuration the variables for live and development sites keys and URLs. This can be done by separate 4 string type variables also. But then flow would get pretty long with too many variables and it is very hard to read.
For that reason I have created the single object type variable and defined the JSON type object with other variables and then I can use the variable as follows

for example for sdTechnicianKey you can defied as follows

variables('Config')['sdTechnicianKey']

I think you will get to know little knowledge about the Power Automate Object type variable to master it watch the following video of  Reza Dorrani's you tube channel video

Power Automate flow variables - How to use them


Monday, November 13, 2023

DocuSign e Signatures using in Power Automate

Introduction DocuSign


DocuSign is a cloud base eSignature web application which is simplify the document base signature approval process electronically. 


Does DocuSign work with Power Automate?

In this post I would like to introduce the using the DocuSign eSignatures in the Power Automate. When considering power automate you know you need a connector for action. In early days DocuSign does not have a connector but now they have introduce a connector.

How to enable the DocuSign in Power Automate?

Go to the power automate and create new flow In my case I have created the "instant Cloud flow" then click on plus button to add new action then type DocuSign in the search box



Then you will see two connectors 
  • DocuSign - License users 
  • DocuSign Demo - Developer users

base on your account select your one an log in to your account I show you how to create developer account later post. Once you log in to the account you are able to performed your business workflows


Key things to know in DocuSign 

Before I describe the actions let know about the DocuSign Terminology

  • Envelop - It is a singe transaction that send recipient to sign which has the documents with information
  • Documents - Files that are included in envelop. It is supported many types such as .docx, ppt, pdf, jpg, etc.
  • Recipients: users who receive the envelop to view or approve with there signature
  • Fields: Use to gather the information such as signatures, title, date sign and more.

Steps to follow when sending the Envelops thorough the DocuSign Portal

1. Click Start
2. Add Documents.
3. Add Recipient
4. Edit the Email Subject and Message.
5. Adjust the options
6. Add Fields
7. Click on Send

 

As above mention power automate also uses the same process

First Create a New Envelop


 


 Add your documents to the envelope that you have created.


  

Add the recipient to the envelope.



 

Specify the tabs (Placeholders) to the envelope



Finally Send the Envelope


 

 In future post I will explain more about the above actions and using above control create to power automate to run business process.

 




Sunday, September 19, 2021

ES6 (JavaScript) Arrow Functions explain in briefly


Arrow functions have newly introduced a way to write JavaScript code in a shorter way. in javascript, we can write a function in the following way


function myFunction(item){
	console.log(item);
}

we are able to write javascript function as following way



const myFunction = function(item){
	console.log(item);
}

in arrow function, we can write the following way


const myFunction = (item) => { 
	console.log(item);
}

If the function is returning something it can write the following way


The normal way of writing the function


function myFunction(item){
	return "Item is: " + item;
}

above code can write as follows


const myFunction = function(item){
	return "Item is: " + item;
}

The above code can write with arrow function


const myFunction = (item) => {return "Item is: " + item;}

if it’s a single line return keyword and brackets can be omitted as follows


const myFunction = item => "Item is: " + item;

See more details in the following link

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions


Code snippets are added using highlight.js . The following blog explains how to add it to the blogger site. 


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.