I am attempting to write a formula that will calculate an amount but if the serviceFee field has a value it will use that value.
So
Field1 = Amount
Field2 = ServiceFee
If ServiceFee has a value the amount must equal the servicefee
If any of the ClientTypes are matched the formula will not look at the ServiceFee
I have tried deploying this but the formula seems to execure the ServiceFee section only
IF(ClientType.Id = '123456',
Amount- Discount,
IF(ClientType.Id = '7891011',
Amount + 1,
IF(NOT(ISBLANK(ServiceFee)),
Amount = ServiceFee,
)
)
)