Question

What field attribute will allow me to calculate if a Case exists with certain criteria?

  • 29 January 2022
  • 0 replies
  • 48 views

Badge +11

I would like to add a custom field to a Business Account which will automatically calculate if a Case exists for the Business Account in question with a Case Class matching one of a few, and with a Subject starting with ‘2021’.

I have this so far, which does not work:

[PXDBScalar(typeof(Switch<Case<Where<SearchFor<CRCase.caseCD>.
In<SelectFrom<CRCase>.
LeftJoin<BAccount>.
On<CRCase.customerID.IsEqual<BAccount.bAccountID>>.
Where<BAccount.bAccountID.IsEqual<BAccount.bAccountID.FromCurrent>.
And<CRCase.subject.StartsWith<CstConstant.year>>.
And<Brackets<CRCase.caseClassID.IsEqual<CstConstant.txReturnType_CTR>.
Or<CRCase.caseClassID.IsEqual<CstConstant.txReturnType_FTR>>.
Or<CRCase.caseClassID.IsEqual<CstConstant.txReturnType_ITR>>.
Or<CRCase.caseClassID.IsEqual<CstConstant.txReturnType_PTR>>.
Or<CRCase.caseClassID.IsEqual<CstConstant.txReturnType_SCTR>>.
Or<CRCase.caseClassID.IsEqual<CstConstant.txReturnType_SMLLC>>>>>>, IsNotNull>, True>, False>))]

 


0 replies

Be the first to reply!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved