Hi @NigelW61 This is not possible. You need to have 2 technical profiles and use a precondition on the orchestration step to indicate which technical profile will get used.
To minimise XML code, the 2nd technical profile only needs to include the new Id of the technical profile, and the metadata item, and then use the IncludeTechnicalProfile to include the original technical profile.
You can see an example of this in how we include AAD-Common technical profile in all Azure AD technical profiles.
It would look like this
<TechnicalProfile Id="modifiedPhoneFactor">
<Metadata>
<Item Key="setting.authenticationMode">sms</Item>
</Metadata>
<IncludeTechnicalProfile ReferenceId="PhoneFactor-InputOrVerify" />
</TechnicalProfile>
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.