static void ListElementsInModel(Args _args)
{
SysModelElement sysModelElement;
SysModelElementData sysModelElementData;
UtilElementType elementType = UtilElementType::SharedProject;
ModelRecId modelIdFrom = 1662; // ModelId source, SysModelStore::getModelId("ModelName", "ModelPublisher")
while select sysModelElement
where sysModelElement.ElementType == elementType
&& !(sysModelElement.Name like "*VK*")
join sysModelElementData
where sysModelElementData.ModelElement == sysModelElement.RecId
&&sysModelElementData.ModelId == modelIdFrom
{
info(sysModelElement.Name);
}
}
Support The Author
If you found value in what I share, I've set up a Buy Me a Coffee page as a way to show your support.
No comments. Be the first one to comment on this post.
DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics 365 FO.
Authors are allowed to set their own "buy me a coffee" link.
Join us.