{"id":1954,"date":"2019-08-09T07:55:18","date_gmt":"2019-08-09T12:55:18","guid":{"rendered":"https:\/\/www.teamdesk.net\/blog\/?p=1954"},"modified":"2019-08-09T07:55:21","modified_gmt":"2019-08-09T12:55:21","slug":"copy-master-records-with-details-and-sub-details","status":"publish","type":"post","link":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/","title":{"rendered":"Copy Master records with Details and Sub-Details"},"content":{"rendered":"<p>It\u2019s a trivial situation when you need to copy a master record, including details and sub-details. For example, your database stores records of specific products, each product consists of many parts and every part includes many components. In this case you are dealing with 3 level cascade <a href=\"https:\/\/www.teamdesk.net\/help\/8.aspx\">relation<\/a>.<\/p>\n<p>This blog post describes the settings allowing to copy a master record together with details\u2019 and sub-details\u2019 records. The configuration includes the following steps:<\/p>\n<h3>1. \u201cCopy\u201d custom button.<\/h3>\n<p>First, you need to create a \u201cCopy\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/11.1.aspx\">custom button<\/a> in the Master table.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-button-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1959\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-button-1.png\" alt=\"Copy Master button\" width=\"923\" height=\"784\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-button-1.png 923w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-button-1-300x255.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-button-1-768x652.png 768w\" sizes=\"auto, (max-width: 923px) 100vw, 923px\" \/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>After that you should add the first \u201cCopy Master\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/11.4.aspx\">workflow action<\/a> to this button.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Action-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1960\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Action-2.png\" alt=\"Copy Master Action\" width=\"922\" height=\"524\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Action-2.png 922w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Action-2-300x170.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Action-2-768x436.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/a><\/p>\n<h3>2. RecordSet columns.<\/h3>\n<p>On the next step you create a \u201cDetails RecordSet\u201d column within the Master-Details relation. Also, you need to add a \u201cSubdetails RecordSet\u201d column. To create it, you should use an additional Many-to-Many relation between the \u201cMaster\u201d table and the \u201cSub-details\u201d table with the following match condition: Id=Master Key.<\/p>\n<p>As the result, two columns of <a href=\"https:\/\/www.teamdesk.net\/help\/4.17.aspx\">RecordSet<\/a> type are created in the \u201cMaster\u201d table.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/RecordSet-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1961\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/RecordSet-3.png\" alt=\"RecordSet columns\" width=\"979\" height=\"731\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/RecordSet-3.png 979w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/RecordSet-3-300x224.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/RecordSet-3-768x573.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n<h3>3. Auxiliary Text column.<\/h3>\n<p>In this part of setup, we will utilize auxiliary columns. One of such auxiliary columns is the \u201cOriginal Detail\u201d <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.2.aspx\">text column<\/a> created in the \u201cDetails\u201d table.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Original-Detail-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1962\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Original-Detail-4.png\" alt=\"Original Detail column\" width=\"977\" height=\"747\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Original-Detail-4.png 977w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Original-Detail-4-300x229.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Original-Detail-4-768x587.png 768w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/a><\/p>\n<p>The \u201cOriginal Detail\u201d column stores the key of the original detail while details are copied. Furthermore, while \u2018subdetails\u2019 are copied, this value is used to pull a key of a parent detail copy. These settings\u2019 details are described below.<\/p>\n<h3>4. Auxiliary Summary Index column.<\/h3>\n<p>As we\u2019ve mentioned, we also need some auxiliary columns as part of the configuration. The second auxiliary column is the \u201cNew Detail Key\u201d column of the <a href=\"https:\/\/www.teamdesk.net\/help\/4.5.aspx\">summary<\/a> type with the<a href=\"https:\/\/www.teamdesk.net\/help\/4.6.20.aspx\"> Index<\/a> function. This column is added to the Many-to-Many relation between the \u201cSub-details\u201d table and the \u201cDetails\u201d table. Please note that the relation has a <a href=\"https:\/\/www.teamdesk.net\/help\/8.4.aspx\">match condition<\/a>:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Many-to-Many-Relation-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1963\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Many-to-Many-Relation-5.png\" alt=\"Many to Many relation\" width=\"975\" height=\"785\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Many-to-Many-Relation-5.png 975w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Many-to-Many-Relation-5-300x242.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Many-to-Many-Relation-5-768x618.png 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/a><\/p>\n<p>The summary column <a href=\"https:\/\/www.teamdesk.net\/help\/4.6.20.aspx\">settings<\/a> are displayed on the following screenshot:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/New-Detail-Key-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1964\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/New-Detail-Key-6.png\" alt=\"Summary Column Settings\" width=\"969\" height=\"681\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/New-Detail-Key-6.png 969w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/New-Detail-Key-6-300x211.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/New-Detail-Key-6-768x540.png 768w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/a><\/p>\n<p>This summary column allows to pull an Id value of the last generated Detail and display this value in the original Sub-detail records. After that the system creates new copies of related sub-details and inserts the last generated Detail Id value into the \u201cDetail\u201d reference column kept in the \u201cSub-details\u201d table. It can be done with the help of the \u201cCopy Subdetails\u201d workflow action with assignments described in the paragraph #6.<\/p>\n<h3>5. \u201cCopy Details\u201d workflow action.<\/h3>\n<p>Now we may proceed with the \u201cCopy\u201d custom button described in the paragraph #1. To copy Detail records an additional workflow action should be created and added to the \u201cCopy\u201d button.<\/p>\n<p>The settings of the \u201cCopy Details\u201d action are shown on this screenshot:<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Details-action-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1965\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Details-action-7.png\" alt=\"Copy Details action\" width=\"884\" height=\"776\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Details-action-7.png 884w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Details-action-7-300x263.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Details-action-7-768x674.png 768w\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" \/><\/a><\/p>\n<p>In the first assignment you may see the <a href=\"https:\/\/www.teamdesk.net\/help\/4.17.aspx\">ParentKey()<\/a> function, which locates a key of the last created Master record. Also, don\u2019t forget to add an assignment where the \u201cOriginal Detail\u201d text column is filled in.<\/p>\n<h3>6. \u201cCopy Subdetails\u201d workflow action.<\/h3>\n<p>The last <a href=\"https:\/\/www.teamdesk.net\/help\/11.4.aspx\">workflow action<\/a> that you need to add to the \u201cCopy\u201d custom button is the \u201cCopy Subdetails\u201d action.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Subdetails-action-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1966\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Subdetails-action-8.png\" alt=\"Copy Subdetails action\" width=\"906\" height=\"730\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Subdetails-action-8.png 906w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Subdetails-action-8-300x242.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Subdetails-action-8-768x619.png 768w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/a><\/p>\n<p>Please note that this action includes an assignment, where the \u201cNew Detail Key\u201d column value is assigned to the \u201cDetail\u201d reference column.<\/p>\n<p>As the result, we created a \u201cCopy\u201d custom button containing three actions.<\/p>\n<p><a href=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Button-with-3-actions-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1967\" src=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Button-with-3-actions-9.png\" alt=\"Button with 3 actions\" width=\"905\" height=\"722\" srcset=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Button-with-3-actions-9.png 905w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Button-with-3-actions-9-300x239.png 300w, https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Button-with-3-actions-9-768x613.png 768w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/a><\/p>\n<p>Please explore <a href=\"https:\/\/www.teamdesk.net\/copy_master_detail_subdetail\">Copy Record with Details and Sub-Details<\/a> pre-configured sample database to review the described mechanism in action.<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s a trivial situation when you need to copy a master record, including details and sub-details. For example, your database stores records of specific products, each product consists of many parts and every part includes many components. In this case you are dealing with 3 level cascade relation. This blog post describes the settings allowing [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[169,156,127,150],"class_list":["post-1954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-tricks","tag-copy-master","tag-copy-master-details","tag-online-database","tag-record-copy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Copy Master records with Details and Sub-Details - TeamDesk Blog<\/title>\n<meta name=\"description\" content=\"If you need to copy Master records with Details and Sub-Details you are dealing with 3 level cascade relation. This blog posts describes the adjustment.\" \/>\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\/copy-master-records-with-details-and-sub-details\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Copy Master records with Details and Sub-Details - TeamDesk Blog\" \/>\n<meta property=\"og:description\" content=\"If you need to copy Master records with Details and Sub-Details you are dealing with 3 level cascade relation. This blog posts describes the adjustment.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/\" \/>\n<meta property=\"og:site_name\" content=\"TeamDesk Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-09T12:55:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-09T12:55:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Details.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3200\" \/>\n\t<meta property=\"og:image:height\" content=\"1800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mila\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mila\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 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\\\/copy-master-records-with-details-and-sub-details\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/\"},\"author\":{\"name\":\"Mila\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/63bd8646f2f4720f503116e38a190a6e\"},\"headline\":\"Copy Master records with Details and Sub-Details\",\"datePublished\":\"2019-08-09T12:55:18+00:00\",\"dateModified\":\"2019-08-09T12:55:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/\"},\"wordCount\":542,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/Copy-Master-Details.png\",\"keywords\":[\"copy master\",\"copy master details\",\"online database\",\"record copy\"],\"articleSection\":[\"Tips &amp; Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/\",\"name\":\"Copy Master records with Details and Sub-Details - TeamDesk Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/Copy-Master-Details.png\",\"datePublished\":\"2019-08-09T12:55:18+00:00\",\"dateModified\":\"2019-08-09T12:55:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/#\\\/schema\\\/person\\\/63bd8646f2f4720f503116e38a190a6e\"},\"description\":\"If you need to copy Master records with Details and Sub-Details you are dealing with 3 level cascade relation. This blog posts describes the adjustment.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/Copy-Master-Details.png\",\"contentUrl\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/Copy-Master-Details.png\",\"width\":3200,\"height\":1800,\"caption\":\"Copy Master with Details\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/tips-tricks\\\/copy-master-records-with-details-and-sub-details\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Copy Master records with Details and Sub-Details\"}]},{\"@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\\\/63bd8646f2f4720f503116e38a190a6e\",\"name\":\"Mila\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g\",\"caption\":\"Mila\"},\"url\":\"https:\\\/\\\/www.teamdesk.net\\\/blog\\\/author\\\/mila\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Copy Master records with Details and Sub-Details - TeamDesk Blog","description":"If you need to copy Master records with Details and Sub-Details you are dealing with 3 level cascade relation. This blog posts describes the adjustment.","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\/copy-master-records-with-details-and-sub-details\/","og_locale":"en_US","og_type":"article","og_title":"Copy Master records with Details and Sub-Details - TeamDesk Blog","og_description":"If you need to copy Master records with Details and Sub-Details you are dealing with 3 level cascade relation. This blog posts describes the adjustment.","og_url":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/","og_site_name":"TeamDesk Blog","article_published_time":"2019-08-09T12:55:18+00:00","article_modified_time":"2019-08-09T12:55:21+00:00","og_image":[{"width":3200,"height":1800,"url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Details.png","type":"image\/png"}],"author":"Mila","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mila","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#article","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/"},"author":{"name":"Mila","@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/63bd8646f2f4720f503116e38a190a6e"},"headline":"Copy Master records with Details and Sub-Details","datePublished":"2019-08-09T12:55:18+00:00","dateModified":"2019-08-09T12:55:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/"},"wordCount":542,"commentCount":0,"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Details.png","keywords":["copy master","copy master details","online database","record copy"],"articleSection":["Tips &amp; Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/","url":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/","name":"Copy Master records with Details and Sub-Details - TeamDesk Blog","isPartOf":{"@id":"https:\/\/www.teamdesk.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#primaryimage"},"image":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#primaryimage"},"thumbnailUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Details.png","datePublished":"2019-08-09T12:55:18+00:00","dateModified":"2019-08-09T12:55:21+00:00","author":{"@id":"https:\/\/www.teamdesk.net\/blog\/#\/schema\/person\/63bd8646f2f4720f503116e38a190a6e"},"description":"If you need to copy Master records with Details and Sub-Details you are dealing with 3 level cascade relation. This blog posts describes the adjustment.","breadcrumb":{"@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#primaryimage","url":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Details.png","contentUrl":"https:\/\/www.teamdesk.net\/blog\/wp-content\/uploads\/2019\/08\/Copy-Master-Details.png","width":3200,"height":1800,"caption":"Copy Master with Details"},{"@type":"BreadcrumbList","@id":"https:\/\/www.teamdesk.net\/blog\/tips-tricks\/copy-master-records-with-details-and-sub-details\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.teamdesk.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Copy Master records with Details and Sub-Details"}]},{"@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\/63bd8646f2f4720f503116e38a190a6e","name":"Mila","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/939a25c18364af1ceffe1d698a8fd01e1a18d8e1cf906fe3a6ac1cad64bc653f?s=96&d=mm&r=g","caption":"Mila"},"url":"https:\/\/www.teamdesk.net\/blog\/author\/mila\/"}]}},"_links":{"self":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/1954","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/comments?post=1954"}],"version-history":[{"count":14,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/1954\/revisions"}],"predecessor-version":[{"id":1978,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/posts\/1954\/revisions\/1978"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media\/1955"}],"wp:attachment":[{"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/media?parent=1954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/categories?post=1954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.teamdesk.net\/blog\/wp-json\/wp\/v2\/tags?post=1954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}