Dff value not being sent to Credit Memo
Summary:
we have requirement for sending value of Dffs to credit memo for which I have published the below algorithm
if(BillLines.TrxClass_Custom=='INV')
{
ARInterface.insert([
AttributeContext: 'TransactionInterfaceHeaderDff',
AttributeName: 'ATTRIBUTE5',
AttributeValue: Products?.AmendReason_Custom,
FlexContext: 'OSS SUBSCRIPTION',
TransactionType:'INV'
])
}
else if(BillLines.TrxClass_Custom=='CM')
{
ARInterface.insert([
AttributeContext: 'TransactionInterfaceHeaderDff',
AttributeName: 'ATTRIBUTE5',
AttributeValue: Products?.AmendReason_Custom,
FlexContext: 'OSS SUBSCRIPTION',
TransactionType:'CM'
])
}
But this doesn't seem to work.
Content (required):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):