{"id":2974,"date":"2024-06-04T03:53:30","date_gmt":"2024-06-04T08:53:30","guid":{"rendered":"https:\/\/www.teamdesk.net\/blog\/?p=2974"},"modified":"2024-06-04T03:59:37","modified_gmt":"2024-06-04T08:59:37","slug":"generate-all-possible-combinations","status":"publish","type":"post","link":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/","title":{"rendered":"Generate All Possible Combinations"},"content":{"rendered":"\n<p>Recently, we received the following request from a customer: they wanted to generate bookings for participants. Each participant could have bookings for several weeks. Instead of manually creating all the records, they simply wanted to select the participants and the weeks so that all the bookings for each combination would be generated automatically.<\/p>\n\n\n\n<p>Another example where this could be handy is generating the records for the clothes that are in stock. Let&#8217;s say you have blue and yellow jackets in sizes S, M, L. You want to generate the records for all the possible combinations.<\/p>\n\n\n\n<p>We will demonstrate the settings using the booking example.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"536\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-2.png\" alt=\"\" class=\"wp-image-3225\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-2.png 922w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-2-300x174.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-2-768x446.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/a><\/figure>\n\n\n\n<p>To begin with, you should have three tables: Bookings, Weeks, and Participants. You will have several records in Weeks (Week1, Week2, Week3 etc.) and in Participants (Participant1, Participant2, Participant3 etc.) tables. We will create a Booking record where we can select specific weeks and specific participants. The aim for the system is to generate the booking records for all possible combinations of the week and participant values we select.<\/p>\n\n\n\n<p>The system goes over all the selected weeks, and then in the second cycle, it processes all selected participants. As a result, the records for all possible combinations will be generated.<\/p>\n\n\n\n<p>First of all, create multi-reference columns for Weeks and Participants in the Bookings table. Here, you will select the values for generating the bookings for all the possible combinations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 1: processing weeks<\/h2>\n\n\n\n<p>To process the selected weeks we need to create a Recordset column and &#8220;Dummy&#8221; timestamp column that will be used for the workflow action later.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>We need to pick out the records (weeks) for which bookings will be generated. Create a recordset column &#8220;Week Booking Recordset&#8221; in the &#8220;Bookings&#8221; table under the &#8220;Week Bookings&#8221; relation.<\/li>\n\n\n\n<li>Create a &#8220;Dummy&#8221; timestamp column in the &#8220;Week Bookings&#8221; table.<\/li>\n\n\n\n<li>Now let`s assign a value to that &#8220;Dummy&#8221; column: in the &#8220;Booking&#8221; table create a workflow action &#8220;Loop All Week Booking&#8221;. This action aims to assign the Now() timestamp to all the records in the &#8220;Week Booking Recordset&#8221;.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1023\" height=\"546\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-7.png\" alt=\"\" class=\"wp-image-3230\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-7.png 1023w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-7-300x160.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-7-768x410.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Part 2: capturing the current week<\/h2>\n\n\n\n<p>We need to capture\/memorize the current week that the system is processing:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a &#8220;Dummy Current Week&#8221; column in the &#8220;Bookings&#8221; table.<\/li>\n\n\n\n<li>Create a workflow rule &#8220;Set Dummy Current Week&#8221; in the &#8220;Week Bookings&#8221; table that will identify the current week that the system is checking.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"543\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-9.png\" alt=\"\" class=\"wp-image-3233\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-9.png 1024w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-9-300x159.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-9-768x407.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Part 3: processing people<\/h2>\n\n\n\n<p>Now we need to go over the selected Participants.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a many-to-many relationship between &#8220;Week Bookings&#8221; and &#8220;Participant Bookings&#8221;.<\/li>\n\n\n\n<li>Under this relationship create a recordset column with the following settings:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"480\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-11.png\" alt=\"\" class=\"wp-image-3235\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-11.png 1017w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-11-300x142.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-11-768x362.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/a><\/figure>\n\n\n\n<p>The purpose of this recordset is to get the Participants that we have selected in our multi-reference column when creating a new booking record.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 4: generating records<\/h2>\n\n\n\n<p>The last step is creating a workflow action, that will actually generate those records with all the possible combinations of selected Weeks and Participants.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The action &#8220;Create Week Participant Records&#8221; must be configured in the &#8220;Week Booking&#8221; linking table:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"607\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-10.png\" alt=\"\" class=\"wp-image-3234\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-10.png 1019w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-10-300x179.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-10-768x457.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/a><\/figure>\n\n\n\n<p>2. In the &#8220;Week Participant Booking&#8221; linking table create a lookup column &#8220;Dummy Current Week&#8221; from the &#8220;Week&#8221; table. And then add this lookup as the Default\/Calculate to the &#8220;Week&#8221; reference column.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"394\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-12.png\" alt=\"\" class=\"wp-image-3236\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-12.png 1019w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-12-300x116.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-12-768x297.png 768w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/a><\/figure>\n\n\n\n<p>In the &#8220;Week Booking&#8221; linking table, create a record change trigger and assign the two workflow actions configured above. This trigger will update the current week that is being processed and generate the records with combinations:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"633\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/image-2.png\" alt=\"\" class=\"wp-image-3250\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/image-2.png 832w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/image-2-300x228.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/image-2-768x584.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/a><\/figure>\n\n\n\n<p>Once all the above settings are done it is up to you how to run it: you can create a custom button that the user will click or a trigger that will run automatically once the initial record is created.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional option<\/h2>\n\n\n\n<p>If you made a mistake when generating the records, you can make the settings to remove the wrongly generated records. <\/p>\n\n\n\n<p>To do that, create a recordset column &#8220;Generated Records&#8221; in the &#8220;Bookings&#8221; table. This must be done under the linking table &#8220;Week Participant Bookings&#8221;.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"983\" height=\"337\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-6.png\" alt=\"\" class=\"wp-image-3229\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-6.png 983w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-6-300x103.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-6-768x263.png 768w\" sizes=\"auto, (max-width: 983px) 100vw, 983px\" \/><\/a><\/figure>\n\n\n\n<p>This recordset column will pick up the records, previously generated by the workflow action. And you can delete those using a delete record workflow action applied to this recordset. This way you can delete the earlier generated records if you need to make changes in your selection and regenerate the records for the same booking.<\/p>\n\n\n\n<p>As a result: you can create a record in the &#8220;Bookings&#8221; table and select Week1, Week2, Participant1, Participant2. Run the settings (by trigger or custom button) and the system will generate the records for all the possible combinations of the selected values.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"377\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-3.png\" alt=\"\" class=\"wp-image-3226\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-3.png 937w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-3-300x121.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/05\/image-3-768x309.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/a><\/figure>\n\n\n\n<p>This might be a bit extravagant, but we hope you can make use of it. Check out the settings in this <a href=\"https:\/\/www.teamdesk.net\/all_combinations_values\">template<\/a>, available for free trial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let`s say you have two parameters like size and color and you need to generate all the possible combinations of two sizes and two colors. How can that be automated?<\/p>\n","protected":false},"author":11,"featured_media":3248,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[318,127,36],"class_list":["post-2974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-tricks","tag-generate-records","tag-online-database","tag-teamdesk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Generate All Possible Combinations - TeamDesk Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate All Possible Combinations - TeamDesk Blog\" \/>\n<meta property=\"og:description\" content=\"Let`s say you have two parameters like size and color and you need to generate all the possible combinations of two sizes and two colors. How can that be automated?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/\" \/>\n<meta property=\"og:site_name\" content=\"TeamDesk Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-04T08:53:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-04T08:59:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/Screenshot_2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"584\" \/>\n\t<meta property=\"og:image:height\" content=\"374\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kateryna Dmytrenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kateryna Dmytrenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/\"},\"author\":{\"name\":\"Kateryna Dmytrenko\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/a285defcf13a83e100cc66ebfdada2e9\"},\"headline\":\"Generate All Possible Combinations\",\"datePublished\":\"2024-06-04T08:53:30+00:00\",\"dateModified\":\"2024-06-04T08:59:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/\"},\"wordCount\":772,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_2.png\",\"keywords\":[\"generate records\",\"online database\",\"TeamDesk\"],\"articleSection\":[\"Tips &amp; Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/\",\"name\":\"Generate All Possible Combinations - TeamDesk Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_2.png\",\"datePublished\":\"2024-06-04T08:53:30+00:00\",\"dateModified\":\"2024-06-04T08:59:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/a285defcf13a83e100cc66ebfdada2e9\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_2.png\",\"contentUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/Screenshot_2.png\",\"width\":584,\"height\":374},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/generate-all-possible-combinations\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate All Possible Combinations\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\",\"name\":\"TeamDesk Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/a285defcf13a83e100cc66ebfdada2e9\",\"name\":\"Kateryna Dmytrenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/43d699ece76026402ebdbc9196f3f24de5dc93ffa6597e96b3d91bf256044877?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/43d699ece76026402ebdbc9196f3f24de5dc93ffa6597e96b3d91bf256044877?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/43d699ece76026402ebdbc9196f3f24de5dc93ffa6597e96b3d91bf256044877?s=96&d=mm&r=g\",\"caption\":\"Kateryna Dmytrenko\"},\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/author\\\/kateryna\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate All Possible Combinations - TeamDesk Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/","og_locale":"en_US","og_type":"article","og_title":"Generate All Possible Combinations - TeamDesk Blog","og_description":"Let`s say you have two parameters like size and color and you need to generate all the possible combinations of two sizes and two colors. How can that be automated?","og_url":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/","og_site_name":"TeamDesk Blog","article_published_time":"2024-06-04T08:53:30+00:00","article_modified_time":"2024-06-04T08:59:37+00:00","og_image":[{"width":584,"height":374,"url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/Screenshot_2.png","type":"image\/png"}],"author":"Kateryna Dmytrenko","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kateryna Dmytrenko","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#article","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/"},"author":{"name":"Kateryna Dmytrenko","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/a285defcf13a83e100cc66ebfdada2e9"},"headline":"Generate All Possible Combinations","datePublished":"2024-06-04T08:53:30+00:00","dateModified":"2024-06-04T08:59:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/"},"wordCount":772,"commentCount":0,"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/Screenshot_2.png","keywords":["generate records","online database","TeamDesk"],"articleSection":["Tips &amp; Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/","url":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/","name":"Generate All Possible Combinations - TeamDesk Blog","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#primaryimage"},"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/Screenshot_2.png","datePublished":"2024-06-04T08:53:30+00:00","dateModified":"2024-06-04T08:59:37+00:00","author":{"@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/a285defcf13a83e100cc66ebfdada2e9"},"breadcrumb":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#primaryimage","url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/Screenshot_2.png","contentUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2024\/06\/Screenshot_2.png","width":584,"height":374},{"@type":"BreadcrumbList","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/generate-all-possible-combinations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.teamdesk.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Generate All Possible Combinations"}]},{"@type":"WebSite","@id":"https:\/\/www.teamdesk.net\/blog\/#website","url":"https:\/\/www.teamdesk.net\/blog\/","name":"TeamDesk Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.teamdesk.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/a285defcf13a83e100cc66ebfdada2e9","name":"Kateryna Dmytrenko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/43d699ece76026402ebdbc9196f3f24de5dc93ffa6597e96b3d91bf256044877?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/43d699ece76026402ebdbc9196f3f24de5dc93ffa6597e96b3d91bf256044877?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/43d699ece76026402ebdbc9196f3f24de5dc93ffa6597e96b3d91bf256044877?s=96&d=mm&r=g","caption":"Kateryna Dmytrenko"},"url":"https:\/\/www.teamdesk.net\/blog\/author\/kateryna\/"}]}},"_links":{"self":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/2974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/comments?post=2974"}],"version-history":[{"count":12,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/2974\/revisions"}],"predecessor-version":[{"id":3251,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/2974\/revisions\/3251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media\/3248"}],"wp:attachment":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media?parent=2974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/categories?post=2974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/tags?post=2974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}