{"id":15132,"date":"2019-03-20T11:39:22","date_gmt":"2019-03-20T11:39:22","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=15132"},"modified":"2019-06-28T05:54:08","modified_gmt":"2019-06-28T05:54:08","slug":"working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/","title":{"rendered":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App"},"content":{"rendered":"<p><strong>Introduction:<\/strong><\/p>\n<p>Recently, we had a business requirement where we needed to display total number of active <strong>Agreement <\/strong>records associated to the <strong>Account<\/strong> entity of<strong> Dynamics 365 CRM <\/strong>on \u201cAccount Entity Form\u201d in Resco mobile app.<\/p>\n<p>So, we developed a script for populating total number of active <strong>Agreements <\/strong>related to the <strong>Account record<\/strong> and deployed it on the entity form of <strong>Account <\/strong>entity in Resco Mobile App.<\/p>\n<p>Following is the function that we were using in Javascript,<\/p>\n<p>Code Snippet:<\/p>\n<p>\/\/Executing fetch<\/p>\n<p>fetch.execute(&#8220;DynamicEntities&#8221;, function (result) {<\/p>\n<p>if (typeof (result) != &#8220;undefined&#8221; &amp;&amp; result.length &gt; 0) {<\/p>\n<p>\/\/Setting &#8220;new_totalagreements&#8221; feild<\/p>\n<p>entityForm.entity.properties[&#8220;new_totalagreements&#8221;] = result.length.toString();<\/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>After deploying the script on Resco Mobile App, when the user opened an Account record on \u201cOffline\u201d mode it worked as expected, but when the user opened an Account record on \u201cOnline\u201d mode it did not work and an Exception was thrown.<\/p>\n<p>Please refer below screenshot,<\/p>\n<p><strong>Online Mode: <\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19325\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png\" alt=\"JSBridge\" width=\"1366\" height=\"730\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png 1366w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge-300x160.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge-768x410.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge-1024x547.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge-660x353.png 660w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>So we have used \u201cfetch.executeOffline()\u201d function instead of \u201cfetch.execute()\u201d which has fixed this issue. And the \u201cfetch.executeOffline()\u201d works on both \u201cOnline and Offline Mode\u201d for executing the fetch.<\/p>\n<p>Code Snippet:<\/p>\n<p>\/\/Executing fetch<\/p>\n<p>fetch.<strong>executeOffline<\/strong>(&#8220;DynamicEntities&#8221;, function (result) {<\/p>\n<p>if (typeof (result) != &#8220;undefined&#8221; &amp;&amp; result.length &gt; 0) {<\/p>\n<p>\/\/Setting &#8220;new_totalagreements&#8221; feild<\/p>\n<p>entityForm.entity.properties[&#8220;new_totalagreements&#8221;] = result.length.toString();<\/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>Please refer below screenshots,<\/p>\n<p><strong>Online Mode: <img decoding=\"async\" class=\"aligncenter size-full wp-image-15134\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/resco-1.png\" alt=\"\" width=\"1366\" height=\"729\" \/><\/strong><\/p>\n<p><strong>Offline Mode:<\/strong><\/p>\n<p><strong><img decoding=\"async\" class=\"aligncenter size-full wp-image-15135\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/resco-2.png\" alt=\"\" width=\"1366\" height=\"727\" \/><\/strong><\/p>\n<p><strong>\u00a0<\/strong><strong>Conclusion:<\/strong><\/p>\n<p>While executing fetch function in Java script in Resco Mobile App through JSBridge Reference file, we should use \u00a0\u201cfetch.executeOffline()\u201d instead of \u201cfetch.execute()\u201d to fetch data in both the Online Mode and Offline Mode of Resco mobile app.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: Recently, we had a business requirement where we needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/\">Read More: Working with Fetch functions of JSBridge Reference file in Online\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":15140,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,1],"tags":[533,1444],"class_list":["post-15132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-resco-mobile-crm","category-uncategorized","tag-dynamics-365","tag-resco-mobile"],"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 needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it\" \/>\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\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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=\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of 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 needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-03-20T11:39:22+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-06-28T05:54:08+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=\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of 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 needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it\" \/>\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\/2019\/03\/1JSBridge.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=\"1 minute\" \/>\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\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#blogposting\",\"name\":\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of 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\\\/2019\\\/03\\\/Copy-of-Blog-Feature-Images-150-_150-12-1.png\",\"width\":150,\"height\":150},\"datePublished\":\"2019-03-20T11:39:22+05:30\",\"dateModified\":\"2019-06-28T05:54:08+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#webpage\"},\"articleSection\":\"Resco Mobile CRM, Uncategorized, Dynamics 365, resco mobile\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/uncategorized\\\/#listItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/uncategorized\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#listItem\",\"name\":\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#listItem\",\"position\":3,\"name\":\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}}]},{\"@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\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/\",\"name\":\"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction: Recently, we had a business requirement where we needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \\u201cAccount Entity Form\\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\\\/2019\\\/03\\\/Copy-of-Blog-Feature-Images-150-_150-12-1.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#mainImage\",\"width\":150,\"height\":150},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2019\\\/03\\\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\\\/#mainImage\"},\"datePublished\":\"2019-03-20T11:39:22+05:30\",\"dateModified\":\"2019-06-28T05:54:08+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":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: Recently, we had a business requirement where we needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it","canonical_url":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#blogposting","name":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of 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\/2019\/03\/Copy-of-Blog-Feature-Images-150-_150-12-1.png","width":150,"height":150},"datePublished":"2019-03-20T11:39:22+05:30","dateModified":"2019-06-28T05:54:08+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#webpage"},"articleSection":"Resco Mobile CRM, Uncategorized, Dynamics 365, resco mobile"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\/uncategorized\/#listItem","name":"Uncategorized"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/uncategorized\/#listItem","position":2,"name":"Uncategorized","item":"https:\/\/www.inogic.com\/blog\/category\/uncategorized\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#listItem","name":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#listItem","position":3,"name":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/uncategorized\/#listItem","name":"Uncategorized"}}]},{"@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\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/","name":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction: Recently, we had a business requirement where we needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-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\/2019\/03\/Copy-of-Blog-Feature-Images-150-_150-12-1.png","@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#mainImage","width":150,"height":150},"primaryImageOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/#mainImage"},"datePublished":"2019-03-20T11:39:22+05:30","dateModified":"2019-06-28T05:54:08+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":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction: Recently, we had a business requirement where we needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it","og:url":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png","og:image:width":1366,"og:image:height":730,"article:published_time":"2019-03-20T11:39:22+00:00","article:modified_time":"2019-06-28T05:54:08+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction: Recently, we had a business requirement where we needed to display total number of active Agreement records associated to the Account entity of Dynamics 365 CRM on \u201cAccount Entity Form\u201d in Resco mobile app. So, we developed a script for populating total number of active Agreements related to the Account record and deployed it","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/03\/1JSBridge.png","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"15132","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":"","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 07:06:37","updated":"2025-07-04 05:53:52","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\/uncategorized\/\" title=\"Uncategorized\">Uncategorized<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWorking with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Uncategorized","link":"https:\/\/www.inogic.com\/blog\/category\/uncategorized\/"},{"label":"Working with Fetch functions of JSBridge Reference file in Online and Offline Mode of Resco Mobile App","link":"https:\/\/www.inogic.com\/blog\/2019\/03\/working-with-fetch-functions-of-jsbridge-reference-file-in-online-and-offline-mode-of-resco-mobile-app\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/15132","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=15132"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/15132\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/15140"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=15132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=15132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=15132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}