I would like to add a new parameter to the Datacontract class through extension.
But I am getting an error stating "The DataMemberAttribute is not supported on Extension Class"
[Extensionof(classStr(VendInvAPCommonFileContract))] final class VendInvoiceAPCommonFileContract_Extension { public boolean excludePreviouslyClosed; public void initialize() { next initialize(); excludePreviouslyClosed = false; } [ DataMemberAttribute, SysOperationLabelAttribute('ExcludePreviouslyClosed') ] public NoYesId parmExcludePreviouslyClosed(NoYesId _excludePreviouslyClosed = excludePreviouslyClosed) { excludePreviouslyClosed = _excludePreviouslyClosed; return excludePreviouslyClosed; }
Could someone please suggest some alternate way to add the above parameter ??
*This post is locked for comments
Hi manasa133,
As of today it is not possible via extensions, the only possible workaround is to create new data contract and use it instead.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156