You need to sign in to do that
Don't have an account?
P00j@
Throwing an error on two diff objects
i have a object called stock in that i have a field quantity and other object i have is order in that object i have a field quantity ordered so if quantity order is more than quantity it should throw an error.The two objects are not related by master detail so by which way the task can be done
If your custom objects have master details relationship, you can easily acheive your requriement. Please refer the following link it will be helpful to you.
https://success.salesforce.com/answers?id=90630000000hiFNAAY.
If two object not have the relationship then you need to write trigger