Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

Dataverse - Error in Filtering Criteria

(0) ShareShare
ReportReport
Posted on by 225
Hi Team,
 
need to filter only users name in 'Assigen to' and only Assigned list to show and search option by request id, i worked on some formula but getting errors..
 
 
 
ClearCollect(
    colProcessData,
    Filter(
        'Assigen to',
        Assign_To_Person.Value = "Assigned" &&
        User().FullName = Value &&
        (
            !IsBlank(searchrequestid2.Text) && StartsWith(Request_ID, searchrequestid2.Text) ||
            IsBlank(searchrequestid2.Text) && Request_ID <> ""
        )
    )
)
 
Thanks
Jawahar
  • Suggested answer
    Jawaharprem Profile Picture
    Jawaharprem 225 on at
    Dataverse - Error in Filtering Criteria
    Hi,
    for filter only for name or id for dataverse, go to gallary select items and use this code its working.
     
  • Jawaharprem Profile Picture
    Jawaharprem 225 on at
    Dataverse - Error in Filtering Criteria
    Hi,
     
    Thanks for your time, the below mentioned codes ok without error but data is not shown, 
     
    Code1
    ClearCollect(colProcessData,Filter(CMD_NA_Trackers,
    Text(Assign_To_Person)="Assigned" && User().FullName && 
    ( !IsBlank(searchrequestid2.Text) && StartsWith(Request_ID,searchrequestid2.Text)
    || IsBlank(searchrequestid2.Text) && Request_ID <>"")))
    
    Code2
    ClearCollect(colProcessData, Filter(CMD_NA_Trackers,
    Text(Assign_To_Person) = "Assigned" && (!IsBlank(User().FullName) &&
    Text(Assign_To_Person) = User().FullName) && ((!IsBlank(searchrequestid2.Text)
    && StartsWith(Request_ID, searchrequestid2.Text)) || 
    (IsBlank(searchrequestid2.Text) && Request_ID <> ""))))
     
     
     
    Thanks
  • LarsDePauw Profile Picture
    LarsDePauw 7 on at
    Dataverse - Error in Filtering Criteria
    (something went wrong when submitting my post so it might show double)
     
     
    1. It is better to put the column you want to check to the leftside, so 'Value = User().FullName' instead of 'User().FullName = Value'.
    2. I optimized your searchrequestid check
    3. You first check on the value of the column 'Assign_To_Person', which means your datasource has objects, which have at least the column 'Assign_To_Person', which also are objects, which have a Value property, but after that, you check if the Value of your datasource objects is the same as the name of the logged in user, which means your datasource are only strings. Did you mean to check something like 'Assigned_Person'.Value = User().FullName' ?
     
    What is the your datastructure?
     
     
    ClearCollect(
        colProcessData,
        Filter(
            'Assigen to',
            Assign_To_Person.Value = "Assigned"
            &&
            Value = User().FullName
            &&
            If(IsBlank(searchrequestid2.Text), Request_ID <> "", StartsWith(Request_ID, searchrequestid2.Text)
            )
        )
     
    )
     
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard