Sam's Microsoft Dynamics 365 Blog

Friday, 21 February 2020

Migrate SharePoint On-Premises Content to SharePoint Online

In this article, we will discuss about Migrate SharePoint On-Premises Content to SharePoint OnlineSharePoint Online Migration PowerShell cmdlet is the a way of doing content migration without using a tool.


So, let's discuss step by step:

Prerequisites:-

  •     Azure Subscription
  •     Azure Storage Account
  •     Office 365 (SharePoint) Account
  •     SP Online Management Shell

Script:


Get-PSSnapin

Get-PSSnapin -Registered

Add-PSSnapin Microsoft.SharePoint.PowerShell

Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking

Export-SPWeb -Identity "<onprem-site URL e.g. http://saddamk206>" -ItemUrl "/<Document library name e.g. MyDocuments>/" -Path "<temprary path e.g. C:\Migration\MyDocuments_Source" -NoFileCompression -IncludeVersions LastMajorAndMinor

$username = "samkhan@saddamk206.co.in"

$cred = Get-Credential $username

$sourceFiles = "<Source of Files e.g. C:\Migration\MyDocuments_Source>"

$sourcePackage="<Source of Package e.g. C:\Migration\MyDocuments_Source>"

$outputPackagePath = "<Output package path e.g. C:\Migration\MyDocuments_outputPackagePath>"

$targetWebUrl = "<online sharepoint site URL e.g. https://saddamk206.sharepoint.com/sites/mypersonalsite>"

$targetLibrary = "MyDocuments"

ConvertTo-SPOMigrationTargetedPackage -SourceFilesPath $sourceFiles -SourcePackagePath $sourceFiles -OutputPackagePath $outputPackagePath -TargetWebUrl $targetWebUrl -TargetDocumentLibraryPath $targetLibrary -Credentials $cred

$azureAccountName = "<Azure account name e.g. samstorate206>"

$azureAccountKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=="

$azurelocations=Set-SPOMigrationPackageAzureSource -SourceFilesPath $sourceFiles -SourcePackagePath $outputPackagePath -AccountName $azureAccountName -AccountKey $azureAccountKey

Submit-SPOMigrationJob -TargetWebUrl $targetWebUrl -MigrationPackageAzureLocations $azurelocations -Credentials $cred


Thanks for reading the article. Hope this Article will helpful for you. Cheers!!!

Saturday, 1 February 2020

Integrate a Chatbot in Microsoft Dynamics Portal

In this article, we will discuss about displaying an integration of a Chatbot inside Microsoft Dynamics portal. I am using “tawk.to” Chatbot.  So, let's discuss step by step: -

1. I have tawk.to account, so I am login this. We can create a tawk.to account here: -https://dashboard.tawk.to/signup

2. After login I can see my tawk.to dashboard, now click on the Gear(setting) icon.



3. Now we can see “Widget code” in right section, Copy it.

4. Now open Dynamics Portal and login from Admin account.

5. After login we can see the Setting section on top right.



6. Click on Edit.

7. Edit page popup window will open, now click on “Options”.



8. Now we can see three sections “Description, Custom JavaScript, Custom CSS”, put copied code inside Custom JavaScript section.

9. Remove script tags from code and Save it.

10. Now we can see the tawk.to Chatbot at the bottom right.



11. I am dropping messages here and can see inside tawk.to message section.






Thanks for reading the article. Hope this Article will helpful for you. Cheers!!!

Friday, 17 January 2020

Embed a PowerApps inside Microsoft Teams

In this article, we will discuss about displaying a PowerApps inside Microsoft Teams. I have already explained another way for embedding a PowerApps inside Team of Microsoft Teams here http://saddamk.blogspot.com/2020/01/embed-powerapps-inside-microsoft-teams.html


Now we are going to try another way, So, let's discuss step by step: -


1. Open https://make.powerapps.com/
2. Click on “Apps”.
3. Select an app, here I am selecting an already created app with the name “Service Desk”. We can create an App here https://make.powerapps.com/  with the help of https://docs.microsoft.com/en-gb/powerapps/maker/index
4. Now click on three dots and select “Add to Teams”.


5. A prompt will open, so now click on “Download App”.


6. The app is downloaded as a zip file at the browser download location.
7. Now Open https://teams.microsoft.com/.
8. Click on “Apps”.
9. Now Click on “Upload a custom app” and then select downloaded app’s zip file and upload it.


10. Select App.



11. Click on “Add”.



12. After adding we can see the app inside Microsoft Teams.


13. We can redirect to this app on clicking on three dots and then select our app, as shown in the below screenshot.



Sources: -

 https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/embed-teams-app

Thanks for reading the article. Hope this Article will helpful for you. Cheers!!!

How to Get the Power Automate Flow Run URL Using Expressions

In many Power Automate projects, especially those involving approvals, error handling, or audit logs, it’s helpful to have a direct link to ...