I’m trying to select the SdkMessageProcessingStepId attribute based on values of SdkMessageProcessingStepImageId, see xml below, but I’m struggling.
<SdkMessageProcessingStep Name="Plugins.OnPreCreateUpdateCar: Update of new_car" SdkMessageProcessingStepId="{00c19595-76fd-e111-9528-005056af005a}">
<PluginTypeName>Plugins.OnPreCreateUpdateCar, Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f59c17e3653dba0</PluginTypeName>
<PrimaryEntity>new_car</PrimaryEntity>
<AsyncAutoDelete>0</AsyncAutoDelete>
<InvocationSource>1</InvocationSource>
<Mode>0</Mode>
<Rank>1</Rank>
<SdkMessageId>{20bebb1b-ea3e-db11-86a7-000a3a5473e8}</SdkMessageId>
<EventHandlerTypeCode>4602</EventHandlerTypeCode>
<Stage>20</Stage>
<IsCustomizable>1</IsCustomizable>
<IsHidden>0</IsHidden>
<SupportedDeployment>0</SupportedDeployment>
<SdkMessageProcessingStepImages>
<SdkMessageProcessingStepImage Name="PreImageCar">
<SdkMessageProcessingStepImageId>{e3c5bcb1-76fd-e111-9528-005056af005a}</SdkMessageProcessingStepImageId>
<EntityAlias>PreImageCar</EntityAlias>
<ImageType>0</ImageType>
<MessagePropertyName>Target</MessagePropertyName>
<IsCustomizable>1</IsCustomizable>
</SdkMessageProcessingStepImage>
</SdkMessageProcessingStepImages>
</SdkMessageProcessingStep>
I’ve tried various things, e.g. two queries, joins but nothing seems to work. In the end I chose a completely different solution, but it would be handy to know how to do this in one query.
TIA
I’m not sure what you’re trying to achieve. But maybe this will help:
result: