# Compliance Scripts (Legacy)

Limio For Salesforce Flows support fetching dynamic information from zuora; these dynamic fields can be used elsewhere in the flow for building script that the agent can read to the customer as a confirmation and summary of the order being placed.

The dynamic fields are retrieved by an apex action exposed to the flow, for example, in the Limio For Salesforce Category: Get Acquisition Order Preview:

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2Fba5dLHBwWhJ5DA624GVC%2Fimage.png?alt=media&#x26;token=874ef3ed-19a8-4e22-944d-6438061176df" alt=""><figcaption></figcaption></figure>

The action inputs should be mapped as follows:

* Order Items as the orderItems property of the lwc Limio Order - New
* Purchase Country as the purchaseCountry property of the lwc Limio Offer Catalog

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2FwrepAlWyoWanV6Lz2VmO%2Fimage.png?alt=media&#x26;token=62f4c93d-2871-46b6-a2ec-dc40512584be" alt=""><figcaption></figcaption></figure>

Important: make sure the apex action is added to the flow after the 2 lwc components mentioned above.

Once the apex action is added to the flow, its outputs can be used to build a dynamic text; for example, a standard component of type "Display text" can be added to a flow screen, and OrderPreview outputs used as merge fields in the text body:

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2FhU6R7AXYVuRALmMlBnrI%2Fimage.png?alt=media&#x26;token=087cba85-9fed-4f9d-81f4-cfe753efa3df" alt=""><figcaption></figcaption></figure>

The same dynamic text component can be dynamically rendered on the screen using ootb flow visibility rules:

<figure><img src="https://3950144701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKxTpA9AeeNYx1ml6UpHj%2Fuploads%2FbeaVaSqzQK68Iwfs4amt%2Fimage.png?alt=media&#x26;token=3124eda8-7420-4c35-95f1-6911cb5a70af" alt=""><figcaption></figcaption></figure>

Learn about dynamic variables mapping in other journeys in this article: [dynamic-variables](https://docs.limio.com/integrations/setting-up-limio-for-salesforce/apex-classes/dynamic-variables "mention").
