Tag: Power Apps


Microsoft Power automate, encodian Insert HTML to PDF, BadGateway 502 solution

Microsoft Power automate, encodian Insert HTML to PDF, BadGateway 502 solution
Error message and action Action ‘Insert_HTML_to_PDF’ failed
BadGateway html to pdf

  "error": {
    "code": 502,
    "source": "flow-apim-europe-001-northeurope-01.azure-apim.net",
    "clientRequestId": "7dd5f762-ee40-4c41-8541-9df5b92281d4",
    "message": "BadGateway",
    "innerError": {
      "HttpStatusCode": 500,
      "HttpStatusMessage": "An error occurred processing the request",
      "OperationId": "3626fc0e-574b-4447-a4fb-bbeef023b27a\\1",
      "Errors": [],
      "Operation Status": "Error",
      "Filename": null,
      "FileContent": null

Solution 1: Rebsumit it
If the error code 500 or 502 appears, the failure is temporary or transient. Click or tap Resubmit to try the flow again.

Solution 2: Double-check the original PDF you are try to appaend is OK first.
You can not preview the file SharePoint by the browser the “Insert HTML to PDF” process will fail.
Hmm.. Looks like this file doesn’t have a preview we can show you.

In our case the uploading document by Power apps were not decoding the final document on SharePoint

Share an app with Microsoft 365 Groups

Share an app with Microsoft 365 Groups. Ppower apps how give implicit access to sharepoint group?
Ensure you have access to the Azure AD cmdlets.

Go to Azure portal > Azure Active Directory > Groups > Select the appropriate group > Copy the Object Id.

1 Connect to Azure AD using PowerShell:

C:\system>system32> Connect-AzureAD

2- Get-AzureADGroup -ObjectId 9d046f003-93b7-4691-9935-174139c990d3 | select *

3 If the group isn’t security enabled, you can enable it using PowerShell cmdlet Set-AzureADGroup by setting the SecurityEnabled property to True:

C:\system>system32>Set-AzureADGroup -ObjectId 9d046f003-93b7-4691-9935-174139c990d3 -SecurityEnabled $True

Assign a security group in Azure AD to a role
In the sharing panel, select Assign a security role under Data permissions.

Select the Dataverse role(s) that you want to apply to the selected Azure AD user(s) or group(s):