Define a configured report to set import call parameters

Configuration of the configured report is done in Alfabet Expand.

  1. In the Reports tab, right-click the Reports folder or a sub-folder thereof and select Create New Report.
  2. Click the new configured report and set the Type attribute to NativeSQL.
  3. Define the following attributes:
    • Name: Change the technical name of the configured report.
    • Category: Select the use case category you defined for the generic API integration use case.
    • Native SQL: Open the editor and define the native SQL query for the configured report:
      • The first column defined in the SELECT statement of the SQL query is ignored for technical reasons.
      • The report result is a simple table which includes one column for each parameter to be sent in the header of the call and one column for each field to be set in the JSON body of the call.
      • The columns of the report dataset can have a name differing from the parameter names and JSON body field names. Mapping of the report data to the correct parameters and JSON fields is done in the ADIF configuration.
      • You can use Alfabet query parameters in the query to refer to the current environment, for example, to the current user or current user profile.
  4. In the toolbar, click the Save  Save_Expand button.
  5. Right-click the report node and select Set Report State to 'Active'.
  6. Right-click the report node and select Review Report. The report dataset is displayed in the Alfabet user interface, and you can review whether the result is as expected.

    To change the report, you must first right-click the configured report and select Set Report State to 'Plan'. The final state of the configured report must be Active to use it for data import.

For example, issues in a GITHub® repository shall be imported to Alfabet. The swagger file for the endpoint informs about two mandatory parameters to identify the owner and the repository the data shall be created in.

GenericAPI_SwaggerADIFImportExample 

The report for the import of issues returns two rows for the same owner and different repositories.

GenericAPI_ReportImportExample