I am working on a customized version of the M3EDISalesOrder_Load_In mapping. One of the requirements set forth by the client is to trigger an email to the salesperson assigned to the customer's account to notify them of the arrival of a new order and to quote the order number and indicating whether it's been successfully created in OIS300 or errored out in OIS275. To that end I modified the map to generate an outbound BOD using the SyncM3IECNotification schema. The idea is that the BOD would trigger an email to be sent from M3.
However, when I validate the mapping I get the error "Output from this mapping is not used" which is confusing because the document M3IECNotification exists in ION > Data Catalog > Object Schemas.
Any idea what I am doing wrong?
P.S. In general, what are the best practices for the scenario described above where an email should be sent at the end of processing a Load BOD if that email contains information obtained during the process (e.g. order number and status)? If SyncM3IECNotification is not the right tool for the job then what would be the right one?
UPDATE
After reading Infor docs I realized that SyncM3IECNotification should be used for error reporting/alerting only and that a SyncPulseNotification is a better choice for what I am trying to accomplish. So I have changed the output BOD of my MEC mapping to SyncPulseNotification and it's being successfully generated now. Here's a sample:
<SyncPulseNotification xmlns="">schema.infor.com/.../2">
<ApplicationArea>
<BODID>20240705T14473519083747-Pulse</BODID>
</ApplicationArea>
<DataArea>
<Sync>
<AccountingEntityID>750_002</AccountingEntityID>
<ActionCriteria>
<ActionExpression actionCode="ADD"/>
</ActionCriteria>
</Sync>
<PulseNotification>
<Description>Batch order 0000000852 from customer 200026T is ready for your review in OIS275.</Description>
<PulseDocumentReference type="CO">
<DocumentID>
<ID>P000069763</ID>
</DocumentID>
</PulseDocumentReference>
<AssignedPerson>
<PersonReference>
<IDs>
<ID>USER012345</ID>
</IDs>
<SystemUserIndicator>true</SystemUserIndicator>
</PersonReference>
</AssignedPerson>
</PulseNotification>
</DataArea>
</SyncPulseNotification>
However, I am still not getting notifications due to what I suspect is the wrong user ID (e.g.: USER012345).
According to the Infor documentation (docs.infor.com/.../default.html the AssignedPerson ID should be an IFS user ID. Does it mean the GUID? How do I obtain a user's IFS ID from the MEC map? It's stored in Ming.le, not inside M3, so I am lost.
Is there a better way to send an email at the end of a MEC mapping?