Business Functions

Business Functions provides special features for business use cases. Each Function has an individual set of parameters plus some parameters that are valid for all business functions.

Parameters

 functionName - the name of the business module
 methodName - some business functions provide several operations
 silentMode - if you set this to true, the Gebra Suite will not show a message if something goes wrong. You will still get the errorMessage, to handle the error case in your event code.

Example Usages

let result = await app.businessFunction({
  //Common Parameters for all functions
  functionName: "DhlShiping",
  methodName: "GetLabel",
  silentMode: true, //false is default. If set to true, the Gebra Suite will not show an error message box. it is up to you to inform the user.

  //Individual paremeters for each business case. DHL Label as an example here.
  shipmentNumber: app.getFieldValue("cordShipmentNumber"), //We saved this number before and stored it to our Order
});
window.open(result.labelUrl, "_blank");

Business Functions

Last updated