Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

SYNC HELPER - Cloud Flows fails when processing flow IDs from Power Automate API because they lack hyphens (1a13663fde2d4a0fa1159b4b8c7c4d69), but Dataverse OData queries expect standard GUID format (1a13663f-de2d-4a0f-a115-9b4b8c7c4d69).

Changes

  • Added Format_Flow_GUID action at Inventory_this_flow scope that normalizes GUIDs to standard format if hyphens are missing

    @if(contains(triggerBody()['text_2'], '-'), 
      triggerBody()['text_2'],
      concat(
        substring(triggerBody()['text_2'], 0, 8), '-',
        substring(triggerBody()['text_2'], 8, 4), '-',
        substring(triggerBody()['text_2'], 12, 4), '-',
        substring(triggerBody()['text_2'], 16, 4), '-',
        substring(triggerBody()['text_2'], 20, 12)
      )
    )
    
  • Updated 5 Dataverse actions to use @outputs('Format_Flow_GUID') instead of @triggerBody()['text_2'] for recordId parameters:

    • See_if_flow_exists_to_mark_deleted
    • Flow_existed_so_mark_deleted
    • Get_Flow_from_Inventory
    • Upsert_Flow_record_(creator_not_found)
    • Upsert_Flow_record
  • Documentation: Added fix guide and updated troubleshooting documentation

Compatibility

Backward compatible - handles both hyphenated and non-hyphenated GUIDs. No changes required to calling flows or existing data.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] SYNC HELPER - Cloud Flows</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 flow 'SYNC HELPER - Cloud Flows' getting failed frequently when working with ID's it expecting the input as GUID. The error is as follows 'Action 'Get_Flow_from_Inventory' failed. ')' or ',' expected at position 2 in '(1a13663fde2d4a0fa1159b4b8c7c4d69)'.'

Core Component
Version 4.50.6

Image

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.50.6

What app or flow are you having the issue with?

SYNC HELPER - Cloud Flows

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Analyze why The flow 'SYNC HELPER - Cloud Flows' getting failed frequently when working with ID's it expecting the input as GUID. The error is as follows 'Action 'Get_Flow_from_Inventory' failed. ')' or ',' expected at position 2 in '(1a13663fde2d4a0fa1159b4b8c7c4d69)'.'

and troubleshoot the issue and provide the solution 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 and the team’s SharePoint notes first, then mine prior GitHub issues and the CoE Common Responses playbook.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 29, 2026 12:19
…t hyphens

Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix bug in SYNC HELPER - Cloud Flows due to GUID input Fix GUID format mismatch in SYNC HELPER - Cloud Flows Jan 29, 2026
Copilot AI requested a review from AmarSaiRam January 29, 2026 12:22
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] SYNC HELPER - Cloud Flows

2 participants