I'm trying to use the method from an AEM workflow, like this:
var cpPx = sling.getService(Packages.com.adobe.cq.mcm.campaign.CampaignProxy);
cpPx.get("nms:delivery#Submit", map, credentials, response);
I get errors, so I think I might need help with the syntax please of the remoteFunction (The remote function (including AC namespace + extension))
I'm adding here different ways I've test it and the error messages I'm getting back.
Using:
"nms:delivery#Submit":
Wrapped java.lang.IllegalStateException: unsupported protocol: 'nms'
"nmsdelivery#Submit"
UnknownHostException: myhost.path.comnmsDelivery
"nmsdelivery:Submit"
Wrapped java.lang.IllegalStateException: unsupported protocol: 'nmsdelivery'
"urn:nms:delivery#SubmitDelivery"
Wrapped java.lang.IllegalArgumentException: Invalid uri 'urn:nms:delivery#SubmitDelivery': escaped relative path not valid
"xtk:jobInterface|nms:delivery#Submit"
Invalid uri 'xtk:jobInterface|nms:delivery#Submit': incorrect path
Any suggestions would be much appreciated!