# When a new User Account is created, assign multiple existing records to that account

**URL:** <https://forums.knack.com/t/when-a-new-user-account-is-created-assign-multiple-existing-records-to-that-account/8507>\
**Category:** Get Answers\
**Created:** [March 7, 2020, 4:26pm UTC](https://forums.knack.com/t/when-a-new-user-account-is-created-assign-multiple-existing-records-to-that-account/8507 "2020-03-07T16:26:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeandroRze21599](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/leandrorze21599/32/339_2.png) [@LeandroRze21599](https://forums.knack.com/u/LeandroRze21599)\
**Post date:** [March 7, 2020, 4:26pm UTC](https://forums.knack.com/t/when-a-new-user-account-is-created-assign-multiple-existing-records-to-that-account/8507/1 "2020-03-07T16:26:18Z")

</div>

An existing\_user can "invite" assign a task to a registered or to an unregistered user\_worker. Existing\_user will create the task record and reference user\_worker by entering an email address into task.email\_address.

When existing\_user adds the record, I trigger a Zapier workflow. If Zapier can find the worker\_user, then it updates the Task.Worker\_user\_ID connection to Accounts. If Zapier does not find the worker\_user in the existing Accounts, it will trigger an email to invite the new worker\_user to register in the Knack app.

When the user registers, we need to connect to his account all TASKS previously created that have task.email = account.email.

Zapier would let me find a task and update it; if there were only one tasks associated to an email address. Because multiple tasks can be associated to the same email, I can't find a way to update multiple records.

Any idea?
