I am using the method ShowNewObjectWindow under ICommonFunctions interface. The idea is that the popup should have the class pre-selected as I would be passing it through
prefilledPropertyValues like below
const prefilledPropertyValues = [
{
PropertyDef: 100, // Built-in property for Class
TypedValue: {
DataType: 9,
Lookup: {
Item: 14,
DisplayValue: "Meeting Minutes"
}
}
}
];
objectCreationInfo is as below
const objectCreationInfo = {
title: config.Title || "Irfan title",
metadata_card_title: config.Title || "Irfan card title",
object_type: config.ObjectTypeId,
check_in_immediately_enabled: true,
disallow_template_selection: true
};
Showing the window as below
const resultFromCreationWindow = await (MFiles as any).ShowNewObjectWindow(
config.ObjectTypeId,
objectCreationInfo,
prefilledPropertyValues,
[]
);
but it always shows where i need to select the class manually despite i have already provided the class code. I don't mind if dropdown is not shown and it is plain Pre-filled Input Text if things don't work this way a pre-selected dropdown will also help here but not that I have to select it manually.
it is always with this dropdown and looks like it didn't respect my input values as 14 as the class ID
Technically, it seems like lazily loading on click and not as something ready upfront.
Need your support in achieving it.