Skip to content

Commit 13eaf78

Browse files
stsiekSiek
authored andcommitted
Added new action (microsoft#1983)
Co-authored-by: Siek <stephan.siek@gmail.com>
1 parent 775c869 commit 13eaf78

File tree

3 files changed

+103
-5
lines changed

3 files changed

+103
-5
lines changed

certified-connectors/Converter by Power2Apps/Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ Convert CSV data to Excel file
1717

1818
### Convert SharePoint search results to list
1919
Convert SharePoint search results to a simple list
20+
21+
### Convert file (DOCX, PPTX, XLSX, HTML, ...) to PDF
22+
Convert a document (Word, Powerpoint, Excel, ..) to a PDF-File

certified-connectors/Converter by Power2Apps/apiDefinition.swagger.json

Lines changed: 99 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
"type": "string",
164164
"default": "application/json",
165165
"x-ms-visibility": "internal",
166-
"description": "SharePoint JSON result",
166+
"description": "SharePoint Json result",
167167
"x-ms-summary": "SP result"
168168
},
169169
{
@@ -202,8 +202,8 @@
202202
}
203203
}
204204
},
205-
"summary": "Extract Word (docx) bookmarks",
206-
"description": "Extract all Word (docx) bookmarks",
205+
"summary": "Extract Word (DOCX) bookmarks to a list",
206+
"description": "Extract all Word (docx) bookmarks to a list",
207207
"operationId": "ExtractWordBookmarks",
208208
"parameters": [
209209
{
@@ -224,10 +224,105 @@
224224
],
225225
"x-ms-visibility": "important"
226226
}
227+
},
228+
"/GetFileExtensions": {
229+
"get": {
230+
"summary": "(private) Get list of domains",
231+
"produces": [
232+
"application/json"
233+
],
234+
"responses": {
235+
"200": {
236+
"schema": {
237+
"items": {
238+
"type": "object",
239+
"properties": {
240+
"name": {
241+
"type": "string"
242+
},
243+
"id": {
244+
"format": "int32",
245+
"type": "integer"
246+
}
247+
}
248+
},
249+
"type": "array"
250+
},
251+
"description": "List of file extensions"
252+
}
253+
},
254+
"x-ms-visibility": "internal",
255+
"operationId": "GetFileExtensions",
256+
"description": "Returns supported file extensions"
257+
}
258+
},
259+
"/ConvertFileToPdf": {
260+
"post": {
261+
"summary": "Convert file (DOCX, PPTX, XLSX, HTML, ...) to PDF",
262+
"responses": {
263+
"200": {
264+
"description": "OK",
265+
"schema": {
266+
"type": "object"
267+
}
268+
}
269+
},
270+
"parameters": [
271+
{
272+
"$ref": "#/parameters/fileType"
273+
},
274+
{
275+
"$ref": "#/parameters/fileName"
276+
},
277+
{
278+
"name": "File",
279+
"in": "body",
280+
"required": true,
281+
"schema": {
282+
"type": "object",
283+
"properties": {
284+
"File": {
285+
"type": "string",
286+
"format": "byte",
287+
"description": "Insert file content"
288+
}
289+
}
290+
},
291+
"x-ms-visibility": "important"
292+
}
293+
],
294+
"operationId": "ConvertFileToPdf",
295+
"description": "Convert a document (Word, Powerpoint, Excel, ..) to a PDF-File",
296+
"x-ms-visibility": "important"
297+
}
227298
}
228299
},
229300
"definitions": {},
230-
"parameters": {},
301+
"parameters": {
302+
"fileName": {
303+
"x-ms-summary": "File name",
304+
"required": false,
305+
"in": "header",
306+
"name": "FileName",
307+
"description": "Use only if 'Extract from File name' is selected in File extension",
308+
"x-ms-visibility": "important",
309+
"type": "string"
310+
},
311+
"fileType": {
312+
"x-ms-summary": "File extension",
313+
"x-ms-dynamic-values": {
314+
"operationId": "GetFileExtensions",
315+
"value-path": "name",
316+
"value-title": "name"
317+
},
318+
"required": true,
319+
"in": "header",
320+
"name": "FileExtension",
321+
"description": "Select file extension",
322+
"x-ms-visibility": "important",
323+
"type": "string"
324+
}
325+
},
231326
"responses": {},
232327
"securityDefinitions": {
233328
"API-Schlüssel": {

certified-connectors/Converter by Power2Apps/apiProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"uiDefinition": {
77
"displayName": "API Key",
88
"description": "Get your API Key on https://power2apps.de/apikey",
9-
"tooltip": "Provide your API Key",
9+
"tooltip": "Get your API Key on https://power2apps.de/apikey",
1010
"constraints": {
1111
"tabIndex": 2,
1212
"clearText": false,

0 commit comments

Comments
 (0)