Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Custom Record Field a!customFieldSum() - Not Handling Null Values

Certified Lead Developer

HI all 

I have a record for sum insured values let's say he below:

id: Primary Key (QuoteID)

riskType1SumInsured: Aggregate field of all RiskType1 sum insureds

riskType2SumInsured: Aggregate field of all RiskType2 sum insureds

riskType3SumInsured: Aggregate field of all RiskType3 sum insureds

totalSumInsured: a!customFieldSum(riskType1SumInsured, riskType2SumInsured,riskType3SumInsured ) 

When all the risk type 1,2 and 3 sum insured values have a value (Not Null) the totalSumInsured works correctly, however as soon as one or many of the risk type 1,2 and 3 sum insured values are null, the totalSumInsured simply returns a null.

I have tried wrapping the risk type 1,2 and 3 sum insured values in the a!customFieldSum(), with a!defaultValue() as well is a!isnullOrEmpty(), but no change in behaviour.

Is there something i am missing?

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data