I’m using your first method, and method returns what looks like a well populated dictionary item, but the issue may be with how I’m saving it to the content node which is:-
coursePage.Properties["modules"]?.SetValue(await GetModules(courseRows, "Module"));
Before doing the normal saveAndPublish().
I mean, is it legal to “await” the execution of a method while doing the SetValue(…)?
After looking at the Repeatable TextStrings docs, I also tried:-
Vokseverk.KeyValuePropertyConverter.KeyAndValue newModule =
new Vokseverk.KeyValuePropertyConverter.KeyAndValue(moduleTitle, moduleDescription);
foundModules.Add(newModule);
string? foundModulesString = string.Join(Environment.NewLine, foundModules);
return Task.FromResult(foundModulesString);
But that didn’t work either