{"id":2323,"date":"2024-03-24T23:09:04","date_gmt":"2024-03-24T23:09:04","guid":{"rendered":"https:\/\/contentsnare.com\/help\/knowledge-base\/export-multiple-requests\/"},"modified":"2024-09-23T23:21:06","modified_gmt":"2024-09-23T23:21:06","slug":"export-multiple-requests","status":"publish","type":"ht_kb","link":"https:\/\/help.contentsnare.com\/knowledge-base\/export-multiple-requests\/","title":{"rendered":"Export multiple requests to a spreadsheet with Zapier"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Content Snare doesn\u2019t currently have the ability to export multiple requests to a single spreadsheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is a workaround for this, using Zapier and Content Snare\u2019s webhooks\u00a0<a href=\"https:\/\/help.contentsnare.com\/knowledge-base\/webhooks\/\">functionality<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You will need a paid&nbsp;<a href=\"https:\/\/zapier.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Zapier<\/a>&nbsp;account to complete this tutorial.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this to work, every request that you\u2019re exporting needs to be&nbsp;<strong>exactly the same<\/strong>. A spreadsheet has fixed columns, so if there are different questions in each request, it won\u2019t work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-create-a-zap\">Step 1: Create a Zap<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Zapier, create a Zap by clicking the \u201cMake a Zap\u201d button in your account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the \u201cTrigger\u201d search for webhooks and click \u201c<strong>Webhooks by Zapier<\/strong>\u201c<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1.png\" alt=\"\" class=\"wp-image-2341\" srcset=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1.png 1024w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1-300x158.png 300w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1-768x404.png 768w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1-50x26.png 50w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1-60x32.png 60w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-1024x538-1-100x53.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the event&nbsp;<strong>Catch Raw Hook<\/strong>, then click continue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the next page, it will provide a URL like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"740\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1.png\" alt=\"\" class=\"wp-image-2572\" srcset=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1.png 1024w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1-300x217.png 300w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1-768x555.png 768w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1-50x36.png 50w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1-60x43.png 60w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-1-100x72.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the URL from here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-set-up-webhooks\">Step 2: Set up webhooks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Content Snare, go to Settings -&gt; Integrations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Turn on Webhooks, click \u201cAdd a new webhook\u201d and paste in the URL you copied in step 1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Tick the box that says \u201cRequest Completed\u201d and Save<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-2-4.png\" alt=\"\" class=\"wp-image-2152\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong>&nbsp;\u201c<strong>Request Completed<\/strong>\u201d happens when you click the \u201cComplete Request\u201d button inside Content Snare.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3-complete-a-request\">Step 3: Complete a request<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For testing, you\u2019ll need to go and complete a request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You could create a dummy one that you send to yourself, answer some of the questions, then mark it complete.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll first need to approve all the fields.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest way to do this is to view the request, and use the menu at the top right hand corner to do the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Submit All for Review<\/li>\n\n\n\n<li>Approve all submitted<\/li>\n\n\n\n<li>Complete request<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-5-3.png\" alt=\"\" class=\"wp-image-2153\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4-create-a-spreadsheet\">Step 4: Create a spreadsheet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create a Google Spreadsheet that has all of the columns you would like to fill out from the request.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-3-3.png\" alt=\"\" class=\"wp-image-2154\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-5-finish-the-zap\">Step 5: Finish the Zap<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Back at Zapier, click \u201cContinue\u201d on the webhook step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"740\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2.png\" alt=\"\" class=\"wp-image-2574\" srcset=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2.png 1024w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2-300x217.png 300w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2-768x555.png 768w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2-50x36.png 50w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2-60x43.png 60w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-4-1024x740-2-100x72.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then click \u201cTest Trigger\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should get this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"494\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1.png\" alt=\"\" class=\"wp-image-2575\" srcset=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1.png 1024w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1-300x145.png 300w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1-768x371.png 768w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1-50x24.png 50w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1-60x29.png 60w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-6-1024x494-1-100x48.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click Continue, at the bottom.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the Action, search for \u201cCode by Zapier\u201d. The event is \u201cRun Javascript\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"563\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1.png\" alt=\"\" class=\"wp-image-2576\" srcset=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1.png 1024w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1-300x165.png 300w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1-768x422.png 768w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1-50x27.png 50w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1-60x33.png 60w, https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/04\/image-7-1024x563-1-100x55.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Type the word \u201cdata\u201d into the first box on the left.<\/li>\n\n\n\n<li>Click in the box on the right and choose \u201cRaw Body\u201d<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-9-1024x553-1.png\" alt=\"\" class=\"wp-image-2158\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, delete everything in the Code box and replace it with this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const data = JSON.parse(inputData.data);\noutput = {};\n\/\/ Fill in fields\noutput&#91;'Request ID'] = data.id;\noutput&#91;'Request Name'] = data.name;\noutput&#91;'URL'] = data.url;\noutput&#91;'Due Date'] = data.due_date;\noutput&#91;'Folder'] = data.folder_name;\noutput&#91;'Share Link'] = data.share_link;\noutput&#91;'Template Name'] = data.request_template_name;\noutput&#91;'Owner'] = data.owner_name;\noutput&#91;'Client Name'] = data.client.full_name;\noutput&#91;'Company Name'] = data.client.company_name;\noutput&#91;'Email'] = data.client.email;\noutput&#91;'Phone'] = data.client.phone;\ndata.pages.forEach(page =&gt; {\n  page.sections.forEach(section =&gt; {\n    section.fields.forEach(({ name, values }) =&gt; {\n      output&#91;'Values ' + page.name + ' ' + section.name + ' ' + name] = values.join(', ');\n    })\n  })\n})\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Continue on, then click \u201cTest &amp; Continue\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now for the last step!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add another action at the bottom by clicking the + button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Search for Google Sheets and click it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Choose \u201cC<strong>reate Spreadsheet Row<\/strong>\u201d as the event.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Continue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect your Google account, or select it if you have done this before.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-10-1024x506-1.png\" alt=\"\" class=\"wp-image-2159\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the Spreadsheet and Worksheet that you just created.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It will then load all the columns you created, like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-11-1024x794-1.png\" alt=\"\" class=\"wp-image-2160\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For each column, click into the box, open \u201c2. Run Javascript\u201d box, and find the data that you want to put in the column.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-13-1024x469-1.png\" alt=\"\" class=\"wp-image-2161\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can also search for values like this (searching for \u201ccolor\u201d)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-12-1024x520-1.png\" alt=\"\" class=\"wp-image-2162\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When you\u2019re done, it should look something like this<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-14.png\" alt=\"\" class=\"wp-image-2163\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then you\u2019re ready to test!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-15.png\" alt=\"\" class=\"wp-image-2164\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then take a look at your spreadsheet. You should see the new row there<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/help.contentsnare.com\/wp-content\/uploads\/2024\/03\/image-16.png\" alt=\"\" class=\"wp-image-2165\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For the final step, jump back over to Zapier and turn your Zap on!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Content Snare doesn\u2019t currently have the ability to export multiple requests to a single spreadsheet. There is a workaround for this, using Zapier and Content Snare\u2019s webhooks\u00a0functionality. You will need a paid&nbsp;Zapier&nbsp;account to complete this tutorial. For this to work, every request that you\u2019re exporting needs to be&nbsp;exactly the same&#8230;.<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[1050],"ht-kb-tag":[],"class_list":["post-2323","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-zapier-examples"],"_links":{"self":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb\/2323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/comments?post=2323"}],"version-history":[{"count":7,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb\/2323\/revisions"}],"predecessor-version":[{"id":2712,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb\/2323\/revisions\/2712"}],"wp:attachment":[{"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/media?parent=2323"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb-category?post=2323"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.contentsnare.com\/wp-json\/wp\/v2\/ht-kb-tag?post=2323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}