Skip to main content
Answer

Open AP Invoice Formula Not Working

  • July 16, 2025
  • 4 replies
  • 31 views

I'm trying to target open AP invoices in a Generic Inquiry, but no matter what I try, the formula always defaults to the else condition.

 

  • =IIF([APInvoice.Status] = 'Open', 0, 1)
  • =IIF([APInvoice.Status] = 'O', 0, 1)
  • =IIF([APInvoice.Status] = 'o', 0, 1)
  • =IIF([APInvoice.Status] = 1, 0, 1)
  •  
  • =IIF([APRegister.Status] = 'Open', 0, 1)
  • =IIF([APRegister.Status] = 'O', 0, 1)
  • =IIF([APRegister.Status] = 'o', 0, 1)
  • =IIF([APRegister.Status] = 1, 0, 1)

I’ve also confirmed that my conditions are limited to open and closed invoices, yet the formula always returns the result for the else part.

Any insight on how the status field is actually stored or how to get this to work would be appreciated

 

Thanks!

Best answer by lauraj46

Hi ​@arodriguez1 ,

As ​@mblassingame35 suggests, you should use the code instead of the description.  If you have permissions to ‘Inspect Element’ you can click ‘Drop-Down Values’ find the codes.  Another way to find the codes is to add the field to your GI but instead of using the dropdown use a formula for the result: =[APInvoices.Status].

Hope this helps!

Laura

4 replies

mblassingame35
Semi-Pro II
Forum|alt.badge.img+3

These are the values for the statuses for AP Bills. 

 


mblassingame35
Semi-Pro II
Forum|alt.badge.img+3

If you Inspect the Element, you will get this box, which then provides the values in the reply I have above. 

 


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • July 16, 2025

Hi ​@arodriguez1 ,

As ​@mblassingame35 suggests, you should use the code instead of the description.  If you have permissions to ‘Inspect Element’ you can click ‘Drop-Down Values’ find the codes.  Another way to find the codes is to add the field to your GI but instead of using the dropdown use a formula for the result: =[APInvoices.Status].

Hope this helps!

Laura


  • Author
  • Freshman I
  • July 16, 2025

Beautiful! I ended up using <> ‘C’ but I will go back and refactor. Thank you!