Example: Working with the Export Data Action (CAD)
4 min
before creating an export data action docid\ kr8jbloerfnv1zc5sppdocreating an export data action docid\ kr8jbloerfnv1zc5sppdorunning the export data action docid\ kr8jbloerfnv1zc5sppdo before creating an export data action you can create an action that exports either an ad hoc or a scheduled report see export data action docid\ qjqzn1pfuz azjooz3sfh create an export data connection from the data integration wizard by following the process in exporting data docid\ fehfwxnttuwbfv1dxs4rf for this example, create a connection that creates a file by selecting shared folder (file share is only available for on premise deployments ) data integration wizard create a report template and upload it create a table report that includes the fields to use see creating reports and report templates docid\ nbwtfjmfn9gmaqcwuo6sm to include multiple records in the report, the primary key field should be recid if you intend to re import the data, ensure that you include a unique identifier field for each record (such as recid ) otherwise, the imported data does not match the correct records ensure that can run from export data action is checked (go to the report workspace, and click the edit icon next to a report ) creating an export data action from the configuration console, click build > automation tools > quick actions to open the actions manager workspace the list of business objects that have actions appears click add/edit for the incident business object the actions center appears click the create new actions tab choose export data the export data action appears for this example, enter the following information into the fields export data action field description enter action name a unique name for the action in this example, use run data export enter action description optional a description of what the action does enter category optional the category select from the drop down list report name the report that you created above select from the drop down list can run for multiple records allows the action to be run against multiple records connection the connection select from the drop down list schedule optional the schedule for the action so that it runs at a scheduled time, such as within a workflow report parameters parameters appear according to the chosen report in this example, under source value , enter main export format the export format select from the drop down list in this example, choose comma separated values field delimiter a field delimiter enter one or select from the drop down list in this example, choose comma record delimiter a delimiter for each record in this example, enter ' ##### ' qualifier leave this field blank click save the run data export action now appears under the action menu running the export data action log in to open the incident workspace select one or more records (ctrl + click) from the list (you can only export multiple records if you have checked can run from export data action on the report parameters page see creating reports and report templates docid\ nbwtfjmfn9gmaqcwuo6sm ) from the action menu, choose no category > run export data export data action the report runs and is saved to your local drive
