Skip to content

Commit 67f7f9c

Browse files
committed
2 parents 408178d + a9bf0db commit 67f7f9c

File tree

2 files changed

+79
-10
lines changed

2 files changed

+79
-10
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Tuong Doan
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# 🚀 HTTP Button PCF
22

3-
A Power Apps custom component (PCF) that allows you to send HTTP requests from your app without upgrading it to a Premium license. Lightweight, flexible, and fully configurable
3+
A Power Apps custom component (PCF) that allows you to send HTTP requests from your app locally
4+
5+
---
6+
7+
8+
# ⚠️ Important Notice on Security and DLP
9+
10+
This component executes HTTP requests directly in the user’s browser, which means it does not comply with Power Platform Data Loss Prevention (DLP) policies.
11+
12+
Although using this component does not make your app premium, you are still expected to have a premium license, as it enables functionality similar to HTTP actions by making calls locally from the front end.
13+
14+
➡️ Please use this component at your own risk, especially in environments with strict governance, security, or compliance requirements.
15+
16+
I recommend using it only with trusted APIs and avoiding sensitive or confidential data in ungoverned environments.
417

518
---
619

@@ -11,26 +24,61 @@ A Power Apps custom component (PCF) that allows you to send HTTP requests from y
1124
- Font size, color, and weight
1225
- Border and background styles
1326
- Button text and behavior
14-
- No need to convert your app to Premium
1527
- Built with React + Fluent UI
1628

17-
29+
<img width="1470" alt="Screenshot 2025-07-04 at 12 07 31 PM" src="https://github.com/user-attachments/assets/536be601-d57a-4904-84b6-5c79f283afa4" />
1830

1931

2032
## 📦 Download
2133

2234
You can download the latest managed solution here:
2335

24-
➡️ [Download HttpButton_Unmanaged.zip](https://github.com/TuongDoan/http-button-pcf/releases/download/v1.0.0/HttpButton-Unmanaged.zip)
25-
26-
Import this into your Power Platform environment via the **Solutions** area in Power Apps.
36+
➡️ [Download HttpButton_Managed.zip](https://github.com/TuongDoan/http-button-pcf/releases/download/v1.0.1/HttpButton_Managed.zip)
2737

2838
---
2939

30-
## ⚠️ Important Notice on Security and DLP
40+
## 🛠️ Input Properties
41+
42+
| display-name-key | Description |
43+
|----------------------------|-------------------------------------------------------------------------------------------------|
44+
| 🔤 **Text** | Text displayed on the button (e.g. “Send Request”). |
45+
| 🌐 **Target endpoint** | HTTPS URL of the REST endpoint to call (must begin with `https://`). |
46+
| 📨 **Method** | HTTP method: POST, GET, PUT, PATCH or DELETE. |
47+
| 📦 **JSON payload** | JSON payload string (required for POST/PUT/PATCH). |
48+
| 🔑 **Authentication Type** | Authentication type: None, Basic or API Key. |
49+
| 👤 **Basic Auth Username** | Username for Basic auth (if **Authentication Type** = Basic). |
50+
| 🔒 **Basic Auth Password** | Password for Basic auth (if **Authentication Type** = Basic). |
51+
| 🏷️ **API Key Header Name** | Header name for API Key (if **Authentication Type** = API Key). |
52+
| 🗝️ **API Key Value** | API Key value (if **Authentication Type** = API Key). |
53+
| 🎨 **FontName** | Font family for button text (e.g. “Segoe UI”). |
54+
| 🎨 **FontSize** | Font size in pixels (e.g. `10.5`). |
55+
| 🎨 **FontColor** | Color of the text when enabled. |
56+
| 🎨 **FontWeight** | Text weight: normal, bold, bolder, lighter. |
57+
| 🎨 **DisabledFontColor** | Color of the text when disabled. |
58+
| 🎨 **DisabledFillColor** | Background color when disabled. |
59+
| 🎨 **BorderColor** | Button border color. |
60+
| 🎨 **BorderThickness** | Border thickness in pixels. |
61+
| 🎨 **BorderRadius** | Border corner radius in pixels. |
62+
63+
64+
> 📌 **Note:** POST requests require a valid JSON payload.
65+
66+
67+
## 📤 Output Properties
68+
69+
| display-name-key | Description |
70+
|------------------|--------------------------------------------------------|
71+
| 📊 **Responses** | JSON string with `statusCode` and `body` of the HTTP response. |
72+
73+
74+
📊 **Read the Response**
75+
- The control outputs a JSON string in the **Responses** field, for example:
76+
```json
77+
{
78+
"statusCode": 200,
79+
"body": "{ \"success\": true }"
80+
}
81+
```
3182

32-
This component executes HTTP requests **directly in the user's browser**, so you should be aware that **it does not follow Power Platform Data Loss Prevention (DLP) policies**.
3383

34-
➡️ Please use this component **at your own risk**, especially in environments with strict governance, security, or compliance requirements.
3584

36-
We recommend using this only with **trusted APIs** and avoiding the use of sensitive or confidential data in ungoverned environments.

0 commit comments

Comments
 (0)