In a large bowl, using a stand mixer with paddle attachment or a hand mixer, cream together 1 cup softened butter and 8 oz softened cream cheese for a few minutes. The mixture should become light and airy.
Then add ¼ cup granulated sugar and 1 tsp vanilla extract and beat again for a few minutes.
Add 2 ¼ cups all-purpose flour and ¼ tsp salt and mix again until everything combines. Don’t overmix this step.
Divide the dough into 4 equal parts, wrap each in plastic wrap, flatten into a dish, and refrigerate for at least 8 hours or overnight.
When ready to bake, take the dough out of refrigerator about 20-30 minutes before baking and let it sit on the counter.
Preheat the oven to 350°F, line a baking pan with parchment paper and set aside.
Roll out each piece of dough in a rectangular shape. Add about ¼ cup apricot jam and spread it in a thin layer. Then sprinkle over about ⅓ cup finely chopped walnuts.
Roll the dough in a log, then cut the log into about 1-1 ½-inch pieces.
Place the cookies on a baking sheet with parchment paper.
Brush them over with egg wash and sprinkle some course sugar on top.
Bake at 350°F for about 20-25 minutes or until golden/brown.