I’ve imported events with the api (post on /api/events) with “pre assigned uid” in the “event” field
It’s a technique that worked great on my previous tracker import (the events gets updated and not duplicated)
But here it’s a “simple program” without registration.
It’s super strange, it seems that I managed to create 2 events with the same uuid
now this api call : /api/events?fields=event&program=c9j4wleJAcU
returns
{
"pager": {
"page": 1,
"pageSize": 50,
"isLastPage": false
},
"events": [
{
"event": "NNsTgSQHnfw",
"created": "2023-09-29T00:00:00.000"
},
{
"event": "NNsTgSQHnfw",
"created": "2023-09-29T00:00:00.000"
},
when looking in the program_stage_instance it looks unique…
in the things I noticed, I have a note…
{
"event": "NNsTgSQHnfw",
"created": "2023-09-29T00:00:00.000",
"notes": [
{
"lastUpdated": "2023-09-29T00:00:00.000",
"note": "rL5Wm24NP4a",
"storedDate": "2023-09-29T00:00:00.000",
"storedBy": "s_mestach",
"value": "imported "
}
]
},
{
"event": "NNsTgSQHnfw",
"created": "2023-09-29T00:00:00.000",
"notes": [
{
"lastUpdated": "2023-09-29T00:00:00.000",
"note": "CMXnuLQ5yPU",
"storedDate": "2023-09-29T00:00:00.000",
"storedBy": "s_mestach",
"value": "imported "
}
]
},
So I assume there’s a kind of “duplication” for each note instead of having an array of notes.