You need to sign in to do that
Don't have an account?

Creating a new record in a custom object
I want to automatically create a new record in custom Object B when a specific record type is selected in custom Object A. How would I go about doing this? Please help
The lookup field "Properties" on the Resales object is having a filter on it and the value that yiou are trying to populate in this field is not matching with that filter so as a result you are facing this issue.
Please assign value in this field as per the lookup filter in order to get rid of the issue.
Let me know if you need more information or help on this.
Thanks,
Abhishek Bansal
All Answers
for more info on process builder check out this trailhead module: https://developer.salesforce.com/trailhead/business_process_automation/process_builder
You can achieve this with the help of trigger.
Your trigger will be written on the Custom Object A that will chk the record type of the inserted record and if the record type matches your condition than it will create and insert the record of custom object B within your trigger.
I am providing you a sample code below :
Please take help from the above sample code and also dont forget to make the necessary changes.
Please let me know if i can help you more on this.
Thanks,
Abhishek Bansal.
Go for Lightning Process builder
https://developer.salesforce.com/trailhead/business_process_automation/process_builder
Thanks,
Arun
INSERT --- INSERT FAILED --- ERRORS : (FIELD_FILTER_VALIDATION_EXCEPTION) Value does not exist or does not match filter criteria.,
I will attach my process maybe you can pinpoint what I am doing wrong.
Properties is object A and Resales is object B. When the properties record type 'Sold' is selected I want new record to automatically be created in the Resales object.
The lookup field "Properties" on the Resales object is having a filter on it and the value that yiou are trying to populate in this field is not matching with that filter so as a result you are facing this issue.
Please assign value in this field as per the lookup filter in order to get rid of the issue.
Let me know if you need more information or help on this.
Thanks,
Abhishek Bansal