Place the chicken in a medium pot and add enough water to cover by an inch. Add 1/2 teaspoon of salt and bring to a boil. Reduce heat to a simmer and cook until the chicken is cooked through, about 15-20 minutes. The internal temperature should read 165°F (74°C). Remove the chicken, reserving the cooking water in the pot. Let the chicken cool slightly, then shred it with two forks.
Bring the reserved chicken cooking water back to a rolling boil. Add the elbow macaroni and cook according to package directions until tender. Drain the macaroni well and rinse with cold water to stop the cooking process. Set aside to cool completely.
In a small bowl, prepare the dressing. Whisk together the mayonnaise, heavy cream, sweet relish, 2 teaspoons of condensed milk, and black pepper until smooth. Taste and add more condensed milk for sweetness or salt for balance, if needed.
In a large bowl, combine the cooled macaroni, shredded chicken, diced ham, drained pineapple, diced cheese, diced carrot, and raisins (if using).
Pour the dressing over the macaroni mixture. Use a spatula to gently fold everything together until all ingredients are evenly coated.
Cover the bowl with plastic wrap and refrigerate for at least 3 hours, or up to overnight. This chilling time is important for the flavors to meld. Stir gently before serving.