Skip to content

Commit 9b622b5

Browse files
authored
Merge pull request #104 from JanLosenicky/origin/users/jan.losenicky/ConnectorsDocumentationUpdate
Documentation to Email.Proxy and new Excel Action
2 parents 381911a + 5aeef33 commit 9b622b5

File tree

3 files changed

+482
-2
lines changed

3 files changed

+482
-2
lines changed

src/.vuepress/config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,13 @@ module.exports = config({
465465
['/en/developer-guide/integration/components/npm-packages/clientlibraries.md', 'Client Libraries'],
466466
]
467467
},
468-
['preparing-content', 'Proxy'],
468+
{
469+
title: 'Proxy',
470+
collapsable: true,
471+
children: [
472+
['/en/developer-guide/integration/components/proxy/emailproxy.md', 'Email Proxy']
473+
]
474+
},
469475
['preparing-content', 'Adapter']
470476
]
471477
},

src/en/developer-guide/integration/components/connector/excelconnector.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ author: Adel Šabić
77
# **Excel Connector**
88

99
You will find Excel connector in TALXIS.Connectors.Excel.zip solution which you can import to your environment.
10-
Connector contains two actions:
10+
Connector contains four actions:
1111
1. Create Excel From Array
1212
2. Fill Excel Repeater Template
1313
3. Fill Excel Template
14+
4. Read Excel Document
1415

1516
## Making connection
1617

@@ -60,3 +61,61 @@ This action is more advance version of previous one. You can read more in [Excel
6061
|**Name**|_Type_|Description|
6162
|---|---|---|
6263
|**Body**|_Text_| Populated excel document. |
64+
65+
## Read Excel Document
66+
67+
This excel is able to read information from the specific cells based on the json input map.
68+
69+
### Input
70+
|**Name**|_Type_|Description|
71+
|---|---|---|
72+
|**Document**|_Text_| Excel file in Base64. |
73+
|**OutputMap**|_Text_| JString with the map of cells that should be read from file |
74+
|**DateTimeBehavior**|_Number_| Same as in powerapps. 1 - UserLocal, 2 - DateOnly, 3 - Time-Zone-Independent (By default Time Zone Independent) |
75+
|**TimeZoneId**|_Text_| For UserLocal behavior it is possible to specify also TimeZoneId which should be used. (e.g. `Europe/Prague`) |
76+
77+
#### OutputMap
78+
79+
Output map is need to be escaped JString object. We are using a liquid tag to get the cell number and cell type.
80+
81+
<details>
82+
<summary>Liquid Tag example</summary>
83+
84+
```
85+
{% excel_lookupvalue sheet:0 cell:D21 type:System.String %}
86+
```
87+
88+
</details>
89+
90+
<details>
91+
<summary>Example of Escaped JString</summary>
92+
93+
```
94+
{ \"talxis_fromdate\": \"{% excel_lookupvalue sheet:0 cell:A2 type:System.DateTime %}\", \"talxis_name\": \"{% excel_lookupvalue sheet:0 cell:A1 type:System.String %}\", \"talxis_year\": {% excel_lookupvalue sheet:0 cell:A3 type:System.Double %} }
95+
```
96+
97+
> **_NOTE_**: If you put the unescaped JString in `Compose` action in cloud flow it will automaticly escape it.
98+
99+
> **_NOTE_**: See that the System.Double value is without `""` so its formated as a number in outputs.
100+
101+
</details>
102+
103+
104+
### Output
105+
|**Name**|_Type_|Description|
106+
|---|---|---|
107+
|**Body**|_json_| Json object with read cells. |
108+
109+
<details>
110+
<summary>Example</summary>
111+
112+
```
113+
{
114+
"talxis_fromdate": "2023-04-14T10:03:12Z",
115+
"talxis_name": "Hello World",
116+
"talxis_year": 2023
117+
}
118+
```
119+
120+
</details>
121+

0 commit comments

Comments
 (0)