public int CountStaleMaterialeBehov(Func <string, string> getResourcePath) { string path = getResourcePath("Dynamics/Crm/FetchXml/Materiale/CountStaleMaterialeBehov.xml"); XDocument xDocument = XDocument.Load(path); xDocument.Element("fetch").Element("entity").Element("link-entity").Element("filter").Element("condition").Attribute("value").Value = Id.ToString(); int staleMaterialeCount = StaticCrm.CountByFetchXml(Connection, xDocument, "new_materialebehovidcount"); return(staleMaterialeCount); }
public static int CountIndsamlingshjaelper(IDynamicsCrmConnection dynamicsCrmConnection, Func <string, string> getResourcePath) { string path = getResourcePath("Dynamics/Crm/FetchXml/Account/CountIndsamlingshjaelper.xml"); return(StaticCrm.CountByFetchXml(dynamicsCrmConnection, path, "accounts")); }
public static int CountForventetAntalIndsamlere2016(IDynamicsCrmConnection dynamicsCrmConnection, Func <string, string> getResourcePath) { string path = getResourcePath("Dynamics/Crm/FetchXml/Account/CountForventetAntalIndsamlere2016.xml"); return(StaticCrm.CountByFetchXml(dynamicsCrmConnection, path, "accounts")); }