# Turn a lead into client - Add Row action

**URL:** https://community.glideapps.com/t/turn-a-lead-into-client-add-row-action/75793
**Category:** Ask for Help
**Tags:** api, actions
**Created:** [August 22, 2024, 3:39pm UTC](https://community.glideapps.com/t/turn-a-lead-into-client-add-row-action/75793 "2024-08-22T15:39:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![albertoalfaro](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albertoalfaro/32/73100_2.png) [@albertoalfaro](https://community.glideapps.com/u/albertoalfaro)
#### Post date: [August 22, 2024, 3:39pm UTC](https://community.glideapps.com/t/turn-a-lead-into-client-add-row-action/75793/1 "2024-08-22T15:39:19Z")

</div>

Hi,

I am relatively new to Glide and am building a CRM. I think I need some guidance, if someone can help, please?

I want to create a workflow that is started by clicking on a button, to convert a Lead and its contacts into a Client. My data is stored in 4 different tables: Leads (for the company info), Leads Contacts, Clients, and Clients Contacts.

I have a couple of ideas that don’t know if are doable:

1. Use the “add a row” action to create the lead record in the client’s table, then create a JSON Object for the contacts and query it when setting up more “add row” actions for the contacts that would be assigned to the Client record using its Row ID - my problem is that each lead has a different number of contacts?

2. Create a trigger and send all the data to make, from which would be returned to glide and create all records using the API - this one might sound silly as all data is within my tables in Glide, but I could use that same webhook to send that data to the application that we use as order management system.

Can someone advise me on doing it the most efficiently/easiest way possible or other ideas on how to do it?

Thanks

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [August 22, 2024, 4:17pm UTC](https://community.glideapps.com/t/turn-a-lead-into-client-add-row-action/75793/2 "2024-08-22T16:17:15Z")

</div>

If it was me, I think I would collapse all of that into two tables. One for Leads/Clients, and another for Contacts.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [August 22, 2024, 11:40pm UTC](https://community.glideapps.com/t/turn-a-lead-into-client-add-row-action/75793/3 "2024-08-22T23:40:10Z")

</div>

If you do it like Darren suggested, I imagine it would be easy enough to have a button to change a data entry’s type from Lead to Client. Then contacts can stay as they were.
