Skip to main content
deleted 24 characters in body; edited tags
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

While trying to insert record into databsedatabase from recyclebinrecycle bin:

For ex: I, I have contact record in my salesforce and i have deleted that contact record, that stored in recyclebinrecycle bin.

After deleting the contact record, i have created new record in contact object (as it is deleted contact record has information like, first name, last name, email previously deleted record from contact).

iI have written a trigger for contact object, that is while inserting new contact fire error, if first name, last name, email is there.

my question is.... Can i restore the contact record from recyclebinrecycle bin already existing same details in contact object?

In that time, trigger will fire or not?

How tocan I write trigger to restore records from recyclebinthe recycle bin?

whichWhich context variable can iI have to use?

Please help me out... Thanks in advance

While trying to insert record into databse from recyclebin:

For ex: I have contact record in my salesforce and i have deleted that contact record, that stored in recyclebin.

After deleting the contact record, i have created new record in contact object (as it is deleted contact record has information like, first name, last name, email previously deleted record from contact).

i have written a trigger for contact object, that is while inserting new contact fire error, if first name, last name, email is there.

my question is.... Can i restore the contact record from recyclebin already existing same details in contact object?

In that time, trigger will fire or not?

How to write trigger to restore from recyclebin?

which context variable can i have to use?

Please help me out... Thanks in advance

While trying to insert record into database from recycle bin:

For ex, I have contact record in my salesforce and i have deleted that contact record, that stored in recycle bin.

After deleting the contact record, i have created new record in contact object (as it is deleted contact record has information like, first name, last name, email previously deleted record from contact).

I have written a trigger for contact object, that is while inserting new contact fire error, if first name, last name, email is there.

my question is.... Can i restore the contact record from recycle bin already existing same details in contact object?

In that time, trigger will fire or not?

How can I write trigger to restore records from the recycle bin?

Which context variable can I have to use?

edited title
Link
pkb
  • 1
  • 1

While trying to insertRestore record into databsesalesforce from recyclebinRecyclebin

Source Link
pkb
  • 1
  • 1

While trying to insert record into databse from recyclebin

While trying to insert record into databse from recyclebin:

For ex: I have contact record in my salesforce and i have deleted that contact record, that stored in recyclebin.

After deleting the contact record, i have created new record in contact object (as it is deleted contact record has information like, first name, last name, email previously deleted record from contact).

i have written a trigger for contact object, that is while inserting new contact fire error, if first name, last name, email is there.

my question is.... Can i restore the contact record from recyclebin already existing same details in contact object?

In that time, trigger will fire or not?

How to write trigger to restore from recyclebin?

which context variable can i have to use?

Please help me out... Thanks in advance