Skip to main content

Notifications

Dynamics 365 general forum
Suggested answer

Can I filter contacts with phone number on URL?

Posted on by 50
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I filter contacts with phone number on URL?

    Hi Efnan,

    If you want to open the contact form through URL, you need get the guid of the contact.

    Based on the URL contains phone number, you can get some details about the contact, include contact id.

    pastedimage1659345600767v1.png

    Then you need use the following url to open the contact form:

    https://xxx.crm.dynamics.com/main.aspx?appid=APPID&pagetype=entityrecord&etn=contact&id=33b5b3f2-56e2-ec11-bb3d-0022480c5f41

  • Efnan Profile Picture
    Efnan 50 on at
    RE: Can I filter contacts with phone number on URL?

    Thank you Leah.

    Your answer is informative for me but not enough. Maybe I couldn't understand exactly you.

    I can reach the contact id with your solution but I need a URL contains phone number parameter and that open the contact form.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I filter contacts with phone number on URL?

    Hi Efnan,

    First, find the Web Api URL. You can get this by going to your org and going to Settings->Customizations->Developer Resources. It is under Service Root URL:

    pastedimage1659090145179v3.png

    Then you can refer the following url:

    https://xxx.crm.dynamics.com/api/data/v9.2/contacts?$select=fullname&$filter=mobilephone eq '05456667788'

    pastedimage1659089891581v1.png

    using logic name of your phone field:

    pastedimage1659090090601v2.png

    And you can reger following links for more details:

    Dynamics 365 Web API Retrieve, Select, Filter, Order By and Top - Carl de Souza

    Query data using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Docs

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans