I did try understand how I can implement, this important resource in coreBOS.
I try created 4 business map in demo online, at leads module
1) Checked a pick list not use a default value
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>leadsource</fieldname>
<validations>
<validation>
<rule>notIn</rule>
<restrictions>
<restriction>--None--</restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
2) Checked a phone number is only numeric
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>phone</fieldname>
<validations>
<validation>
<rule>numeric</rule>
<restrictions>
<restriction></restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
3) Checked a new date field, is after a date of modified
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>cf_846</fieldname>
<validations>
<validation>
<rule>dateAfter</rule>
<restrictions>
<restriction>{{modifiedtime}}</restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
4) Checked is a new custom field, not duplicated in data base
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>cf_847</fieldname>
<validations>
<validation>
<rule>notDuplicate</rule>
<restrictions>
<restriction></restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
But not working.
I did try read documentation again, and duplicated a demo business map, but not successful.
What I do wrong?
I try created 4 business map in demo online, at leads module
1) Checked a pick list not use a default value
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>leadsource</fieldname>
<validations>
<validation>
<rule>notIn</rule>
<restrictions>
<restriction>--None--</restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
2) Checked a phone number is only numeric
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>phone</fieldname>
<validations>
<validation>
<rule>numeric</rule>
<restrictions>
<restriction></restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
3) Checked a new date field, is after a date of modified
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>cf_846</fieldname>
<validations>
<validation>
<rule>dateAfter</rule>
<restrictions>
<restriction>{{modifiedtime}}</restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
4) Checked is a new custom field, not duplicated in data base
<map>
<originmodule>
<originname>leads</originname>
</originmodule>
<fields>
<field>
<fieldname>cf_847</fieldname>
<validations>
<validation>
<rule>notDuplicate</rule>
<restrictions>
<restriction></restriction>
</restrictions>
</validation>
</validations>
</field>
</map>
But not working.
I did try read documentation again, and duplicated a demo business map, but not successful.
What I do wrong?
Ranieri
eCRM Web
eCRM Web