In an automation script I have the DVE Element available via engine.FindElement method.
It is also possible to know the parent element that generated the DVE:
elementToConfigure.RawInfo.DveParentDmaId
elementToConfigure.RawInfo.DveParentElementId
But how can I know the Primary Key of the row that generated a DVE element?
I need this value so I can map it to a Function Resource (this contains the parent dma and element Id and the primary key)
Hi Mieke,
This will depend from connector to connector, depending on how the relations were built.
In general the linking should be done in the following way: in your FunctionResource object you will have the table 'LinkerTableEntries' that will map the FunctionResource 'PK' with the primary key of the table that was selected as entry point for that Function.
From that point on, you have a key in your connector, if the DVE is exported from the same table as the FunctionResource entry point then that's you key, otherwise you will have to rely on the connector relations to find the DVE (assuming that there's a relation between the two tables).
E.g.:
From the example above, for Source 1, the function resource was exported from table 1000 with the key 75edf.. From that table 1000 now you will have to continue to follow the relations until you get to the table that exported the DVE.