How to call a field name dynamically in business rule

Priyanka77
Tera Guru

Hi,
My requirement is to make a field unique and populate a message in business rule dynamically.
Currently I have written the uniqueness check script in script include and calling that script in business rule.

For example: There is a field "name" and "serial number". For both uniqueness check is done in script include and if incase in a table i give existing value to name then it should populate "name is already exist" and similarly for serial number as well.
But in BR i need to populate the field names dynamically but not directly.

Can anyone please help me here.
Thank you,
Priyanka

2 REPLIES 2

Murthy Ch
Giga Sage

Hi Priyanka,

For making the fields unique you can check the Unique checkbox in dictionary level then no code is required.

What do you mean by populating fields dynamically?

Thanks,
Murthy

Thanks for your response Murthy.

For uniqueness check its not through only UI but records will be created from backend also that's why i have created a script.

For making field name dynamic means: In a form it should show "name is already exist" and for that i should not use the field name directly in the script it should be like: (fieldname+ 'already exist').