sorengranfeldt/mare

Concatenate multiple single-value attributes to a multi-value attribut

ruliane opened this issue · 3 comments

Hi,
In a import flow rule, is there a way to merge values from multiple attributes, into a single multi-value attribute?
I tried something like the following, but source attributes are concatenated into a single string.

<FlowRule Name="MyFlowRule" Direction="Import" xsi:type="FlowRule">
  <SourceExpression>
    <Source xsi:type="Attribute" Name="mailAddr1" />
    <Source xsi:type="Attribute" Name="mailAddr2" />
    <Source xsi:type="Attribute" Name="mailAddr3" />
  </SourceExpression>
  <Target Name="mailAddresses" ActionOnNullSource="None" />
</FlowRule>

Or should I specify somewhere that mailAddresses is a multi-valued attribute?

Unfortunately not. You'll have to go to code for that. MARE has the option to load your extension DLL for complex rules.

Update: We are currently working on implementing this feature.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.