Skip to content

Commit 23ea462

Browse files
authored
Update grid-columns.md
1 parent a12db65 commit 23ea462

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/pages/admin-ui-sdk/extension-points/customer/grid-columns.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ It leverages API Mesh [JSON Schemas handler](https://developer.adobe.com/graphql
7777

7878
### Sample runtime action to retrieve data
7979

80-
This sample `get-customers` runtime action is referenced in the mesh configuration file. It defines the path to the runtime action to retrieve the data of custom columns.
80+
The `get-customers` sample runtime action is referenced in the mesh configuration file. It defines the path to the runtime action that retrieves the data of custom columns.
8181

82-
It is important to add the `ids={args.ids}` as part of the query and handle this filtering in the runtime action. This will allow Admin UI SDK to load only necessary data needed to display in the grid columns in the Admin Panel of the Adobe Commerce instance.
82+
It is important to add the `ids={args.ids}` as part of the query and handle this filtering in the runtime action. This allows Admin UI SDK to load only the necessary data needed to display in the grid columns in the Admin.
8383

8484
```javascript
8585
export async function main(props) {
@@ -125,7 +125,7 @@ export async function main(props) {
125125

126126
### Sample schema file
127127

128-
This sample `schema.json` file is referenced in the mesh configuration file. It defines the response of the external `customerGridColumns` query that fetches column data.
128+
The `schema.json` sample file, which is also referenced in the mesh configuration file, defines the response of the external `customerGridColumns` query that fetches column data.
129129

130130
```json
131131
{
@@ -155,9 +155,9 @@ This sample `schema.json` file is referenced in the mesh configuration file. It
155155
}
156156
```
157157

158-
### Create or Update your mesh
158+
### Create or update your mesh
159159

160-
Make sure to create or update your mesh, and to keep the mesh id provided.
160+
Use one of the following commands to create or update your mesh. Be sure to store the mesh ID provided.
161161

162162
```bash
163163
aio api-mesh:create mesh.json
@@ -169,17 +169,13 @@ aio api-mesh:update mesh.json
169169

170170
### Customer data matching
171171

172-
#### Id matching
172+
The Admin UI SDK expects the customer ID in Adobe Commerce to correctly match the customer to the data and fill the correct cell.
173173

174-
The Admin UI SDK expects the customer id in Adobe Commerce to correctly match the customer to the data and fill the correct cell.
174+
A default value can be provided to be added to unmatched IDs, or in case data doesn't match, the expected type of the column. If a value is not provided, the cell is left empty.
175175

176-
#### Default value
176+
In case of error, check the Adobe Commerce logs.
177177

178-
A default value can be provided to be added to unmatched ids, or in case data doesn't match the expected type of the column. If not provided, the cell is left empty.
179-
180-
In case of error, more info can be found in the Adobe Commerce logs.
181-
182-
##### Example of default value
178+
The following example provides a default value.
183179

184180
```javascript
185181
"*": {

0 commit comments

Comments
 (0)