I am trying to create a new contact based on the records in another table through an action.
when I run the action the records in my table will create a new contact with the name and id mentioned , now new contact are created but data is not transfering ie the name and id is validating.
please guide me were i went wrong ,Thanks in Advance
procedure Createcontact()
var
contact: Record Contact;
radr: Record Radr;
begin
IF radr.RADRID <> 0 THEN BEGIN
radr.Get(rec.RADRID);
IF contact.FindSet() then
repeat
contact.Init();
contact.Validate(RADRID, radr.RADRID);
contact.Validate("Name 2", radr.NAME2);
contact.Insert(true);
until radr.Next = 0;
end
end;