38 lines
2.8 KiB
JSON
38 lines
2.8 KiB
JSON
{ "queries":
|
|
[
|
|
{
|
|
"sobject": "SCInstalledBaseLocation__c",
|
|
"query": "SELECT Id, City__c, Country__c, GeoY__c, GeoX__c, PostalCode__c, Street__c, Extension__c, HouseNo__c, FlatNo__c, Floor__c FROM SCInstalledBaseLocation__c WHERE Country__c = '{country}' AND Id = 'a1B1r0000099EsfEAE' limit 1"
|
|
},{
|
|
"sobject": "SCInstalledBase__c",
|
|
"query": "SELECT Id, Name, CommissioningDate__c,InstallationDate__c,ProductEnergy__c, ProductUnitClass__c,ArticleNo__c,SerialNo__c, SerialNoException__c, ProductUnitType__c, InstalledBaseLocation__c FROM SCInstalledBase__c WHERE Country__c = '{country}' AND InstalledBaseLocation__c = 'a1B1r0000099EsfEAE'"
|
|
},{
|
|
"sobject": "Asset",
|
|
"query": "SELECT Id, Serialnumber FROM Asset WHERE Location.ParentLocation.Name LIKE '%{country}'"
|
|
},{
|
|
"sobject": "Address",
|
|
"query": "SELECT Id, Country, CountryCode, Street, City, ParentId, PostalCode FROM Address WHERE CountryCode = '{country}'"
|
|
},{
|
|
"sobject": "ParentLocation",
|
|
"query": "SELECT Id, Name FROM Location WHERE Name LIKE '%{country}'"
|
|
},{
|
|
"sobject": "ChildLocation",
|
|
"query": "SELECT Id, ParentLocationId, Name FROM Location WHERE ParentLocation.Name LIKE '%{country}'"
|
|
},{
|
|
"sobject": "Product2",
|
|
"query": "SELECT Id, Main_Product_Group__c, Family, MaterialType__c, Name, Product_Code__c, ProductCode, EAN_Product_Code__c FROM Product2"
|
|
},{
|
|
"sobject": "SCInstalledBaseRole__c",
|
|
"query": "SELECT Id, InstalledBaseLocation__c, Role__c, ValidFrom__c, ValidTo__c, Account__c FROM SCInstalledBaseRole__c WHERE InstalledBaseLocation__r.Country__c = '{country}' AND InstalledBaseLocation__c = 'a1B1r0000099EsfEAE'"
|
|
},{
|
|
"sobject": "SCPriceList__c",
|
|
"query": "SELECT Id, Name, Brand__r.Name, Country__c from SCPriceList__c WHERE Country__c = '{country}' AND PriceList__c != null"
|
|
},{
|
|
"sobject": "SCPriceListItem__c",
|
|
"query": "SELECT Id, Article__r.Name, Price__c, PriceUnit__c, Pricelist__c, ValidFrom__c, ValidTo__c, Article__r.EANCode__c, Pricelist__r.Brand__r.Name, Pricelist__r.Country__c FROM SCPriceListItem__c WHERE Country__c = '{country}' AND PriceList__c != null AND (ValidTo__c >= TODAY OR ValidFrom__c >= TODAY) AND Article__c = 'a0Gw000001R9slpEAB'"
|
|
},{
|
|
"sobject": "SCResourceAssignment__c",
|
|
"query": "SELECT Id, ValidTo__c, ValidFrom__c, Country__c, City__c, District__c, Street__c, HouseNo__c, Extension__c, FlatNo__c, Floor__c, GeoY__c, GeoX__c, Resource__c, Stock__c FROM SCResourceAssignment__c WHERE Country__c = '{country}' AND ValidTo__c >= TODAY"
|
|
}
|
|
]
|
|
} |