Hello,
Currently I'm developing script logic around Master Agreements and I have problems with the following:
1. Trying to add (actually copy) line items to Master Agreement - the problem is that in order to add any line item to MA, I have to "Create default line item group" first. I'm adding this line item group manually (just likein the picture below - marked red) and then I'm able to .add() lines to document through script. But I want to call out this "Create default line item group" also by a script. Any ideas how to program this through script?
2. Another functionality I'm trying to develop is copy incoterms from RFX to Master Agreement. I'm able to read this from RFX through getDeliveryTerms() (which I believe is suitable for reading incoterms setup) but I'm not able to find a way to set/copy this to Master Agreement - no getDeliveryTerms() in MA document so I'm not able to doc.getDeliveryTerms().set(...)
Any ideas on that?
Thank you in advance,
Regards,
Tomasz Gałdyś