function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nuno.CarvalhoNuno.Carvalho 

Need some help to delete records.

Hello guys,
I have a button that converts the record on young_prospects__c to a new record on the object players__c,
All i want to do is to delete the old record on the young_prospects__c, 
If you need to know more feel free to ask, and sorry if i didn´t explain myself right,
Thank you,
Nuno.
Best Answer chosen by Nuno.Carvalho
Shruti SShruti S
Hey Nuno,

Assuming this is with ref[https://developer.salesforce.com/forums/ForumsMain?id=9060G000000UZkUQAW] to the old question that we are working on, here is how you can do that. I have setup a video explaining the same - https://www.youtube.com/watch?v=kJqOBO9yqBQ&hd=1 

In essence, you can simply use the Record Delete element and get it done.

Happy to help,
Shruti

All Answers

Shruti SShruti S
Hey Nuno,

Assuming this is with ref[https://developer.salesforce.com/forums/ForumsMain?id=9060G000000UZkUQAW] to the old question that we are working on, here is how you can do that. I have setup a video explaining the same - https://www.youtube.com/watch?v=kJqOBO9yqBQ&hd=1 

In essence, you can simply use the Record Delete element and get it done.

Happy to help,
Shruti
This was selected as the best answer
Nuno.CarvalhoNuno.Carvalho
Hi Shruti,
Once again thank you,
Can you tell me if you are good with triggers or if you know a better way for what im about to ask you,
I have a field in contacts object called nr_of_players__c this field is suppose to Sum up the records that belong to this contact,
In this case the contact is the agent of the player/s.
If you could help me with this i would be very appreciated,
Nuno.
Nuno.CarvalhoNuno.Carvalho
Hi Shruti, If you read this pls can you help me, I need to copy a currency field on the standard object “contract” called salary__c to the right player on the costum object “players__c” and the field has the same name. I got 5 record types on contract , the one with that field is Transfer. Thanks in advance. Nuno C
Shruti SShruti S

No problem, I will be more than happy to help. Would you mind posting this as a new question so that others could also share their thoughts on this.
And yes I can help you with the triggers.

Nuno.CarvalhoNuno.Carvalho
Hi Shruti,
I´ve done it, if you could answer it i would be very appreciated.