phone - dataPolicy | Community
Skip to main content
Milan_Vucetic
Level 9
Aug 28, 2019 1:00 PM UTC
Solved

phone - dataPolicy

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.
DavidKangni
DavidKangniAccepted solution
New Participant
Sep 5, 2019 2:38 PM UTC

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

David Kangni

12 replies

Milan_Vucetic
Level 9
Aug 29, 2019 6:47 AM UTC

Hi,

that does not work for me.

Constraint is always there when check field properties and I am trying to find a way to set constraint to No Value by default.

When I change manually it works, but somehow this is reseted after some time again.

I would like to solve this through schema extension to be always safe, but it does not work for some reason.


Regards,

Milan

Translate
DavidKangni
New Participant
Aug 29, 2019 12:42 AM UTC

Hi Milan,

See the default seedMember schema, it's using nms:recipient as template.You will need to extend the seedMember schema with your extended recipient as template (see screenshot below)

Thanks

David

Translate
David Kangni