You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 45
Next »
How-to Update API Custom Connectors
How-to update API custom connectors
PowerApps custom connectors only work with Swagger version 2 definitions.
Go to the ACC environment of the API and copy the swagger.json text.
Open the APSD-PAPS repo and find the appropriate JSON file.
Paste the json from step 1 into the file.
Revert any changes made to the following properties, but update the version in the description if it has changed. The title needs to stay the same as this is used inside the Canvas app code. Host and basePath are set to environment variables so that the connectors don’t need to be updated during each deployment.
"swagger": "2.0",
"info": {
"title": "MTAPI",
"description": "MTOA Web Service APIs (v3.1.2.479)",
"version": "v1"
},
"host": "@environmentVariables(\"ap_TCExternal_Host\")",
"basePath": "/@environmentVariables(\"ap_MTAPI_BasePath\")"
Open the Power Apps studio (ap-dev-tcd365 env) and go to the Custom Connectors.
For the connector you want to update, click on ...
→ Update from OpenAPI file
.
Click Import
and select the correct file, then click Continue
.
You will be brought to the connector details screen, click Update connector
.
Go into the APSD-PAPS Canvas app editor.
Click on the Data
tab -> ...
beside the connector you've updated -> Remove
.
Click Add data
and re-add the custom connector.
Save the canvas app.
Notes
When are API calls made in the Canvas App?
0 Comments