@@ -7,10 +7,11 @@ author: Adel Šabić
7
7
# ** Excel Connector**
8
8
9
9
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:
11
11
1 . Create Excel From Array
12
12
2 . Fill Excel Repeater Template
13
13
3 . Fill Excel Template
14
+ 4 . Read Excel Document
14
15
15
16
## Making connection
16
17
@@ -60,3 +61,61 @@ This action is more advance version of previous one. You can read more in [Excel
60
61
| ** Name** | _ Type_ | Description|
61
62
| ---| ---| ---|
62
63
| ** 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