<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Removing the patches of a bookmark through Enigma API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/2042714#M18184</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/37627"&gt;@_jespers_&lt;/a&gt;&amp;nbsp;I don't think we ever did but there was a bug in Qlik's code for the layouts where it was fetching the layout for each bookmark when you grabbed the bookmark list. They worked with us and fixed it in a release but I am not sure which one.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 17:46:48 GMT</pubDate>
    <dc:creator>danelooman</dc:creator>
    <dc:date>2023-02-27T17:46:48Z</dc:date>
    <item>
      <title>Removing the patches of a bookmark through Enigma API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/1910784#M16526</link>
      <description>&lt;P&gt;Our largest app is reaching a boiling point with bookmarks. Enough people have made bookmarks with layouts that it is taking forever (7mins+) for the bookmark list to load in our app and the sheets won't load anything until it loads. We have realized this is due to a percentage of bookmarks having layouts saved. We are working with Qlik RND on solving the overall problem but for now I need to remove the layouts of any bookmarks that have them. I have already tried setting the "isExtended" property to false on all of them but that does not work. It looks like I need to set the qPatches in the layout either to an empty array or remove it all together. I think I need to do this through the ApplyPatches method but am having problems with it. Below is my current code which is returning an invalid parameters response.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;const app = await qlik.openApp("dd33cb85-f9ee-4774-b145-415eea6a24e2", config)
const applayout = await app.getAppLayout()
const doc = applayout.engineApp
const bm = await doc.getBookmark({
	"qId": "9ccc7b68-024c-4c70-b886-be2e648ccaed"
});
let patches = await bm.applyPatches({
	"qPatches": [
		{
			"qOp": "remove",
			"qPath": "/qBookmarkDef/qPatches",		  
     			"qValue": "[]"
		}
	 ]
})&lt;/LI-CODE&gt;
&lt;P&gt;This is the documentation I am referencing&amp;nbsp;&lt;A href="https://qlik.dev/apis/json-rpc/qix/genericbookmark#%23%2Fentries%2FGenericBookmark%2Fentries%2FApplyPatches" target="_blank"&gt;https://qlik.dev/apis/json-rpc/qix/genericbookmark#%23%2Fentries%2FGenericBookmark%2Fentries%2FApplyPatches&lt;/A&gt;.&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6966"&gt;@ErikWetterberg&lt;/a&gt;&amp;nbsp; I tried following one of your blog posts but couldn't get it to work.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 17:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/1910784#M16526</guid>
      <dc:creator>danelooman</dc:creator>
      <dc:date>2022-03-28T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the patches of a bookmark through Enigma API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/2042639#M18182</link>
      <description>&lt;P&gt;Did you find any solution for this? I'm having the exact same problem and need to clear all the patches for the existing bookmarks.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/2042639#M18182</guid>
      <dc:creator>_jespers_</dc:creator>
      <dc:date>2023-02-27T14:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the patches of a bookmark through Enigma API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/2042714#M18184</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/37627"&gt;@_jespers_&lt;/a&gt;&amp;nbsp;I don't think we ever did but there was a bug in Qlik's code for the layouts where it was fetching the layout for each bookmark when you grabbed the bookmark list. They worked with us and fixed it in a release but I am not sure which one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 17:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Removing-the-patches-of-a-bookmark-through-Enigma-API/m-p/2042714#M18184</guid>
      <dc:creator>danelooman</dc:creator>
      <dc:date>2023-02-27T17:46:48Z</dc:date>
    </item>
  </channel>
</rss>

