Have Objects in msg, need to take actions based on one of the payload codes

You can use an Inject node configured to inject on startup, with no repeat and feed it into the node copy msg.payload -> flow.switch1.