Understanding "Deployment Units"
Questionnaire = Foundation
ServiceRequest = CustomerRelationshipManagement
You can create a custom Business Object to run this snippet, and map the Questionnaire (source) with such custom Business Object (target) with an Internal Communication. The target BO in Foundation DU would process the logic.