Coming soon: Your brand new Help Center & Community! Get a sneak-peek here

How to get ConsentSourceRow or LegalBaseRow with name?


Hi all,
So how to get ConsentSourceRow or LegalBaseRow when using name as query word? I see ConsentPurposeRow has GetFromIdxName-method, so I'm looking for similar method.

I'm doing integration with another system and I only have name for source or legal base (not id or key).

RE: How to get ConsentSourceRow or LegalBaseRow with name?

Inconsistent naming I think, look for ConsentSourceRow GetFromIdxKey(string key)
Also look at ConsentCache.
/conrad

Af: Conrad Weyns 18. aug 2018

RE: How to get ConsentSourceRow or LegalBaseRow with name?

Thanks for answer. I went to CustomSearch-route and it seems to be working nicely.

For example:

var search = new ConsentSourceRows.CustomSearch();
search.Restriction = search.TableInfo.Name.Like("%abc%");
var rows = search.ToConsentSourceRows();

Af: Mikko Tillikainen 20. aug 2018