Skip to main content
Solved

how to get generic inquiry formula value in BLC?

  • February 3, 2026
  • 4 replies
  • 74 views

you guys know anyway to get generic inquiry formula value? used mapping table to map fields to a gi, works for single data like AccountCD, however for formulas like =Concat([OrganizationBAccount.AcctCD],'-',[Account.AccountCD]), it returns null. is there a way to get gi values for such formulas and assign them to variables? 

Best answer by mohammadabujaffar21

using ‘((Dictionary<string, object>)row.Values["GenericResult"])[formulaKey].ToString()’ with formula key being genericinquiry.objectname_formula(genericinquiry.rowid), seems to work.

4 replies

darylbowman
Captain II
Forum|alt.badge.img+16

This question is rather unclear, but I suspect this will help you.


Forum|alt.badge.img
  • Jr Varsity III
  • February 4, 2026

@mohammadabujaffar21 You can create a sub Generic Inquiry, apply the required formula there, and then reference or bring the result into your main Generic Inquiry.


Forum|alt.badge.img
  • Varsity I
  • February 4, 2026

@mohammadabujaffar21 

I’ve had a similar experience when I needed to get a complex formula value from a Generic Inquiry.
The value was calculated using another GI and several tables.

I tried running that GI in the code and then retrieving the value of the required field from the GI result.
I reference the field using the formula itself, as it is stored in the corresponding database field.(GIResult table).

 

Regards,

Vard


using ‘((Dictionary<string, object>)row.Values["GenericResult"])[formulaKey].ToString()’ with formula key being genericinquiry.objectname_formula(genericinquiry.rowid), seems to work.