Get your API key

Lesson 5 mein se 5

Excel export, import aur hand-over

Excel mein saaf khulne wala CSV export, client ki purani sheet ka import, client ke apne accounts mein live karna, aur gig ka price.

9 min Login karke kholo
Ek baar mein ek step, page palatne jaisa.

Is lesson ke end tak aapka CRM leads ko aisi CSV mein export karega jo Excel mein saaf khule, client ki purani sheet bina duplicates ke import karega, client ke apne accounts mein live chalega, aur aap use guide, checklist aur sahi price ke saath hand over karoge.

Aapko chahiye: lesson 4 wala logins aur RLS wala CRM, test ke liye Excel ya Google Sheets, client ki purani lead sheet ki copy · Time: 9 minute

  1. CSV file ek plain-text table hai: har row ek line, cells ke beech commas. Har spreadsheet ise khol leti hai, isliye Kavita ji ke liye yahi sahi export hai. Par laaparwahi se bani CSV Excel mein teen tarah bigadti hai:

    Do Excel tables. Pehle: phone 9.19877E+11 dikhta hai, Budget header mein rupee sign ki jagah toote characters, aur dates 11/21/2026. Baad mein: phone 98765 43210, header mein rupee sign ke saath Budget, aur dates 2026-11-21.
    Wahi leads, wahi Excel. Farak sirf file likhne ke tarike ka hai.
    • Phone numbers: Excel 919876543210 ko number samajhta hai, 9.19877E+11 dikhata hai, aur shuru ke zero hata deta hai.
    • ₹ aur Hindi naam: file ki shuruaat mein ek chhota marker hota hai jise BOM (byte order mark) kehte hain. Uske bina Excel aksar UTF-8 text galat padhta hai aur ₹ ki jagah ₹ dikhata hai.
    • Note ke andar commas aur quotes use kai columns mein tod dete hain, jab tak cell double quotes mein wrap na ho.
    Prompt · ise apne AI agent mein paste karo
    Read PRD.md first.
    Goal: Add an "Export to Excel (CSV)" button on the Leads screen.
    Details:
    - Export only the leads currently shown (search and filters applied), which RLS already limits to the logged-in user's own rows.
    - Columns: Name, Phone, Source, Interest, Budget (₹), Status, Next follow-up, Created, Last note.
    - Phone: write it as the 10 digits with a space after the fifth digit, like 98765 43210, so Excel keeps it as text.
    - Dates: YYYY-MM-DD. Budget: a plain whole number without commas.
    - Write UTF-8 with a BOM at the start, and Windows line endings (CRLF).
    - Quote every field in double quotes and double any double quote inside it (RFC 4180).
    - If a text cell starts with =, +, - or @, put a single quote in front of it so Excel never runs it as a formula.
    - File name: mini-crm-leads-YYYY-MM-DD.csv.
    Rules: Build the CSV in one small function with tests for: a note containing a comma, a note containing "quotes", a name in Hindi, and a note starting with =.
    Done when: I double-click the file on Windows, Excel opens it, the header shows Budget (₹), phones look like 98765 43210, and a note with a comma stays in one cell.
    Tip

    Agar purane Excel mein ab bhi toote characters dikhein, toh blank workbook kholo, Data, phir From Text/CSV use karo, aur file origin mein 65001: Unicode (UTF-8) chuno.

    Kyun?

    Client poore CRM ko pehle export se judge karega. Jo file phone number ki jagah 9.19877E+11 dikhaye woh tooti hui lagti hai, chahe har screen chal rahi ho. Formula wala rule "CSV injection" bhi rokta hai, jismein =HYPERLINK(...) jaisa cell file kholte hi chal jaata hai.

Baaki lesson padhne ke liye free login karo

Har lesson free hai. Free account se saare lessons khul jaate hain aur aapki progress save hoti hai.

Is lesson mein aage:

  1. Client ki purani sheet import karo
  2. Client ke apne accounts mein live karo
  3. Guide aur checklist ke saath hand over karo
  4. Gig ka price tay karo
  5. Recap