Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

Posted on by 2,203 Super User 2024 Season 1

Hi, everyone

I am trying to create a web service for the 'G/L Balance/Budget' page 422 in Business Central, but I am having trouble filtering by fields that are not part of the underlying table for that page.

43000.png

I have tried using the filters that are part of the G/L table
63108.png

Same thing I cannot do for the PeriodType
57.png

they only work for the fields that exist in the table. Is there a way to filter by fields that are added to the page but not part of the table? Any suggestions or guidance would be greatly appreciated!

  • RE: How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

    YOU HAVE TO CREATE NEW FIELDS USING TABLE EXTENSIONS THEN FILTER WITH IT

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

    You need to add data first on newly created field, and then you can use this field as a filter in your API url

  • Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

    Thank you for your suggestion, Nitin Verma. Can you please clarify how to use my field to filter data on the G/L Balance/Budget page? Thank you again.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

    Unfortunately it will no work, you have create a field using Table extension, and use that in filter the data.

  • Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

    Thanks, Nitin Verma.

    I understand that the filters will only work for the fields that are part of the table, but in my case, I need to filter by fields that are added to the page but not part of the table. My requirement is to create a flow in Power Automate to pass the necessary parameters to that page and get the filtered data in response, which I have to email to someone. Do you have any suggestions or guidance for me?
    Regards

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to filter when creating web service for G/L Balance/Budget page (422) in Business Central?

    Hi,

    If the fields are not in table only in page, and then It will not filter the data, if the fields already available in the Table, you can try with option's index value if its not working with option's text value.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans