web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How To Filter data source based on array field

(0) ShareShare
ReportReport
Posted on by

Hi all,

I am working on the Electronic Submission Log form, and I would like to filter the data source based on the InvoiceDate field from the BusinessDocumentSubmission data source.

The challenge is that this field is stored as the second element in the array field KeyDataValues.

 
 
When I try to apply a filter using the qbds.addRange() method, I receive a syntax error if I attempt to access the array element using standard index brackets.
 

The question:
How can I properly filter the data source on a specific element of an array field (in this case, the second element of KeyDataValues) using qbds.addRange()?
Categories:
I have the same question (0)
  • Verified answer
    Sohaib Cheema Profile Picture
    47,878 User Group Leader on at
    How To Filter data source based on array field
     
    Please use fieldId2Ext
     
    qbds.addRange(fieldId2Ext(fieldNum(BusinessDocumentSubmission, KeyDataValues), 2)) .value(strFmt(">= %1", fromDate));
     
    Here is an old thread
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 823 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 673 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 491 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans