I am working with the Dynamics 365 Web API and using the following query:
/api/data/v9.0/annotations?$expand=createdby($select=domainname,msdyn_usertype),objectid_calendar($select=name),objectid_goal($select=title),objectid_workflow($select=name),objectid_opportunity($select=name),objectid_sla($select=name),objectid_appointment($select=subject,subcategory),objectid_socialactivity($select=subject),objectid_task($select=subject),objectid_contact($select=fullname),objectid_letter($select=subject),objectid_knowledgebaserecord($select=title),objectid_incident($select=title),objectid_account($select=name),objectid_knowledgearticle($select=title)&$filter=modifiedon gt <timestamp> and modifiedon lt <timestamp>
This query works fine in one customer environment but fails in another one. The error occurs for attribute msdyn_usertype in the second environment.
My Questions
-
Is
msdyn_usertypea standard attribute or only available on few entities. -
What is the recommended way to handle queries across environments where this attribute may or may not exist?
-
How can we enable or add this attribute in environments where it is missing?
-
What steps are needed to ensure the related entities (
objectid_account,objectid_contact,objectid_incident, etc.) are enabled and accessible for$expandqueries?
Any guidance on whether this is a day‑0 schema difference or if there has been a recent Microsoft change, and confirmation of the correct enablement steps, would be very helpful.
Thanks in advance!

Report
All responses (
Answers (