0
CRM
One script reply has been approved by the moderators Verified

See all of your customers, statistics and send e-mails directly from the app

Created by adam186 699 days ago
Static preview only: No backend 
This is a static preview of the app and there is no backend. As such, the interactivity requiring script execution is non functional. To see the fully functional app, edit/run it in Windmil by clicking the button above.
Loading

Scripts used

export async function main() {
  const res = await fetch("https://dummyjson.com/users");
  const json = await res.json();
  const users = json.users.map((u: any) => ({
    id: u.id,
    email: u.email,
    lastName: u.lastName,
    firstName: u.firstName,
    phone: u.phone,
    jobTitle: u.company.title,
    company: u.company.name,
    stage: Math.random() > 0.5 ? "Lead" : "Customer",
  }));
  return users;
}