Skip to main content
1 of 2
Albert Romkes
  • 2k
  • 2
  • 13
  • 21

Haralds answers your question. I just want to throw another option in: you could use a NuGet package for this: (Warning: it's beta and it's written by me)

Install it: Install-Package Tridion.Broker.DSL -Pre

And then:

var dcps = DslQueryBuilder.CreateQuery()
                            .GetMeComponentPresentations()
                                .WithCustomMetadataValue(StringQueryEnum.Like, "New%")
                                    .SearchInSpecificMetadataField("City")
                            .Fire();
Albert Romkes
  • 2k
  • 2
  • 13
  • 21