phone - dataPolicy | Community
Skip to main content
Milan_Vucetic
Level 9
August 28, 2019
Solved

phone - dataPolicy

  • August 28, 2019
  • 12 replies
  • 11625 views

Hi all,

I managed to bypass default dataPolicy = "phone" on mobilePhone field in nms:recipient (shema nms:recipient extended and set dataPolicy = "none" ) which enables us storing mobile number as string in prefered format.

But there is a problem with insert mobile phone in Seed addresses (below) where is used  above mentioned field mobilePhone linked from nms:recipient (for which dataPolicy is already bypassed).

Regex is adding extra space and "+" character in any case and I am unable to bypass this.

I tried to extend nms:seedMember as nms:recipient but without success.

Any idea?

Regards,

Milan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DavidKangni

milanv69354962

It was missing a piece in your extension schema. Add this xml before the </srcSchema>. and rename cus to your namespace

  <element desc="Seed to insert in the export files" img="nms:unknownad.png" label="Seed addresses"

           labelSingular="Seed" name="seedMember">

    <element aggregate="cus:seedMember:common"/>

  </element>

Thanks

David

12 replies

Milan_Vucetic
Level 9
September 10, 2019

Hi,

yes, all elements are properly closed.

Folder with this id is Seed Addresses folder (/Resources/Campaign Management/Seed addresses/).

Regards,

Milan

Milan_Vucetic
Level 9
September 11, 2019

Hi David,

Issue have been resolved. You provided correct solution.

It was not worked for me initially because when extending schema the element below was added by default on the top:

<element desc="Seed to insert in the export files" img="nms:unknownad.png" label="Seed addresses"

           labelSingular="Seed" name="seedMember"/>

Therefore, I had two elements after adding additional xml code following your instructions. Now it is deleted and working properly.

Thank you very much for effort.

Regards,

Milan