Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataverse Connector URL encoding issues #6324

Open
CIOVirtual opened this issue Jan 2, 2025 · 1 comment
Open

Dataverse Connector URL encoding issues #6324

CIOVirtual opened this issue Jan 2, 2025 · 1 comment
Assignees

Comments

@CIOVirtual
Copy link

CIOVirtual commented Jan 2, 2025

Describe the Bug with repro steps

When using the Dataverse Connector, the URL of the Dataverse Environment is encapsulated resulting in an invalid URL, if you manually change the URL in code view removing the encapsulation, the request goes trough successfully

Example, this one fails:

"actions": {

"Update_a_row": {

"type": "ApiConnection",

"inputs": {

"host": {

"connection": {

"name": "@parameters('$connections')['commondataservice']['connectionId']"

}

},

"method": "patch",

"body": {

"statuscode": 690970000

},

"headers": {

"prefer": "return=representation,odata.include-annotations=*",

"accept": "application/json;odata.metadata=full",

"organization": "@{encodeURIComponent(encodeURIComponent('https://someurl.crm.dynamics.com'))}"

},

"path": "/api/data/v9.1/@{encodeURIComponent(encodeURIComponent('salesorders'))}(@{encodeURIComponent(encodeURIComponent(triggerBody()?['id_pedido_crm']))})"

},

"runAfter": {}

}

},

"outputs": {},

"parameters": {

"$connections": {

"type": "Object",

"defaultValue": {}

}

}

I've manually removed the encapsultation in the "organization" header

"actions": {

"Update_a_row": {

"type": "ApiConnection",

"inputs": {

"host": {

"connection": {

"name": "@parameters('$connections')['commondataservice']['connectionId']"

}

},

"method": "patch",

"headers": {

"prefer": "return=representation,odata.include-annotations=*",

"accept": "application/json;odata.metadata=full",

"organization": "https://someurl.crm.dynamics.com"

},

"path": "/api/data/v9.1/@{encodeURIComponent(encodeURIComponent('salesorders'))}(@{encodeURIComponent(encodeURIComponent(triggerBody()?['id_pedido_crm']))})"

},

"runAfter": {}

}

},

"outputs": {},

"parameters": {

"$connections": {

"type": "Object",

"defaultValue": {}

}

}

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

No

Workflow JSON

Screenshots or Videos

No response

Browser

Any browser was affected. I

Additional context

I don't know if it's the UI (encapsulting URLs) or the actual Dataverse Connector.

@Eric-B-Wu
Copy link
Contributor

Eric-B-Wu commented Jan 3, 2025

Hi @CIOVirtual, thanks for reporting this issue and it is a known issue on our partner team. We're in talks with the connector team for them to update their swagger, so this double encoding no longer happens. For mitigation please use https://portal.azure.com/?feature.canmodifystamps=true&Microsoft_Azure_EMA=stage5#home

@Eric-B-Wu Eric-B-Wu self-assigned this Jan 6, 2025
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

No branches or pull requests

2 participants