Have you looked into the action framework or snippets? Alternatively, you can go the trigger route.
Thanks for your reply.I have tried with action but of no success. While creating new row am trying to copy the original contactid to another dummy field but nothing happening plz help.
It is now populating the value on page .I changed my id field to Name.
But now problem is I want to add the record from old model to new model only at once and if it is repeating then it should give error message of duplicate record like If…else condtion in Run multiple action after blocking the UI.
It can be difficult to answer these sorts of questions w/o additional information. Anything else you can share would help the community to better support you e.g. XML, snippets, screenshots, etc. ?
Rimali. If I understand you correctly - if the lookup is populated, then don’t allow the field in new model to be changed.
You can start your action sequence with a snippet that just looks for whether the lookup field in the new model has some value. If it is, then return false, which will force Action Framework into “on error actions” - where you can populate an error message.