Skip to main content
Solved

Automatic attachment to the object


Forum|alt.badge.img+4

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?

Best answer by Marcel.Ausan

@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

View original
Did this topic help you find an answer to your question?

5 replies

Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1142 replies
  • Answer
  • August 27, 2024

@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


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 6 replies
  • August 27, 2024

Thank you.


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 6 replies
  • August 27, 2024

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.


Marcel.Ausan
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 1142 replies
  • August 27, 2024

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


Forum|alt.badge.img+9

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings