How to automatically add child rows

I would like to add 4 child rows after each approved row. I understand the indenting would be manual.

Workflow:

User submits the project form and form information resides on sheet A

Approver gets the notification and approves the project

The project row gets automatically copied to Sheet B

Add 4 child rows to the newly copied row on sheet B for every approved project

Tags:

Best Answer

  • Mike TV
    Mike TV ✭✭✭✭✭✭
    Answer ✓

    @Harry C

    Hi!<\/p>

    I'm trying to modify a form with a simple grid sheet so that the input of new information via the submission of the form will cause another sheet to automatically generate a blank parent row with (1) the information from the original form and (2) attached child rows.<\/p>

    In other words, the ideal final process would be:<\/p>

    1. Someone fills out Form A<\/li>
    2. A new row is created in Data Sheet A, which is attached to the form, with the data from Form A<\/li>
    3. A new parent row with its subsequent children rows is created in Data Sheet B, a separate sheet. Ideally, this parent row would be populated with the information from the new row created in Data Sheet A.<\/li><\/ol>

      The purpose this would serve is that the original Form A and Data Sheet A are meant to be new hire intake forms, and Data Sheet B would be a compilation of hiring checklists for new hires, where each parent row and its children is an independent checklist. In summary, I want to make it so that each time the intake form is filled out, a new hiring checklist is created in Data Sheet B, where the parent row of the checklist is filled with information from the original form.<\/p>

      Please let me know if there is a solution to this issue, or if there are any other methods I could use to create a similar process.<\/p>","bodyRaw":"[{\"insert\":\"Hi!\\nI'm trying to modify a form with a simple grid sheet so that the input of new information via the submission of the form will cause another sheet to automatically generate a blank parent row with (1) the information from the original form and (2) attached child rows.\\nIn other words, the ideal final process would be:\\nSomeone fills out Form A\"},{\"attributes\":{\"list\":{\"depth\":0,\"type\":\"ordered\"}},\"insert\":\"\\n\"},{\"insert\":\"A new row is created in Data Sheet A, which is attached to the form, with the data from Form A\"},{\"attributes\":{\"list\":{\"depth\":0,\"type\":\"ordered\"}},\"insert\":\"\\n\"},{\"insert\":\"A new parent row with its subsequent children rows is created in Data Sheet B, a separate sheet. Ideally, this parent row would be populated with the information from the new row created in Data Sheet A.\"},{\"attributes\":{\"list\":{\"depth\":0,\"type\":\"ordered\"}},\"insert\":\"\\n\"},{\"insert\":\"The purpose this would serve is that the original Form A and Data Sheet A are meant to be new hire intake forms, and Data Sheet B would be a compilation of hiring checklists for new hires, where each parent row and its children is an independent checklist. In summary, I want to make it so that each time the intake form is filled out, a new hiring checklist is created in Data Sheet B, where the parent row of the checklist is filled with information from the original form.\\nPlease let me know if there is a solution to this issue, or if there are any other methods I could use to create a similar process.\\n\"}]","format":"rich","dateInserted":"2022-03-31T01:23:15+00:00","insertUser":{"userID":146511,"name":"toribear","url":"https:\/\/community.smartsheet.com\/profile\/toribear","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!Z-Ff2WaFHno!!VkAw3YhVPqL","dateLastActive":"2023-03-30T21:38:36+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"displayOptions":{"showUserLabel":false,"showCompactUserInfo":true,"showDiscussionLink":true,"showPostLink":true,"showCategoryLink":false,"renderFullContent":false,"expandByDefault":false},"url":"https:\/\/community.smartsheet.com\/discussion\/89594\/automatically-generate-parent-row-with-child-rows-via-form","embedType":"quote","name":"Automatically generate parent row with child rows via form?"}"> https://community.smartsheet.com/discussion/89594/automatically-generate-parent-row-with-child-rows-via-form

    Per@Genevieve P., "There currently isn't a way in Smartsheet to auto-generate Hierarchy (parent/child relationships) or to auto-generate a set list of rows after an initial row submission."


Answers

  • Mike TV
    Mike TV ✭✭✭✭✭✭
    Answer ✓

    @Harry C

    Hi!<\/p>

    I'm trying to modify a form with a simple grid sheet so that the input of new information via the submission of the form will cause another sheet to automatically generate a blank parent row with (1) the information from the original form and (2) attached child rows.<\/p>

    In other words, the ideal final process would be:<\/p>

    1. Someone fills out Form A<\/li>
    2. A new row is created in Data Sheet A, which is attached to the form, with the data from Form A<\/li>
    3. A new parent row with its subsequent children rows is created in Data Sheet B, a separate sheet. Ideally, this parent row would be populated with the information from the new row created in Data Sheet A.<\/li><\/ol>

      The purpose this would serve is that the original Form A and Data Sheet A are meant to be new hire intake forms, and Data Sheet B would be a compilation of hiring checklists for new hires, where each parent row and its children is an independent checklist. In summary, I want to make it so that each time the intake form is filled out, a new hiring checklist is created in Data Sheet B, where the parent row of the checklist is filled with information from the original form.<\/p>

      Please let me know if there is a solution to this issue, or if there are any other methods I could use to create a similar process.<\/p>","bodyRaw":"[{\"insert\":\"Hi!\\nI'm trying to modify a form with a simple grid sheet so that the input of new information via the submission of the form will cause another sheet to automatically generate a blank parent row with (1) the information from the original form and (2) attached child rows.\\nIn other words, the ideal final process would be:\\nSomeone fills out Form A\"},{\"attributes\":{\"list\":{\"depth\":0,\"type\":\"ordered\"}},\"insert\":\"\\n\"},{\"insert\":\"A new row is created in Data Sheet A, which is attached to the form, with the data from Form A\"},{\"attributes\":{\"list\":{\"depth\":0,\"type\":\"ordered\"}},\"insert\":\"\\n\"},{\"insert\":\"A new parent row with its subsequent children rows is created in Data Sheet B, a separate sheet. Ideally, this parent row would be populated with the information from the new row created in Data Sheet A.\"},{\"attributes\":{\"list\":{\"depth\":0,\"type\":\"ordered\"}},\"insert\":\"\\n\"},{\"insert\":\"The purpose this would serve is that the original Form A and Data Sheet A are meant to be new hire intake forms, and Data Sheet B would be a compilation of hiring checklists for new hires, where each parent row and its children is an independent checklist. In summary, I want to make it so that each time the intake form is filled out, a new hiring checklist is created in Data Sheet B, where the parent row of the checklist is filled with information from the original form.\\nPlease let me know if there is a solution to this issue, or if there are any other methods I could use to create a similar process.\\n\"}]","format":"rich","dateInserted":"2022-03-31T01:23:15+00:00","insertUser":{"userID":146511,"name":"toribear","url":"https:\/\/community.smartsheet.com\/profile\/toribear","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!Z-Ff2WaFHno!!VkAw3YhVPqL","dateLastActive":"2023-03-30T21:38:36+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"displayOptions":{"showUserLabel":false,"showCompactUserInfo":true,"showDiscussionLink":true,"showPostLink":true,"showCategoryLink":false,"renderFullContent":false,"expandByDefault":false},"url":"https:\/\/community.smartsheet.com\/discussion\/89594\/automatically-generate-parent-row-with-child-rows-via-form","embedType":"quote","name":"Automatically generate parent row with child rows via form?"}"> https://community.smartsheet.com/discussion/89594/automatically-generate-parent-row-with-child-rows-via-form

    Per@Genevieve P., "There currently isn't a way in Smartsheet to auto-generate Hierarchy (parent/child relationships) or to auto-generate a set list of rows after an initial row submission."


  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi@Harry C

    I hope you're well and safe!

    I recently developed something similar for a client where the submitter selected a date range for a project for a consultant who needs to report hours. Then, the number of required rows is created automatically with consultant-specific information on all rows.

    It's a very advanced solution, but it is possible.

    I hope that helps!

    Be safe, and have a fantastic week!

    Best,

    Andrée Starå| Workflow Consultant / CEO @WORK BOLD

    了我的帖子(s)帮助或回答你的问题吗tion or solve your problem? Please support the Community bymarking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå| Workflow Consultant / CEO @WORK BOLD

    W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Thank you Mike and Adree

  • I'm not sure if this is an applicable workaround for you, but to get around this issue for myself I've added an additional report on top of the sheet that is getting rows copied to it and then saved groupings in the report so that the default view is a hierarchical one.

    Not technically saving the copied rows as child rows BUT still allows users to view the data in that way.

\n \n https:\/\/community.smartsheet.com\/discussion\/108880\/recover-a-row-that-was-accidentally-moved-then-deleted\n <\/a>\n<\/div>\n

Hey @GlennJo<\/a>,<\/p>

the sheet should be available in the owner of the sheet, deleted files. If it is specifically a row of data that was deleted, you can try checking the activity log to see if it shows the removed data there.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":108822,"type":"question","name":"Activity Log | Rows Deleted Filter","excerpt":"I've got a conundrum on my hands where a record has gone missing. In the Activity Log, I'm able to find the record of when it was created. However, there is nothing I'm seeing indicating that it was deleted (even though the Activity Log doesn't have a specific filter for this, I traced through the log for the past 11 days…","snippet":"I've got a conundrum on my hands where a record has gone missing. In the Activity Log, I'm able to find the record of when it was created. However, there is nothing I'm seeing…","categoryID":321,"dateInserted":"2023-08-10T21:46:08+00:00","dateUpdated":null,"dateLastComment":"2023-08-10T22:01:16+00:00","insertUserID":121055,"insertUser":{"userID":121055,"name":"Jake Gustafson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Jake%20Gustafson","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!-lnW91tuGTw!bO9UmyNQSXQ!WUYBUm0HF6t","dateLastActive":"2023-08-11T20:29:49+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":null,"lastUserID":121055,"lastUser":{"userID":121055,"name":"Jake Gustafson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Jake%20Gustafson","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!-lnW91tuGTw!bO9UmyNQSXQ!WUYBUm0HF6t","dateLastActive":"2023-08-11T20:29:49+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":37,"score":null,"hot":3383410044,"url":"https:\/\/community.smartsheet.com\/discussion\/108822\/activity-log-rows-deleted-filter","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108822\/activity-log-rows-deleted-filter","format":"Rich","tagIDs":[447],"lastPost":{"discussionID":108822,"commentID":390131,"name":"Re: Activity Log | Rows Deleted Filter","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390131#Comment_390131","dateInserted":"2023-08-10T22:01:16+00:00","insertUserID":121055,"insertUser":{"userID":121055,"name":"Jake Gustafson","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Jake%20Gustafson","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!-lnW91tuGTw!bO9UmyNQSXQ!WUYBUm0HF6t","dateLastActive":"2023-08-11T20:29:49+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/SIFFD1TSN3Q6\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-10T22:01:20+00:00","dateAnswered":"2023-08-10T22:01:16+00:00","acceptedAnswers":[{"commentID":390131,"body":"

Ok, I found it. Classic case of submit something for help, then find the answer. I think what may have happened previously, is that I turned on all the filters, but since there isn't one for a Deleted Row, maybe the Deleted Row was hidden. When I came back, I didn't click anything on the filters for the Activity Log and when scrolling through looking for the 'magic' delete word, I found the record I was looking for.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":447,"urlcode":"activity-log","name":"Activity Log"}]},{"discussionID":108801,"type":"question","name":"Adding users to our account if they are already licensed on another account","excerpt":"Hiya, Couldn't find an answer to my exact question, so hoping someone can help. I am working with an external client to my company, and need to add them to our account on paid licenses. 1) Can I add them to our account if they have a different email address to our company? 2) If they already have an existing licensed…","snippet":"Hiya, Couldn't find an answer to my exact question, so hoping someone can help. I am working with an external client to my company, and need to add them to our account on paid…","categoryID":321,"dateInserted":"2023-08-10T16:26:57+00:00","dateUpdated":null,"dateLastComment":"2023-08-10T17:22:07+00:00","insertUserID":128877,"insertUser":{"userID":128877,"name":"Holly Benjamin","url":"https:\/\/community.smartsheet.com\/profile\/Holly%20Benjamin","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-10T17:23:19+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-08-11T20:31:01+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":29,"score":null,"hot":3383373544,"url":"https:\/\/community.smartsheet.com\/discussion\/108801\/adding-users-to-our-account-if-they-are-already-licensed-on-another-account","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108801\/adding-users-to-our-account-if-they-are-already-licensed-on-another-account","format":"Rich","tagIDs":[543],"lastPost":{"discussionID":108801,"commentID":390085,"name":"Re: Adding users to our account if they are already licensed on another account","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/390085#Comment_390085","dateInserted":"2023-08-10T17:22:07+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-08-11T20:31:01+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-10T17:23:30+00:00","dateAnswered":"2023-08-10T17:22:07+00:00","acceptedAnswers":[{"commentID":390085,"body":"

They can be added if they use a different domain.<\/p>


<\/p>

If they are licensed on another account, they would need to either be first removed from that account (can cause some logistical headaches) or added as an unlicensed user on your account.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":543,"urlcode":"licensed-users","name":"licensed users"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=321&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":4940,"limit":3},"title":"Trending in Smartsheet Basics","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Smartsheet Basics