Flagsmith / flagsmith

Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
https://flagsmith.com/
BSD 3-Clause "New" or "Revised" License
4.79k stars 364 forks source link

Add newly created accounts on SaaS into Pipedrive #1438

Closed dabeeeenster closed 1 year ago

dabeeeenster commented 2 years ago

Add Name and email as a new Lead in pipedrive. Similar to https://github.com/Flagsmith/flagsmith-website/blob/main/api/contact-us.js

malthauser commented 2 years ago

Whoever takes this on, please sync with me before you do this. I just want to make sure we get this done correctly. Thanks!!

matthewelwell commented 1 year ago

@malthauser I think the key thing we'd need to know here is when do we count a user as a new lead? Do we only want to count users that sign up and create an organisation or do we want to include users that, for example, sign up to an organisation via an invite?

dabeeeenster commented 1 year ago

to add to this - Pipedrive has an entity that maps well to our Organisation I believe - should we use that?

malthauser commented 1 year ago

Ideal structure:

As for when we want to create a lead, we should create ALL emails that are added to the system, but include HOW they were added as a property. This will allow us to track how many new leads we are getting vs how the growth of invites is trending (also very important). I have a guy that I'm meeting with tomorrow that has a ton of Pipedrive experience. Let me check with him and circle back on this stuff.

matthewelwell commented 1 year ago

Having discussed with @malthauser, my understanding of the requirements is as follows:

malthauser commented 1 year ago

looks great. thanks!

matthewelwell commented 1 year ago

@kyle-ssg as discussed, I think we'll need to add a parameter (POST) to the sign up endpoints (email / password, github, google) to know whether the page was reached via an invite or not. As a starter, I'm suggesting:

"sign_up_type": "NO_INVITE|INVITE_EMAIL|INVITE_LINK"

I'll also need to look into how LDAP works, although that's less important as it's currently enterprise on premise only.

kyle-ssg commented 1 year ago

Frontend is live

kyle-ssg commented 1 year ago

@matthewelwell I think this can be closed?