Forum Discussion

LPAN012345's avatar
LPAN012345
Frequent Visitor
1 year ago
Solved

Posting to a REST API from a Custom Visual using TypeScript

Hi,   I've read that you can create custom visuals with a button that will POST to a rest API.  I want to use this to update our database via a REST API from our Power BI Report in our Embedded wor...
  • LPAN012345's avatar
    1 year ago

    Hi,

     

    Thanks for the advice/help.  I did have most of that in place, but not all of it.  


    I do now have it working, and the two main things causing the issues were not using HTTPS and also not realising you have to amend the "Capabilites.json" file to include your REST API URL in the privileges section, as shown below.

    "privileges": [
    {
    "name": "WebAccess",
    "essential": true,
    "parameters": [
    "https://leetest.free.beeceptor.com",
    ]
    }
    ]