We can add a customized code action item to a record when recordings don't provide us with the exact test automation steps that we require or when we wish to add some extra test steps.