Steps to Enable a New Campaign Type in Console
Last updated
Was this helpful?
Last updated
Was this helpful?
In the following steps, the creation of a new project type has been shown with code 'NTD' and a collection has been shared below in which {{projectTypeCode}} must be assigned with the new project type code:
Default template requires Product & Variant configuration (optional).
Create some products to be added for this campaign. The product-create and product-variant create curls do the same for a product named 'Praziquantel' under the type 'TABLET'. We have provided a sample object of 'product' and "productVariant" below. The "productId" will be obtained after creating the product.
Create a new project type. In the collection, we have used the project type 'NTD'. The projectType NTD creates a new project.
Add the 'group' and 'type' as per your need. The examples we have used here are 'MALARIA' and "multiround" respectively.
Change the 'id' in the 'data' object provided in the collection as it should be unique.
Assign the "beneficiaryType" as per your usage. Here we have used "INDIVIDUAL". You can use any one of these:
The "cycles" and "deliveries" can be prefilled or kept empty as per your choice. Here we have populated it with one cycle and one delivery as shown below:
Add the resource details of the product created in the first step like this:
The final constructed project type will be:
Update data in the schema named "allAttributes":
Search for the attributes in MDMS. The collection has the curl named "Search allAttributes data". MDMS search is like this:
From this, select the attribute that you want to link to your project type. and put it in the update curl. The collection has several attributes and the curls to update them. Sample update data is given below:
Ensure attributes are set correctly, as they will be used during delivery rule creation.
Next, add data to the schema named "adminSchema": We have added two data with 'uniqueIdentifier' as "boundary.{{projectTypeCode}}" and "boundaryWithTarget.{{projectTypeCode}}" as follows:
This master is for the target sheet template used to enter target values for each village. Please configure it accordingly.
After this, add localisations for the newly created project type. The collection has the localisation messages as per the 'NTD' project created. You can modify it according to your needs.
Add the target configuration like the one provided below:
This configuration maps dashboard targets to columns, ensuring all listed columns align with beneficiaries. Supported beneficiary types: Individual & Household.
Refer to the default checklist added or refer to the documentation for how to add default checklist templates.
Update the messages according to the requirement
Finally, restart the "localization" and "project-factory" services to prevent data issues in templates.
We are not suggesting the creation of a new campaign type at this time. We already have a campaign type called "codelivery," which covers all the different use cases. However, if a new campaign type is required and recommended by WHO when project types are created, you can proceed with its creation. A project type is essentially a known template used for creating and delivering campaigns.