{"id":24405,"date":"2020-08-14T13:29:05","date_gmt":"2020-08-14T13:29:05","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=24405"},"modified":"2020-08-14T13:29:05","modified_gmt":"2020-08-14T13:29:05","slug":"how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/","title":{"rendered":"How to work with Combined Filters of Fetch Function in Resco Mobile App"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App.<\/p>\n<p>For example, on <strong>Account<\/strong> entity form we added a custom button. And on click of that button we wanted to retrieve active <strong>Work Order <\/strong>records associated with that <strong>Account <\/strong>having \u2018System Status = Open \u2013 Unscheduled\u2019 and \u2018Work Order Type = Maintenance \/ Inspection\u2019 and populate \u2018Work Order Instructions\u2019 on them from the <strong>Account <\/strong>record.<\/p>\n<p>So first, we added a custom button \u2018Process Work Orders\u2019 on the <strong>Account <\/strong>entity form and then added a HTML File in \u2018Offline HTML\u2019 of Resco Project with below code snippet.<\/p>\n<p>Code Snippet:<\/p>\n<p>\/\/Event of CustomCommand<\/p>\n<p>MobileCRM.UI.EntityForm.onCommand(&#8220;custom_ProcessWorkOrders&#8221;, function (entityForm) {<\/p>\n<p>\/\/FetchXML Entity for retrieving Work Order records<\/p>\n<p>var entity = new MobileCRM.FetchXml.Entity(&#8220;msdyn_workorder&#8221;);<\/p>\n<p>entity.addAttribute(&#8220;msdyn_workorderid&#8221;);<\/p>\n<p>entity.addAttribute(&#8220;msdyn_name&#8221;);<\/p>\n<p>\/\/Sub filter with AND clause<\/p>\n<p>var subFilter1 = new MobileCRM.FetchXml.Filter();<\/p>\n<p>subFilter1.type = &#8220;and&#8221;;<\/p>\n<p>subFilter1.where(&#8220;msdyn_serviceaccount&#8221;, &#8220;eq&#8221;, entityForm.entity.id); \/\/Service Account<\/p>\n<p>subFilter1.where(&#8220;msdyn_systemstatus&#8221;, &#8220;eq&#8221;, 690970000); \/\/Open &#8211; Unscheduled<\/p>\n<p>subFilter1.where(&#8220;statecode&#8221;, &#8220;eq&#8221;, 0); \/\/Active<\/p>\n<p>\/\/Sub filter with OR clause<\/p>\n<p>var subFilter2 = new MobileCRM.FetchXml.Filter();<\/p>\n<p>subFilter2.type = &#8220;or&#8221;;<\/p>\n<p>subFilter2.where(&#8220;msdyn_workordertype&#8221;, &#8220;eq&#8221;, &#8220;ad2d8b0a-2fe7-e611-8110-e0071b66bf01&#8221;); \/\/Inspection<\/p>\n<p>subFilter2.where(&#8220;msdyn_workordertype&#8221;, &#8220;eq&#8221;, &#8220;69a69cba-bad3-ea11-a812-000d3a569dff&#8221;); \/\/Maintenance<\/p>\n<p>\/\/Main Filter i.e. group of subfilters<\/p>\n<p>var mainFilter = new MobileCRM.FetchXml.Filter();<\/p>\n<p>mainFilter.type = &#8220;and&#8221;;<\/p>\n<p>mainFilter.filters = [subFilter1, subFilter2]; \/\/sub filters<\/p>\n<p>\/\/Add Main Filter in Entity Filter<\/p>\n<p>entity.filter = mainFilter;<\/p>\n<p>var fetch = new MobileCRM.FetchXml.Fetch(entity);<\/p>\n<p>\/\/fetching data of entity<\/p>\n<p>fetch.execute(&#8220;DynamicEntities&#8221;, function (result) {<\/p>\n<p>\/\/validate result<\/p>\n<p>if (typeof (result) != &#8220;undefined&#8221; &amp;&amp; result.length &gt; 0) {<\/p>\n<p>\/\/Here you can perform operation on the retireve records.<\/p>\n<p>\/\/You will get the retrieved records in the \u201cresult\u201d object<\/p>\n<p>}<\/p>\n<p>}, function (error) {<\/p>\n<p>MobileCRM.bridge.alert(&#8220;An Error Has occurred &#8221; + error);<\/p>\n<p>});<\/p>\n<p>});<\/p>\n<p><strong>Note: We need to add all \u2018sub filters\u2019 in the \u2018main filter\u2019 and then associate that \u2018main filter\u2019 to the \u2018FetchXML Filter\u2019 to make it work.<\/strong><\/p>\n<p style=\"text-align: justify;\">Next, we added this Html file in the \u2018Iframe\u2019 of the <strong>Account <\/strong>entity form and published the Resco Project. Then after publishing Resco Project we synced the Resco Mobile App with that environment and navigated to the <strong>Account <\/strong>record. Next, we clicked on the \u2018Process Work Orders\u2019 for retrieveing and updating the <strong>Work<\/strong> <strong>Order<\/strong> records based on the conditions.<\/p>\n<p>Now after the execution of this function, only the active <strong>Work Order <\/strong>records associated with that <strong>Account <\/strong>having \u2018System Status = Open \u2013 Unscheduled\u2019 and \u2018Work Order Type = Maintenance \/ Inspection\u2019 was retrieved and processed.<\/p>\n<p>Please refer below screenshot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-24406\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png\" alt=\"Resco\" width=\"1366\" height=\"701\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png 1366w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco-300x154.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco-768x394.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco-1024x525.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco-660x339.png 660w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this way, instead of performing multiple Fetch Functions or Fetch XML for retrieving entity records of the same entity, we can use <strong>\u2018Combined Filter\u2019<\/strong> in a single Fetch Function for retrieving the records of same entity based on multiple conditions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/\">Read More: How to work with Combined Filters of Fetch Function in\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":24407,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[1445],"class_list":["post-24405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-resco-mobile-crm","tag-resco-mobile-app"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t\t<meta property=\"og:image:height\" content=\"701\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-14T13:29:05+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-14T13:29:05+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#blogposting\",\"name\":\"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to work with Combined Filters of Fetch Function in Resco Mobile App\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Resco-Mobile-App-2.png\",\"width\":150,\"height\":150,\"caption\":\"Resco Mobile App\"},\"datePublished\":\"2020-08-14T13:29:05+05:30\",\"dateModified\":\"2020-08-14T13:29:05+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#webpage\"},\"articleSection\":\"Resco Mobile CRM, Resco Mobile App\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/resco-mobile-crm\\\/#listItem\",\"name\":\"Resco Mobile CRM\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/resco-mobile-crm\\\/#listItem\",\"position\":2,\"name\":\"Resco Mobile CRM\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/resco-mobile-crm\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#listItem\",\"name\":\"How to work with Combined Filters of Fetch Function in Resco Mobile App\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#listItem\",\"position\":3,\"name\":\"How to work with Combined Filters of Fetch Function in Resco Mobile App\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/resco-mobile-crm\\\/#listItem\",\"name\":\"Resco Mobile CRM\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/\",\"name\":\"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Resco-Mobile-App-2.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#mainImage\",\"width\":150,\"height\":150,\"caption\":\"Resco Mobile App\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2020\\\/08\\\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\\\/#mainImage\"},\"datePublished\":\"2020-08-14T13:29:05+05:30\",\"dateModified\":\"2020-08-14T13:29:05+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work","canonical_url":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#blogposting","name":"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to work with Combined Filters of Fetch Function in Resco Mobile App","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco-Mobile-App-2.png","width":150,"height":150,"caption":"Resco Mobile App"},"datePublished":"2020-08-14T13:29:05+05:30","dateModified":"2020-08-14T13:29:05+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#webpage"},"articleSection":"Resco Mobile CRM, Resco Mobile App"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/resco-mobile-crm\/#listItem","name":"Resco Mobile CRM"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/resco-mobile-crm\/#listItem","position":2,"name":"Resco Mobile CRM","item":"https:\/\/www.inogic.com\/blog\/category\/resco-mobile-crm\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#listItem","name":"How to work with Combined Filters of Fetch Function in Resco Mobile App"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#listItem","position":3,"name":"How to work with Combined Filters of Fetch Function in Resco Mobile App","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/resco-mobile-crm\/#listItem","name":"Resco Mobile CRM"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/","name":"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco-Mobile-App-2.png","@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#mainImage","width":150,"height":150,"caption":"Resco Mobile App"},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/#mainImage"},"datePublished":"2020-08-14T13:29:05+05:30","dateModified":"2020-08-14T13:29:05+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work","og:url":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png","og:image:width":1366,"og:image:height":701,"article:published_time":"2020-08-14T13:29:05+00:00","article:modified_time":"2020-08-14T13:29:05+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to work with Combined Filters of Fetch Function in Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction Recently, we had a business requirement where we had to retrieve entity records by satisfying a combination of conditions in the script and perform operations on them in Resco Mobile App. For example, on Account entity form we added a custom button. And on click of that button we wanted to retrieve active Work","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/08\/Resco.png","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"24405","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 05:57:43","updated":"2025-07-04 07:45:02","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/resco-mobile-crm\/\" title=\"Resco Mobile CRM\">Resco Mobile CRM<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to work with Combined Filters of Fetch Function in Resco Mobile App\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Resco Mobile CRM","link":"https:\/\/www.inogic.com\/blog\/category\/resco-mobile-crm\/"},{"label":"How to work with Combined Filters of Fetch Function in Resco Mobile App","link":"https:\/\/www.inogic.com\/blog\/2020\/08\/how-to-work-with-combined-filters-of-fetch-function-in-resco-mobile-app\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=24405"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/24407"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=24405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=24405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=24405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}