bcgov / digital-journeys

PSA Forms System
https://bcgov.github.io/digital-journeys/
Apache License 2.0
8 stars 7 forks source link

Dgj 1759 crm category update based on id and not name #1823

Closed bhumin-fw closed 3 months ago

bhumin-fw commented 3 months ago

Summary

Select the category based on ID instead of name if provided in the form. Some end categories are similar under different main categories. For example, Maternity Leave falls under both "Maternity, Parental, and Adoption Leave" and "T2 Payroll (Transaction)". In this case, we need the ID of the selected category.

Changes

Notes

Using an ID to lookup a category is not advisable and should be used only in certain cases. Along with crmCategoryLookupId, one must provide the unique category name of the required category or its parent category in the crmCategoryLookupName field.