Published on 04/03/2024
Published by Pratik Takle
Advanced Assignment 1.1
Lead Processing
Create App
- Create an app on
test.wordpoets.comnamed “Lead Processing”. - Add config and modules.
- Avoid adding pages.
Create Table
- Create a table in the database named
lead-processing-metawith the following columns.object_idcoll_idcoll_typemeta_keymeta_value
Create Modules
- Create the following modules.
- 3.1:
add-lead– Add a form with the following fields:First NameLast NameEmailPhoneAddressCityPincode
- Use form control services.
- Use the session ticket to submit the form.
- Add submission-save template in the same modules.
- On form submission:
- Create a new lead using the DB services
- The service is already available in
DB services -> meta - Set ‘coll_id’ as ‘cust_lead’
- Set ‘coll_type’ as ‘lead-info’
- Set the following meta keys:
object_id/lead_id–LEAD{unique_number}created_datetime–Y-m-d H:i:screated_date–Ymdip–{ip}
- Set
coll_typeas ‘lead-meta’ - Set the following meta keys:
first_namelast_nameemailphoneaddresscitypincode
- Display a feedback message: “Lead successfully added”.
- Trigger a notification email to the lead’s email with the lead details, and add your email as a CC recipient.
- 3.2.
manage-leads– Display a list of leads with the following filters:First NameLast NameEmailCityPincode
- Include an “Add Lead” button that opens the
add-leadmodule. - Provide an option to delete selected leads.
- create a delete-lead template in the same module.
- execute delete operation in that using the object_id.
By following these steps, you’ll create a “Lead Processing” app with the necessary functionality to add and manage leads, store lead information in the database, and send notification emails.