CRMScript dialog not working in 'Before saving in dialog Add/editproduct' trigger

Status: Reported

Description
  1. Go to Settings and maintenance > CRMSCripts.
  2. Create a trigger script of "Before saving in the dialog: Add/edit product".
  3. Use such code:

EventData eventData = getEventData();
 
EventDataDialogDefinition dialog;
dialog.setTitle("Travel time");
dialog.setType("yesno");
dialog.setIcon("question");
dialog.setPrefix("step1_"); //Adding prefix to dialog fields
dialog.setText("Do you want to add travel time to your appointment?");
eventData.showDialog(dialog);

Image

Observed that: when such script code is used - the dialog does not show up.
When using the exact same code on for example the 'before saving contact' trigger it does show the dialog.

Expected that: the dialog would appear.


Comments

[2023.03.27: kim]

This exact issue also affects the triggers: Before/After saving Documents.

Details
Issue id 40197
Registered 10 Mar 2023
Last modified 27 Mar 2023
Severity Medium
Area Sales
Status Reported
Target release
Type Bug