I have a flow that is using the SalesForce connector to establish a connection and perform standard operations through the API. I have a new requirement for Mule to act as a web service proxy for an Apex class exposed as a service. Mule will need to insert or create a session Id before executing the Apex service. Since the other Mule flow will likely have a valid session Id, I did not want to create one needlessly. Is there anyway to retrieve the session Id that the SalesForce connector is creating and holding so that I can use it in my other flow?
Or is there a more simple way to call the Apex service which could make use of the SalesForce connector?
#[app.registry.YourConnectorConfigName.sessionId]
should/may work? – David Dossot