Hello,
We recently updated our ArcGIS JS API version from 4.13 to 4.18 and there seems to be a problem with sending custom request parameters for Print widgets' printServiceUrl.
Basically we have our own proxy/api ("/api/GPServer/Export Web Map") for printing, and we require some extra request parameters so we can highlight the selected features on the map for the print.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html
const print = new Print({
view,
printServiceUrl: "/api/GPServer/Export Web Map?customPrintParameters={example: parameters}"
});
We pass extra request parameters to Print widgets' printServiceUrl, but the request parameter (customPrintParameters) is always null in our backend api when the print widget is used within the app.
This was working fine with v4.13. Is this behaviour intended and is there some other way the custom request parameters could be sent to our backend with the Print widget?