Skip to end of banner
Go to start of banner

2.5.4 Indexes & Post-Processing Data

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Hello. In this video, you will learn about ACDI Reporting Postprocessing, what it is, and how you can use it. Let's try an example of a simple report based on data received from eDirectory snapshots.

This report will show data about users, and it will show if you need to do some actions due to a login expiration date coming close.

So, here you have one entity for users, some filters, and a list of result table attributes.

Let's check one of the user entities.

You can see that some attributes are in a human-readable format and some aren’t.

And if you want to change it, for example, transform the date string into a readable format, define or change the order of days, months, etc., or change values from numeric codes to descriptions and words, you need to use postprocessing.

For example, attribute loginExpirationTime stores the date in a date string informat—"yyyyMMddhhmmssZ”.

But what if you need to create a report that you will run, for example, on a weekly or monthly basis and which will show users whose login will expire in a preset time period, in the next week or next month? For this, postprocessing is at your disposal. Let's see how it works.

In Report Editor there is a tab called “Postprocessing” where you can add all your JavaScript functions which will be implemented to filter values or to values in the resulting report.

You are able to paste in the function “value,” which is a value of an attribute excel itself; “record” which is a full record in the JSON format, and “context,” the main context of an operation.

A field with the custom name “record” has been prepared beforehand for this video.

You can use any other name for additional attributes. Let's see what the record will look like. For this purpose, a function that will return a string with the record was created and added here.

Okay. To enable postprocessing, you need to select the function, enable postprocessing,

and if you want to put a full record as a function argument, the feature “Pass full record object to the postprocess function” must be enabled. Let's look at the report.

Should you have any questions or require any assistance, please do not hesitate to contact us at any time swsupport.skypro@skypro.ch

  • No labels