You need to sign in to do that
Don't have an account?
update custom object after contact creation
Hello everyone,
on my custom object Leadevents__c I have create a custom button "New Contact" which creates the standard object "contact". For this I have all the data I need on my custom object: Name, AccountID etc.
On my custom object I have also a lookup to contacts.
What I need is after the creation of a new contact (coming from my leadevents__c) that this contacts id gets passed into the related Leadevent and ends up as a look up value:
Here the result I would need:
So I somehow need to update my Leadevents__c after a contact creation and figure out that the right contact is picked.
Does anyone have an idea to push me in the right direction? First thing I came up with (in theory) was creating a new contact via ProcessBuilder triggerd by a button on my leadevent, populate Leadevents__c ID on that contact and then "somehow" run a trigger that checks for contacts and Leadevents where the (Leadevents) - IDs match and then populate the contact id on my leadevent?
I think you can use Java script button to create contact and update your custom object.
Please chekc the below code:
Replace 'Candidate__c' with your custom object.This worked for me perfectly.Hope this will be helpful.
Thanks
All Answers
I think you can use Java script button to create contact and update your custom object.
Please chekc the below code:
Replace 'Candidate__c' with your custom object.This worked for me perfectly.Hope this will be helpful.
Thanks
it does exactly what I need it to do!