Hello,
I'm completely new to Dynamics and Web API.
We have several custom entities. I can for example check company_contract :
GET [Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='company_contract')?
I created a userquery via advanced view on that entity.
I found this documentation how to call userqueries:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/retrieve-and-execute-predefined-queries
But It seems like it is only working with predefined entities.
Is there a possibility to call a userquery that is based on an custom entity?
Thanks for your help in advance
What you see is Id of your record. Label should be there as well and placed under the field with name
_bwi_steuerungdurch_a_value@OData.Community.Display.V1.FormattedValue so something like following:
"_bwi_steuerungdurch_a_value@OData.Community.Display.V1.FormattedValue": "Engagement Mgr."
Now I have another issue.....
In the reply there are not the actual values that I can see in the userquery in the portal.
There are some kind of ID or Hash value instead.
Is there a possibility to lookup the correct values?
e.g.
[...]
"_bwi_steuerungdurch_a_value":"adca4f46-2ddc-e811-8428-00505681ec7a",[....]
In the userquery in Dynamics there is a link with the name "Engagement Mgr."
If my reply helped you take a minute and click "Yes" near "Did this answer your question" message.
Yes your are right, now it worked.
The error was I used company_contract in the URL but it should be company_contracts.
Hello,
That should work fine for all entities. Can you may be share the code that you use that is non-worky?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156