Trying to Query CareProgramEnrolleeId field from ProductRequest in salesforce using the mulesoft salesforce query connector. Getting an error saying the field does not exist but it does. Have checked permissions and everything looks good there. Using the same account that we are using for the mule integration I can query that field in dev console.
Query is : SELECT CareProgramEnrolleeId From ProductRequest
Error received: Select CareProgramEnrolleeId From ProductRequest ^ ERROR at Row:1:Column:8 No such column 'CareProgramEnrolleeId' on entity 'ProductRequest'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names."
Mulesoft API version it was using for salesforce needed to be updated to 49.0 or above. Issue is now resolved