Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to fetch contact email and phone number before the contact is deleted using REST API in Groovy

in Sales 3 comments

Hi Team,

We have a requirement to store contact email/phone number whenever the contact is deleted. We are able to capture details if the contact is deleted using Delete button on UI but we are not getting the details if the contact is deleted using REST API.

Please assist

Placed the below code in Remove Trigger to capture the details on deletion using REST API.

def FirstEmail=Email?.first()

def FirstPhone=Phone?.first()

Thanks & Regards,

Nikhil

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!