Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Flow Trigger Filter Expression

Posted on by 80

Hi,

I have a quick question regarding filter expression in a flow.
I would like the trigger to fire only when the statuscode is set to 'Quality Manager'.

pastedimage1613640923891v2.png

pastedimage1613641081110v3.png

What's wrong with this solution?

pastedimage1613641131191v4.png

Thanks in advance!

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Flow Trigger Filter Expression

    Change statuscode eq 200.010.002 to statuscode eq 200010002.

  • danielst Profile Picture
    danielst 80 on at
    RE: Flow Trigger Filter Expression

    Thank you!

    The value in 'Modify List Value' is grayed out and cannot be changed for me.

    But the Value is 200.010.002.

    Now I have written:

    statuscode eq 200.010.002

    But now I get the following error message:

    Exception parsing statuscode eq 200.010.002 submitted for attribute filterexpression of callback registration. Target entity: kcrm__new_qualitycheck. Exception: Microsoft.OData.ODataException: Syntax error at position 22 in 'statuscode eq 200.010.002'.

      at Microsoft.OData.UriParser.ExpressionLexer.ValidateToken(ExpressionTokenKind t)

      at Microsoft.OData.UriParser.UriQueryExpressionParser.ParseExpressionText(String expressionText)

      at Microsoft.OData.UriParser.ODataQueryOptionParser.ParseFilterImplementation(String filter, ODataUriParserConfiguration configuration, ODataPathInfo odataPathInfo)

      at Microsoft.OData.UriParser.ODataQueryOptionParser.ParseFilter()

      at System.Web.OData.Query.FilterQueryOption.get_FilterClause()

      at System.Web.OData.Query.FilterQueryOption.ApplyTo(IQueryable query, ODataQuerySettings querySettings)

      at System.Web.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)

      at System.Web.OData.Query.ODataQueryOptions`1.ApplyTo(IQueryable query)

      at Microsoft.Crm.ObjectModel.EdmModelEvaluator.EvaluateFilterExpression(String filterExpression, ODataQueryOptions queryOptions)

      at Microsoft.Crm.ObjectModel.EdmModelEvaluator.EvaluateFilterExpression(String filterExpression)

      at Microsoft.Crm.ObjectModel.CallbackRegistrationService.<>c.<.cctor>b__34_0(EdmModelEvaluator evaluator, String testValue)

      at Microsoft.Crm.ObjectModel.CallbackRegistrationService.ValidateInputEntity(IBusinessEntity entity, ExecutionContext context, IFeatureDetailContainer featureDetailContainer)

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Flow Trigger Filter Expression

    A little trick to easily generate a filter for power automate. You can use fetchXml Builer tool availble on XrmToolBox: 

    pastedimage1613642715021v1.png

  • Verified answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Flow Trigger Filter Expression

    Hi danielst,

    'Quality Manager' is the label of the option, it can be repeated, we need to use its value instead of label.

    We have to see the value in the classic customization.

    pastedimage1613642356867v1.png

    Take the Lead entity as an example, find its statuscode field.

    pastedimage1613642405935v2.png

    Then we can edit the option to see its value.

    pastedimage1613642441523v3.png

    Finally enter statuscode eq 1 in the flow. (No quotation marks.)

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Flow Trigger Filter Expression

    Hi danielst,

    You need to compare with the statuscode value. It will be something like: "statuscode eq 7000000"

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans