Create workout with steps using the SDK

Hi,

I am currently developing a strength training application for my Garmin watch. The application is able to record an activity using the Toybox.ActivityRecording.Session.

After running the workout with session.start(), session.stop() and session.save(), the activity is stored on my device and is uploaded to Garmin Connect.

If I create a strength training with my watch using the standard strength training app, I have a number of sets including reps, the time of the set and the time of the pause. It looks like this in Garmin Connect:

When I create an activity with my self made application, I cannot add any sets to the strength training. The method 'createFIeld(...) is not creating the correct data field in the FIT file.

By decoding the FIT file from my watch, I found the required data that is used to create the sets inside the Garmin Connect app:

[
	{...},
	{
		"frame_type": "definition_message",
		"name": "set",
		"header": {
			"local_mesg_num": 2,
			"time_offset": null,
			"is_developer_data": false
		},
		"global_mesg_num": 225,
		"endian": "<",
		"field_defs": [
			...
		],
		"dev_field_defs": [],
		"chunk": {
			"index": 13,
			"offset": 1546,
			"size": 51
		}
	},
	{...}
]

Therefore, I tried to create the data inside my application, but haven't found any way to create the data field for sets.

Does anybody know, how to add the sets to my application, so I can view the sets inside the Garmin Connect app?