I have one requirement while running DHF flow I can't use cts.uris
in place of sourceQuery. I want to use some script.
How can I achieve this?
I tried like this.. but not working
I have placed my script under a custom directory and calling that script in the flow. If I run sourceQuery in qconsole it was working, but if I try to run the flow I'm getting an error.
(Logging HTTP response body to assist with debugging: {"errorResponse":{"statusCode":400, "status":"Bad Request", "messageCode":"RESTAPI-INVALIDREQ", "message":"RESTAPI-INVALIDREQ: fn.error(null, 'RESTAPI-INVALIDREQ', err); --Invalid request:)
I tried like this, but it's not working
"sourceQuery" : "require('/custom-modules/custom/my-source-query.xqy').sourceQuery()",
"sourceQueryIsScript" : true,