Hi community,
just wanted to ask if there's a possibility to either create a DataSet or merge, respectively push, new records?
Use case:
I want to display the dataset and additional records from a webapi response. To do this I would have to merge the templates into the custom entity dataset but don't really know how as I cannot create a DataSet from scratch nor push new items.
I'm using react and input components to render lookups, datetime fields etc. and they're using the dataset properties. Is there a possibility to add new items to an existing DataSet? Or how would you approach this problem?
let items: ComponentFramework.PropertyHelper.DataSetApi.EntityRecord[] = this.props.checklist.sortedRecordIds.map(rec => this.props.checklist.records[rec]);
Because of EntityRecord[] functions I'm unable to push new EntityRecords too.
Thanks in advance!