Skip to main content

Notifications

Power Automate - Using Flows
Answered

using websiteurl in filter query

(0) ShareShare
ReportReport
Posted on by

A client of mine is looking to update their contacts with the account name where the website on the contact equals the website on the account. Seems pretty simple, however, when try list account records with a filter query where the website eq {contact.websiteurl}

 


I am getting errors

I have tried making it an expression, but still getting an error.

"status"400,
  "message""')' or ',' expected at position 42 in 'contains(websiteurl,items('Apply_to_each')['websiteurl'])'.",
  "error": {
    "message""')' or ',' expected at position 42 in 'contains(websiteurl,items('Apply_to_each')['websiteurl'])'."
 


Anyone see what I'm doing wrong?
Glen

  • Verified answer
    Re: using websiteurl in filter query

    Hi @fiorine ,

     

    Expression in the Filter Query:

    websiteurl eq '@{triggerBody()?['websiteurl']}'

    Please refer to screenshot below:

    1.png

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • JohnAageAnderse Profile Picture
    JohnAageAnderse 1,986 on at
    Re: using websiteurl in filter query

    Hello @fiorine 

    In your Filter query field - you have a bracket ")" after your field, remove it.

    If the field that you are adding is not a number, then enclose it in single quotes, like '<your field>'.

    Kind regards, John

  • fiorine Profile Picture
    fiorine on at
    Re: using websiteurl in filter query

    Hi Alice,

    The workflow is pretty simple.

    I do a list records of contacts from CDS connection where the contact name is not null

    Then I want to do this list records against the accounts and pull records where the websiteurl would be the websiteurl from the first list of contacts.  This is the step that I can't get correct.

    The next step would be to update the contact with the account name of the account found for that website.

     

    One example of the the websiteurl is : http://www.theprivatebank.com

     

    2020-04-08_13-41-33.jpg

    Let me know if you need more information.

    Thanks,

    Glenn

  • Re: using websiteurl in filter query

    Hi @fiorine ,

     

    Could you please share a screenshot of the configuration of your flow?

    Would you please share an example of the websiteurl?

     

    Please share more details so we could better understand the issue and provide the proper workaround for you.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics

Restore a deleted flow