Skip to main content
added hyperlink to NuGet package
Source Link
Albert Romkes
  • 2k
  • 2
  • 13
  • 21

HaraldsHarald 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 -PreInstall-Package Tridion.Broker.DSL -Pre

And then:

var dcps = DslQueryBuilder.CreateQuery()
                            .GetMeComponentPresentations()
                                .WithCustomMetadataValue(StringQueryEnum.Like, "New%")
                                    .SearchInSpecificMetadataField("City")
                            .Fire();

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();

Harald 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();
Source Link
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();