Single Call Service Node / Multiple Domains

I have a “Get Entities” node which fetches one light and one switch.

I want both to turn on with a single call service node - but it doesn’t seem to work because they have separate domain types (Switch and Light) - so only the entity with the matching domain turns on.

Is there a way to make this work for both without having a separate call service node?

I believe you can also inject the domain.
You should be able to use this logic here: Changing lamp color based on a variable - #4 by AlmostSerious

You would still have to call the function twice, once with each domain.
If you have a function in front of it then there is a node.send function you could use for that.