Automate line insertion
  • 29 Sep 2023
  • 1 Minute to read
  • Dark
    Light

Automate line insertion

  • Dark
    Light

Article summary

You might want to add or remove lines from those that a user has selected in the Add Lines component. Do this by adding custom logic to an Apex hook that can change, delete, or add to the set of user-chosen lines, and display a custom message to the user explaining those automated changes.

Prerequisites

Before configuring this feature, make sure that the following fields are visible and can be edited:

  • Line Items Creation Configurer Class on Product Selector Configuration object.
  • Line Items Evaluation Post Processor on Product Selector Configuration object.

If the fields are not visible or can't be edited, confirm that they have been added to the object's page layout and are visible in the user's profile. For detailed instructions on how to add fields and check for visibility, refer to Make fields visible or editable.

Pre-IQA hook

This optional Apex hook receives as input the lines a user has selected to add, performs desired pre-processing, then sends the pre-processed lines to the IQA Configuration. When IQA returns a list of lines, the callout further displays a custom message about the lines that will be added.
For more information, see Line Items Creation Configurer Class.

Post-IQA hook

This optional Apex hook receives as input the pre-processed lines returned from IQA, as determined by the Pre-IQA hook described in the preceding section. This hook does further post-processing on the lines returned from IQA, and then displays a custom message about the lines that will be added.
For more information, see Line Items Evaluation Post Processor.

Important

You can configure this hook only if you have enabled IQ Anywhere configuration.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.