Rewrite 'processor' to 'scripted rest api' .

arun_nath01
Tera Contributor

Hi Everyone,

 

As processors are deprecated in ServiceNow and I need to implement the functionality to export multiple catalog as a single xml in a scoped app, I tried to re-write a processor 'Export Catalog Data' to a scripted rest api.

Have done that, but while calling the script include 'ExportCatalog' with RESTAPIResponse 'response', its throwing an error!! have set the header and status code before calling the script include, but its the same. 

Further this led me to a java write denied error, which I guess is with the response stream writer.

 

Has anyone faced similar situation or could anyone shed some lights on this please!!

Or is there any other approach to export multiple catalogs as single xml file.

 

Thanks,

Arun

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@arun_nath01 

Can you share current script etc and the error?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader