Exporting coupon codes to an external system
You can export a list of coupon codes to an external system.
The application provides a SDF service, exportCouponCodeService, that invokes
the exportCouponCode API and converts the API output to CSV format. You can set
the directory for storing the exported CVS file in the File I/O node of the service definition. Once
exported the file is removed. File with same unique codes can be generated any number of
times.
Note: Make sure you configure the Working Directory and Completion Directory properties of the
File I/O node before exporting coupon codes using the exportCouponCodeService
service.
The exported coupon codes that are included in the CSV file are separated by a line break. Each line corresponds to a unique coupon code. File name represents the CouponID and time-stamp of coupon code export.
For more information about the API, see Javadoc.
Viewing the export coupon code service
To view the export coupon code service, perform the following steps:
- From the Application Console menu, click Configuration > Launch Applications Manager. The Applications Manager opens in a new window.
- From the menu, click Applications > Application Platform.
- From the tree in the application rules side panel, double-click Process Modeling. The Process Modeling window displays in the work area.
- Select the General tab to view the corresponding process modeling tree for that base document type.
- In the Process Types swimlane, right-click on the General process type and choose Model Process. The Repository Details window and work area display for the process type.
- Choose the Service Definitions tab and navigate to service.