This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static bool IsTeamMember(IOrganizationService service, Guid userId, Guid teamId) | |
{ | |
var request = new RetrieveTeamsSystemUserRequest | |
{ | |
EntityId = userId, | |
ColumnSet = new ColumnSet() | |
}; | |
var response = (RetrieveTeamsSystemUserResponse)service.Execute(request); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NumberCellPage : ContentPage | |
{ | |
public NumberCellPage() | |
{ | |
var grid = new Grid | |
{ | |
RowSpacing = 0, | |
VerticalOptions = LayoutOptions.FillAndExpand, | |
HorizontalOptions = LayoutOptions.FillAndExpand | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onLoad() { | |
Xrm.Page.getAttribute("address1_addresstypecode").fireOnChange(); | |
Xrm.Page.getAttribute("address2_addresstypecode").fireOnChange(); | |
} | |
function addressType_onChange(executionContextObj) { | |
const field = executionContextObj.getEventSource(); | |
const addressType = field.getText(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Xamarin.Forms; | |
namespace XamarinFormsDeepDive | |
{ | |
class ListViewDemo : ContentPage | |
{ | |
class Person | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.ObjectModel; | |
using Xamarin.Forms; | |
namespace XamarinFormsDeepDive | |
{ | |
class ListViewDemo2 : ContentPage | |
{ | |
class Person | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void DeleteAttachments(CrmServiceClient crmService) | |
{ | |
const bool testing = true; | |
const int filesize = 0; | |
const string actualend = "2023-12-31T00:00:00-06:00"; | |
const string operationDescription = testing ? "Retrieved" : "Deleting"; | |
var query = new QueryExpression("email") | |
{ | |
Distinct = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Run() | |
{ | |
var url = "https://[].crm.dynamics.com"; | |
var userName = ""; | |
var password = ""; | |
// Default Azure application | |
var conn = $@" | |
Url = {url}; | |
AuthType = OAuth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static bool DoesRecordExist(IOrganizationService crmService, string entityName, Guid id) | |
{ | |
try | |
{ | |
crmService.Retrieve(entityName, id, new ColumnSet()); | |
} | |
catch (Exception ex) | |
{ | |
if (ex is FaultException<OrganizationServiceFault> orgException) | |
{ |