Steps:
1. Logon to the Controller application server as a Windows administrator
2. Launch a Command prompt
3. Type the following commands:
- cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
aspnet_regiis.exe -iru
Power Platform, Microsoft Dynamics CRM 4.0, 2011, 2013, 2015, 2016, D365 CE, C#, ASP.net and MVC, Azure
#CODE STARTS HERE
$programFiles = [environment]::getfolderpath("programfiles")
add-type -Path $programFiles'\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll'
Write-Host 'Ready to enable Sideloading'
$siteurl = Read-Host 'Site Url'
$username = Read-Host "User Name"
$password = Read-Host -AsSecureString 'Password'
$outfilepath = $siteurl -replace ':', '_' -replace '/', '_'
try
{
[Microsoft.SharePoint.Client.ClientContext]$cc = New-Object Microsoft.SharePoint.Client.ClientContext($siteurl)
[Microsoft.SharePoint.Client.SharePointOnlineCredentials]$spocreds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
$cc.Credentials = $spocreds
$site = $cc.Site;
$sideLoadingGuid = new-object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D"
$site.Features.Add($sideLoadingGuid, $true, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None);
$cc.ExecuteQuery();
Write-Host -ForegroundColor Green 'SideLoading feature enabled on site' $siteurl
#Activate the Developer Site feature
}
catch
{
Write-Host -ForegroundColor Red 'Error encountered when trying to enable SideLoading feature' $siteurl, ':' $Error[0].ToString();
}
#CODE ENDS HERE
Dear All,
Please find the below code for Adding List
Member in Marketing List
AddListMembersListRequest
AddMemberRequest = new
AddListMembersListRequest();
AddMemberRequest.ListId = new Guid("73104802-ae9e-ea11-a812-000d3abb53d2");
List<Guid> MemberListIds = new List<Guid>();
for (int hh = 0;
hh < listGuid.Count; hh++)
{
MemberListIds.Add(listGuid[hh]);
}
//Adding
Members
AddMemberRequest.MemberIds =
MemberListIds.ToArray();
// Use
AddListMembersListReponse to get information about the request execution
AddListMembersListResponse
AddMemberResponse = service.Execute(AddMemberRequest) as
AddListMembersListResponse;
Introduction : How to disable Form JavaScript Using URL in Model Driven app and MSCRM . Implementation Steps: Navigate to your Environment...