Showing posts with label AppCatalog. Show all posts
Showing posts with label AppCatalog. Show all posts

Sunday, March 6, 2022

Tips and Trick for SharePoint

Get started with SharePoint Online Management Shell
https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-online/connect-sharepoint-online

Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser
Update-Module -Name Microsoft.Online.SharePoint.PowerShell

Connect-SPOService -Url https://sreekanth1-admin.sharepoint.com -Credential admin@contoso.com #For Non-MFA
Connect-SPOService -Url https://sreekanth1-admin.sharepoint.com #For MFA

Start-SPOSiteRename -Identity https://sreekanth1.sharepoint.com/sites/SreekanthOrganization1 -NewSiteUrl https://sreekanth1.sharepoint.com/sites/SreekanthOrganization2 -ValidationOnly

Start-SPOSiteRename -Identity https://sreekanth1.sharepoint.com/sites/SreekanthOrganization1 -NewSiteUrl https://sreekanth1.sharepoint.com/sites/SreekanthOrganization2

Remove-SPOSite -Identity https://sreekanth1.sharepoint.com/sites/SreekanthOrganization1





















===
Fix “Connect-SPOService : The term ‘Connect-SPOService’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.” Error

1. You can download and install SharePoint Online Management Shell to your client machine:
   https://www.microsoft.com/en-us/download/details.aspx?id=35588

follow below steps:
1. Navigate to “C:\Windows\Microsoft.NET\assembly\GAC_MSIL”
2. Select all folders starting with name “Microsoft.SharePoint.Client” and delete them all!
3. Finally, Install the PowerShell Module for SharePoint Online: Install-Module Microsoft.Online.SharePoint.PowerShell -force

for more details:
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version 
Install-Module Microsoft.Online.SharePoint.PowerShell 
Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell -AllVersions -Force
===
SharePoint Online: Create Site Collection App Catalog:

Enable App Catalog:
$TenantAdminURL = "https://5mgtqr-admin.sharepoint.com"
$SiteCollectionURL = "https://5mgtqr.sharepoint.com"
Connect-PnPOnline -Url $TenantAdminURL -UseWebLogin -ReturnConnection  #-Credentials (Get-Credential)
Add-PnPSiteCollectionAppCatalog -Site $SiteCollectionURL

Remove App Catalog:
$TenantAdminURL = "https://5mgtqr-admin.sharepoint.com"
$SiteCollectionURL = "https://5mgtqr.sharepoint.com"
Connect-PnPOnline -Url $TenantAdminURL -UseWebLogin -ReturnConnection
Remove-PnPSiteCollectionAppCatalog -Site $SiteCollectionURL

list of App Catalog enbaled urls:
$TenantURL =  "https://5mgtqr-admin.sharepoint.com"
Connect-PnPOnline -Url $TenantURL -UseWebLogin -ReturnConnection
$AppCatalog = Get-PnPTenantAppCatalogUrl
Connect-PnPOnline -Url $AppCatalog -UseWebLogin -ReturnConnection
$ListItems = Get-PnPListItem -List "Site Collection App Catalogs"
ForEach($Item in $ListItems){
    Write-host $Item.FieldValues.Item("SiteCollectionUrl")
}
===
$SiteURL = "https://5mgtqr.sharepoint.com"
$AppName = "web-part-client-side-solution"
Connect-PnPOnline -Url $SiteURL -UseWebLogin -ReturnConnection  #-Interactive
#$App = Get-PnPApp -Scope Tenant | Where {$_.Title -eq $AppName}
$App = Get-PnPApp -Scope Site | Where {$_.Title -eq $AppName}
Install-PnPApp -Identity $App.Id -Scope Site
===

Wednesday, September 9, 2015

Create App Catalog in SharePoint online

Create App Catalog in SharePoint online
App Catalog: Make apps available to your organization and manage requests for apps. An app catalog is required to disable Store purchases for end users.

1.  Sign in to your SharePoint Online 2013 site as a tenant administrator.
2.  At the top of the page, choose Admin, SharePoint.
3.  On the SharePoint Administration Center page, choose apps, and then choose App Catalog. If you haven't already created an app catalog site collection, you will be prompted to create one.
4.  After the app catalog site collection is created, open it, and select Apps for SharePoint.
5.  On the App Catalog page, choose the new item link.
6.  On the Add a document form, browse to your app for SharePoint package and choose the OK button. A property form for new items opens.
7.  Fill out the form as needed and choose the Save button. The app for SharePoint is saved in the catalog.
8.  Browse to any website in the tenancy and choose Site Contents to open the Site Contents page.
9.  Choose add an app, and on the Your Apps page, find the app. If there are too many to scroll through, you can enter any part of the app title (Instrumentation) into the search box.
10. When you find the app, choose the Details link beneath it, and then on the app details page that opens, choose Add It.
11. You are prompted to grant permissions to the app. Choose Trust It.
12. The Site Contents page opens and the app is listed. For a short time, a message below the title indicates that it is being added. When this message disappears, you can choose the app icon to             launch the app. (You may need to refresh the page to make the message disappear.)
13. Exercise the app as described in the sample description above.

Featured Post

Mention a Channel or Team – Power Automate

Mention a Channel or Team – Power Automate graph.microsoft.com/v1.0/teams/{teamId}/channels/{channelId}/messages Channel: ---------- {   &qu...

Popular posts