Skip to main content

Hi,

I would like to implement the following functionality using standard IFS Cloud functions. When I attach a document (attachment - pdf file) to an invoice, I would like this attachment to be automatically attached to the tax transaction for this invoice and the PK header.

Is this possible?

@bkpskoczylas you can achieve this by using Object Conenction Transformations. You can read in more details about this in the below URL:

https://docs.ifs.com/ifsclouddocs/24r1/DefineSystemBasics/AboutObjectConnectionTrans.htm?StandAlone=true


Thank you.


I checked it. For cases where LU has the same key it works without problems (e.g. company and invoice). Will it work also in cases where the target view does not contain the column which is the key of the source view? Example: LU ManSuppInvoice has key: company and invoice_id but in the target LU TaxLedgerItem there is no column Invoice_id. Can the transformation work at all in such a case? Should I prepare some mapping function? Thanks in advance for the hint.


@Mathias Dahl would you have any idea if obj conn transformations would work when the LUs have different keyrefs?


in  case the mapping is not directly possible on field level, you can create some custom code to calculate the relevant source key.

There are examples available in core - check mappings defined by an ..._api.get_...() in the object connection transformation 


Reply