Skip to main content
Question

Custom field with IFS statement in Apps 8

  • November 18, 2022
  • 1 reply
  • 55 views

HayleyG
Do Gooder (Customer)
Forum|alt.badge.img+9
  • Do Gooder (Customer)
  • 40 replies

Hi

Is it possible to create a custom field that looks up the param_id field in Variable Data and populates with another value. I can create what I am after in Excel using this IFS statement IF(param_id = "A050-H","103"), but how would I write that in sql for a custom field in IFS?

Thanks,

Hayley

1 reply

Forum|alt.badge.img+11
  • Hero (Partner)
  • 100 replies
  • November 18, 2022

Think what you are after is a CASE statement

SELECT CASE WHEN ‘Value’ = ‘Condition’ THEN ‘Outcome’ END

FROM VIEW

 

e.g.

SELECT CASE WHEN param_id = ‘A050-H’ THEN ‘103’ END

FROM CUSTOMER

 

You can extend a case statement with multiple conditions. Also escape it with ‘ELSE’ 

CASE

WHEN… THEN ..

WHEN... THEN ..

ELSE …

END


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings