private async Task QueryAsync() { var query = "SELECT Id, SourceObject, Active, IsOptional, DeveloperName, Metadata FROM LookupFilter LIMIT 1"; var result = await _api.QueryAsync(query).ConfigureAwait(false); Console.WriteLine($"Query Result:{Environment.NewLine}{result}"); }
public async Task Query() { var query = @" SELECT Id, DataType, DeveloperName, Metadata FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName = 'Account' AND DurableId ='Account.Industry'"; var result = await _toolingApi.QueryAsync(query).ConfigureAwait(false); Assert.Equal("FieldDefinition", result["entityTypeName"].Value <string>()); }