The furnish Equipment workflow is not triggering. Upon clicking request under Furnish Equipment, we are getting the below error.
"The worflow has not been configured, Please contact your administrator."
Reproducing the Issue
Login to the client's instance. Under New Hire activities, Click on Furnish equipment. Click on request on the equipment selected.
We are getting the error.
There were two issues with the Configuration.
Under Object definition of the OnboardingEquipmentWorkflow object, rule is not configured properly.
There the rule is specified in initializeRules and saveRules. saveRules is correct. But it should not be added from Initialize rules.
The Rule configured was wrong.
It is pointing to the type.code but compares the value DELL
If a workflow has to be triggered only if the value DELL is selected we should use the value.code in the Rule.
If a workflow has to be triggered for every computer then the rule needs to be changed to the type we should use Computer instead of DELL. Attached screenshot for more clarity.
upon making the neccessary changes as mentioned earlier, the issue was fixed.
KBA , LOD-SF-OBD , Onboarding , Problem