Service Connect APInvoice Workflow Question

>There is a functoid for position and another for last -
>if that is really what you want...
>You can set a link condition likely...

Exactly!
Map APInvDtl to whatever you need, then right click on link, select Link Properties. Press Condition button.
In XPathBuilder put functoids "last", "position" (Nodeset tab), "equal" ("operations" tab), link "last" and "position" via "equal" and map result of "equal" to the final result - see picture on http://www.freeimagehosting.net/image.php?aa67130cd5.jpg


It means that mapping will work only if node position is the last in collection.
Hope it helps.
I am working on the AP part of a workflow and I got this 99% working. I
have one problem I can't figure out. When I call the GetNewAPInvJob
method and I pass in the CompanyID, VendorNum, InvoiceNum, JobNum and
InvoiceLine, how do I pass in the correct invoice line if I am coming
from the Update method and there are multiple lines(multiple APInvDtl
lines)? It seems to always pick line 1. Any ideas?









As you can see there are 2 APInvDtl nodes the first is line 1 and the
second is line 2. When I am coming from the update method to the
GetNewAPInvJob method, how do I cycle through the ApInvDtl nodes and
select the last one so that it chooses the correct invoiceline. I only
have 1 APInvDtl when I am mapping the fields in the SC conversion.
Thought this screenshot would help.



Christopher W. Marsch

IT/Database Administrator

Mechanical Dynamics & Analysis, Ltd.

19E British American Blvd.

Latham, NY 12110

(518) 399-3616 x272

Cell: (518) 795-0200



[Non-text portions of this message have been removed]
Your screenshot does not come through the usergroup emails...There is a functoid for position and another for last - if that is really what you want...You can set a link condition likely...

________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Marsch, Chris
Sent: Tuesday, February 01, 2011 2:26 PM
To: VANTAGE@...; vantage@yahoogroups.com
Subject: [Vantage] Service Connect APInvoice Workflow Question



I am working on the AP part of a workflow and I got this 99% working. I
have one problem I can't figure out. When I call the GetNewAPInvJob
method and I pass in the CompanyID, VendorNum, InvoiceNum, JobNum and
InvoiceLine, how do I pass in the correct invoice line if I am coming
from the Update method and there are multiple lines(multiple APInvDtl
lines)? It seems to always pick line 1. Any ideas?

As you can see there are 2 APInvDtl nodes the first is line 1 and the
second is line 2. When I am coming from the update method to the
GetNewAPInvJob method, how do I cycle through the ApInvDtl nodes and
select the last one so that it chooses the correct invoiceline. I only
have 1 APInvDtl when I am mapping the fields in the SC conversion.
Thought this screenshot would help.

Christopher W. Marsch

IT/Database Administrator

Mechanical Dynamics & Analysis, Ltd.

19E British American Blvd.

Latham, NY 12110

(518) 399-3616 x272

Cell: (518) 795-0200

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]