When using docStrings and you want to supply a JSON object its necessary to write the following code:
let entity = JSON.parse(stepContext.docString)
While not a lot of code, it can be a common scenario and so seems too verbose. Having this as direct support will make the code simpler and easier to read:
let entity = stepContext.docStringAsEntity
The use of the term entity is in line with the table property tableAsEntity.
When using docStrings and you want to supply a JSON object its necessary to write the following code:
While not a lot of code, it can be a common scenario and so seems too verbose. Having this as direct support will make the code simpler and easier to read:
The use of the term entity is in line with the table property
tableAsEntity
.