Dynamically set header value for SFTP connector in Mulesoft

168 Views Asked by At

How to set header value either true or false dynamically. I need to set value using variable either true or false but it is not setting. Can anyone help on this ?

enter image description here

2

There are 2 best solutions below

0
On

These are not really SFTP headers but DataWeave CSV format properties. You can not set them dynamically in the UI. You can use the method described in the documentation to set dynamic format properties. For that you will probably need to do it in a transform component after the SFTP read operation.

0
On

You could create a choice router and provide a sftp:read event processor in each route with a different value of this property.