Skip to content

[Bug] RetrieveAadUserRoles generated service fails — Edm.String cannot be converted to Edm.Guid #357

@stj-parmiras

Description

@stj-parmiras

Describe the bug

The generated service for the RetrieveAadUserRoles function does not work properly. When passing it a valid Aad Object ID, it throws an error. The payload in the generated service may be malformed?

Steps to Reproduce

  1. Add the function using: npx power-apps add-dataverse-api --api-name RetrieveAadUserRoles
  2. Pass it your own hardcoded Aad Object ID

Expected behavior

Should return User roles as expected.

Actual behavior

Throws the following error:
"{"error":{"code":"0x80060888","message":"Expression of type 'Edm.String' cannot be converted to type 'Edm.Guid'."}}"

Screenshots or Error Messages

Environment information

@microsoft/power-apps@1.1.3

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions