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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to Expand contactInformation on REST API

(1) ShareShare
ReportReport
Posted on by 4

I'm trying to get the contactInformation object on a Contact object on the REST API in BC.  with url /https:/api.businesscentral.dynamics.com/v2.0/{{Environment}}/api/v2.0/companies({{CompanyId}})/contacts?$expand=contactInformation/

This is giving this error:

{/error/:{/code/:/Application_DialogException/,/message/:/id type not specified.  CorrelationId:  3ba38e95-5c91-4169-b813-05caf38a52cb./}}Any help would be great!  TIA
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,394 Most Valuable Professional on at
    Hi
    I certainly haven't had any problems getting the contact list with this URL.
    BR
    GR
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,384 Super User 2025 Season 2 on at
    Hi,
     
    You need to choose the contact using id and then use expand.
     
    How to use $expand - https://youtu.be/i0luLg2vfgk
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    YUN ZHU Profile Picture
    96,039 Super User 2025 Season 2 on at
    Hi, This requires setting Related Id first.
     
     
    For exmple
    https://api.businesscentral.dynamics.com/v2.0/c8558e71-6ad8-4fcd-9f29-3ca165b41bbe/Sandbox241/api/v2.0/companies(938320db-e10b-ef11-9f8d-6045bdacaf36)/contacts?$expand=contactInformation($filter=relatedId eq 09acf76a-a414-ef11-9f88-000d3a50c332)
     
     
    Hope this helps.
    Thanks.
    ZHU

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,719

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 812 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 728 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans