To set the value of a multi entry field use setMultiEntryFieldValue(fieldname, value)
In the example below: set multientry field new_participants with values for each object in the array
(fields person_name and person_number is expected to exist as fields in the multientry field)
// Example
formsApi.setMultiEntryFieldValue(
'new_participants',
[
{"person_name": "Test Person 1", "person_number": 1234},
{"person_name": "Second Person", "person_number": 9876}
]);