I'm trying to create batch process from SalesForce Lead table to my sql server database using the flow shown below. For some reason I keep getting the error: That the message payload is of type: HashMap. I tried using Transform Message but I kept getting the same error. How can I take a JSON Object from sales force and convert it into something that the sql server could use?
Which output directive should I use if I use Transform Message to avoid the sql server getting hash map?
Flow:
Error: