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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / using websiteurl in fi...
Power Automate
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

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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.

  • fiorine Profile Picture
    on at

    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

  • JohnAageAnderse Profile Picture
    1,986 on at

    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

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard