Workflow email upon Delivery Creation via FUNPREDLV function

I've created a work flow email triggering upon delivery creation with particular delivery modes.  I can see the email produce successfully when a delivery is created individually from a pick ticket, but when the FUNPREDLV function is executed I don't get the email.  Current set up is set with an 'Event Type' equal to Object.  I can't seem to find the right settings to generate emails with the FUNPREDLV function, any ideas out there?

Parents
  • 0
    The solution that I know about that issue is to use de audit functionallity of tables. Then you have to use a workflow manual in batch mode to send the email associated to the audit.

    For example, in the case you need to know when a delivery is created with a particular delivery mode you need:

    1- In table SDELIVERY activate Audit with creation an workflow selected and then with field MDL to be audited.

    2- Create a new workflow rule type manual and with a model similar to UPDFLD linked with SDELIVERY instead of ATABLE or ATABZON. Then in the header conditions enter [F:AUD]STA=2 and in line conditions [F:AUL]COL="MDL" and [F:AUL]NVAL=4 (for example).

    3- Remember to activate mail and action and in the Action insert AWRKUPDFLD similar to UPDFLD workflow to update AUDITH table.

    4- Finally enter a batch task that executes SAIWRKMAN with the workflow rule you have created and when it is executed it would send a message and update the STA field of AUDITH.

    This would send messages always a new record in SDELIVERY is created with MDL equals 4 in every way you insert a record in SDELIVERY.
Reply
  • 0
    The solution that I know about that issue is to use de audit functionallity of tables. Then you have to use a workflow manual in batch mode to send the email associated to the audit.

    For example, in the case you need to know when a delivery is created with a particular delivery mode you need:

    1- In table SDELIVERY activate Audit with creation an workflow selected and then with field MDL to be audited.

    2- Create a new workflow rule type manual and with a model similar to UPDFLD linked with SDELIVERY instead of ATABLE or ATABZON. Then in the header conditions enter [F:AUD]STA=2 and in line conditions [F:AUL]COL="MDL" and [F:AUL]NVAL=4 (for example).

    3- Remember to activate mail and action and in the Action insert AWRKUPDFLD similar to UPDFLD workflow to update AUDITH table.

    4- Finally enter a batch task that executes SAIWRKMAN with the workflow rule you have created and when it is executed it would send a message and update the STA field of AUDITH.

    This would send messages always a new record in SDELIVERY is created with MDL equals 4 in every way you insert a record in SDELIVERY.
Children