phone - dataPolicy | Community
Skip to main content
Milan_Vucetic
New Participant
August 28, 2019
Solved

phone - dataPolicy

  • August 28, 2019
  • 12 replies
  • 11592 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
New Participant
August 29, 2019

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

DavidKangni
New Participant
August 29, 2019

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

David Kangni