Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : NOvVn7WG9KhLpnKbW4vD+f
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Virtual Entity - Parent/Child with Integer as Identity not working

Like (1) ShareShare
ReportReport
Posted on 23 Jul 2024 10:11:27 by 36
I have successfully created the a Virtual Table for the entity "DevOps Work Item", using a Odata V4 Data provider.
 
Now I am trying to incorporate the "Parent Work Item" concept.
The datasource structure is as following (only the relevant part):
 
[
    {
        "WorkItemId": 426,
        "ParentWorkItemId": null
    },
    {
        "WorkItemId": 427,
        "ParentWorkItemId": 426
    }
]
 
As you can see, the WorkItem ID is an integer. However, in the virtual table that ID is somehow converted to a GUID ( 426 = 1aa, 427 = 1ab)
 
 
When I try to add a LookUp field to the same table, using the external name "ParentWorkItemId" , and try to fetch the data, I get the error:
 
Type mismatch of the external attribute of type System.Nullable`1[System.Int32] expected a 'System.Nullable`1[[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' value.
 
I understand that the system receives an Integer and that it cannot match it with the GUID that it expects on the "parent". But this leaves me with the question: How can I link these parent/child, either using both the INTEGER value, or both using the GUID value? Or is there another way to get around this?
 
Best regards,
Koen

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans