Question & Answer
Question
If you create a PO with an Attachment, then create an Invoice against that received PO with an Attachment via the MEA or MIF, why does the Attachment get deleted on the PO?
Cause
This is caused by the DeleteAll statement called in the MICSetIn class and the out of the box Relationship that exists between those objects.
Answer
To fix this issue do the following:
Create a new Relationship on the INVOICE Object - DOCLINKS2
Child Object - DOCLINKS
Where Clause - (ownertable= 'INVOICE' and ownerid=:invoiceid)
Amend your Integration Object and change the Relationship between the
INVOICE and DOCLINKS object to DOCLINKS2
This will stop the DeleteAll removing the Documents on the related records.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21470512