Profit REST Service ReportConnector

Connector for generating and retrieving a Profit report.

You can only call the ReportConnector if it has been activated in the App connector.

In Profit, authorisation applies to reports and to the contents of reports. This authorisation also applies if you retrieve a report using the ReportConnector.

  • The user linked to the token must be authorised to view the report.
  • The user linked to the token only sees those lines of the report for which he is authorised.

The following applies to reports of the sales invoice type. The connector requires administration settings for generating these reports. For this, the connector uses the settings of the last administration to which the user was logged on.

Note:

You cannot view a report with an initial screen using the ReportConnector. An initial screen is a custom-made screen with settings and filters which you use to determine the content of a report.

Contents

Preparations for the ReportConnector in Profit

You retrieve the GUID of the report because you need it for the call. If you want to apply a filter to the report, you also retrieve the codes of the fields that you want to use in the filter.

To find the report ID:

  1. Go to: General / Output / Management / Report.
  2. Add a new view.
  3. Include the ID field in the view:

    App_Ondersteunde functies (30)

    Profit includes the 'GUID' in the view. Look up the ‘GUID’ of the report that you want to retrieve.

To retrieve field codes for a filter:

When applying a filter in the ReportConnector, you must use the field codes that are in the report.

  1. Go to: General / Output / Management / Report.
  2. Open the report:.
  3. Click on: Modify. This opens the data collection.

  4. Click repeatedly on: Next.
  5. Click on: Example.
  6. Press: Ctrl+Shift+I.

    You see a window with the field codes.

    App_Ondersteunde functies (30)

  7. Copy the correct field code to a filter for the ReportConnector call.

Run a ReportConnector

  1. Call the Profit REST Services.
  2. Call:

    ../ProfitRestServices/reportconnector/ReportGUID

    Example:

    ../ProfitRestServices/reportconnector/F890829D4FE3DA0A7FBCDEBA980B813D

Run a ReportConnector with a filter

Use a filter to include only specific data in the report.

See also the explanation and additional fields for the GetConnector.

'Is equal to' filter on one value:

Call:

../ProfitRestServices/reportconnector/ReportGUID?filterfieldids=fieldid&filtervalues=value&operatortypes=type

Example:

You filter on employee BARTD.

../ProfitRestServices/reportconnector/F890829D4FE3DA0A7FBCDEBA980B813D?filterfieldids=EmId&filtervalues=BARTD&operatortypes=1

AND filter (filter on multiple fields):

You filter on multiple fields using an 'is equal to' filter. Records must match all filter criteria.

Call:

../ProfitRestServices/reportconnector/ReportGUID?filterfieldids=fieldid,fieldid&filtervalues=value,value&operatortypes=type,type

Use a comma as the separator between the fields and between the filter values.

Example:

You filter on employees of department ONTTEAM and the MEDPRO job.

../ProfitRestServices/reportconnector/9FCF692141693C5BCC9E5BB042336648?filterfieldids=U009,U011&filtervalues=ONTTEAM,MEDPRO&operatortypes=1,1

Directly to

  1. Profit Rest Services (JSON)
  2. Call a connector using the Profit REST Service
  3. Add an app connector for the Profit REST Service
  4. Generate a token for the Profit REST Service
  5. Convert XML to JSON
  6. Call a GetConnector
  7. Call an UpdateConnector
  8. Call a ReportConnector
  9. Call a SubjectConnector
  10. Call a ProfitVersionConnector