Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

writing some script in sourceQuery in DHF flow of Marklogic

New member
Joined
Feb 1, 2023
Messages
18
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 custom directory. and calling that script in flow. If I run sourceQuery in qconsole it was working. but if I try to run the flow getting 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:)
 
New member
Joined
Feb 1, 2023
Messages
9
I tried like this.. but not working
"sourceQuery" : "require('/custom-modules/custom/my-source-query.xqy').sourceQuery()", "sourceQueryIsScript" : true,
 
Top