Skip to content

Commit d7c4f36

Browse files
authored
Changed Code Type
In the section "To add the Geolocation column to a list using PnP PowerShell", the script lines were shown as `csharp`. I changed them to `powershell`.
1 parent 557ec0f commit d7c4f36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/general-development/how-to-add-a-geolocation-column-to-a-list-programmatically-in-sharepoint.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ Follow these steps to add the Geolocation column to a list. This must be done pr
3838
1. Open PowerShell
3939
1. Connect to the site you wish to add the column to
4040

41-
```csharp
41+
```powershell
4242
Connect-PnPOnline -url "https://TENANT.sharepoint.com/sites/SITEURL"
4343
```
4444
4545
1. Open the list you wish to add the column to
4646
47-
```csharp
47+
```powershell
4848
$list = Get-PnPList -Identity "LISTNAME"
4949
```
5050
5151
1. #Add the Geolocation field - Change parameters as necessary
5252
53-
```csharp
53+
```powershell
5454
Add-PnPField -List $list -Type GeoLocation -DisplayName "GeoLocationField" -InternalName "GeoLocationField" -AddToDefaultView -Required
5555
```
5656

0 commit comments

Comments
 (0)