on 07-06-2020 1:41 PM
Hi!
I am having some issues on getting related documents in Document Flow in OnSave Events.
For instance, on saving a Customer Invoicing, I need to retrieve documents in Document Flow (Sales Order, Customer Invoice Request, etc).
Is there any way to do that? Is there any field that relate these documents?
I have tried with the following code placed in the OnSave event, but the result, is always empty
var refDocument = this.GetFirst().ID.RemoveLeadingZeros();
var key : BusinessDocumentFlowKey;
key.AnchorObjectNodeReference.FormattedID = refDocument;
key.AnchorObjectNodeReference.ObjectTypeCode = "28";
var flow = BusinessDocumentFlow.Retrieve(key);
Thanks in Advance.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.