Skip to content

Use AI model ownerid (not createdby) when syncing Ai Creator in AiBuilderModels inventory#10920

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-ai-model-owner-update
Draft

Use AI model ownerid (not createdby) when syncing Ai Creator in AiBuilderModels inventory#10920
Copilot wants to merge 2 commits intomainfrom
copilot/fix-ai-model-owner-update

Conversation

Copy link
Contributor

Copilot AI commented Mar 2, 2026

AiBuilderModels records could retain a stale derived owner name after ownership transfers because the AI Models sync flow resolved maker identity from the model creator, not the current owner. This updates the owner resolution path so existing models reflect reassignment correctly on subsequent sync runs.

  • Problem summary

    • In Core 4.50.8, Ai Creator / derived owner display in admin_aibuildermodel did not update for reassigned AI models.
    • Records continued to show the historical creator name instead of the current owner.
  • Change made

    • Flow updated: AdminSyncTemplatev4AiModels-E5601A14-5494-EE11-BE37-000D3A3411D9.json
    • Owner lookup source corrected in Get_Owner:
      • from msdyn_aimodel._createdby_value
      • to msdyn_aimodel._ownerid_value
    • This ensures maker resolution and admin_aicreatordisplayname upsert track current ownership.
  • Why this addresses the issue

    • Ownership transfers mutate ownerid, not createdby.
    • By resolving owner from ownerid, the sync flow aligns Ai Creator with actual current ownership during inventory refresh.
"entityName": "systemusers",
"recordId": "@outputs('Get_actual_object')?['body/_ownerid_value']"

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1022525/chrome-linux.zip
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node install.js (http block)
  • learn.microsoft.com
    • Triggering command: /usr/bin/curl curl -L --max-time 20 REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] AiBuilderModels (Dataverse table) is not updating the Derived Owner name for the existing AI model.</issue_title>
<issue_description>### Does this bug already exist in our backlog?

  • I have checked and confirm this is a new bug.

Describe the issue

The AiBuilderModel (Dataverse table) is not updating the Derived Owner name for the AI model.

As shown in the referenced image, for the first three selected AI models, the owner name is still displaying the previous owner. However, the ownership was updated to a new owner in November 2025, and this change is not being reflected in the Dataverse table.

Image

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.50.8

What app or flow are you having the issue with?

AiBuilderModels Dataverse Table

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Please check what could be the possible reasons for this issue</agent_instructions>

Comments on the Issue (you are @copilot in this section)

Custom agent used: CoE Custom Agent
Specialized agent for triaging and fixing issues in the CoE Starter Kit. Always consult the official CoE docs first, then mine prior GitHub issues and the CoE Common Responses playbook.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix AiBuilderModels ownership update issue in Dataverse table Use AI model ownerid (not createdby) when syncing Ai Creator in AiBuilderModels inventory Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - BUG] AiBuilderModels (Dataverse table) is not updating the Derived Owner name for the existing AI model.

2 participants