You need to sign in to do that
Don't have an account?
Chelsea Lukowski
Custom Cross Object field update
I need to create a trigger that updates the Inventory_On_Hand__c field on custom object Oreder_Product__c, with the value of the Available__c field from the object call Inventory__c. The matching point between the two is the product number, which is on both objects as a field called Product__c. I do not know where to begin. Any help would be appriciated.
If your Product__c is a lookup field than please try the below code :
If Product__c is not a lookup field than we have to make changes in trigger.
So please let me know the Data type of Product__c field so that i can modify the trigger code accordingly.
Please also verify the API name of all objects and fields used in the above trigger.
Let me know if you have any issues.
Thanks,
Abhishek
Please move ahead with the code which i have provided you.
Please verify the API names of objects and fields in the code.
Let me know if you have any issues in the code.
Regards,
Abhishek
Error: Compile Error: Illegal assignment from Decimal to String at line 16 column 61
It would be good if you can contact me on gmail or skype.
Gmail : abhishek.bansal@metacube.com
Skype : abhishek.bansal2790
If you want a solution here than please tell me the data type of following fields :
- Inventory_On_Hand__
- Available__c
Please tell me the data types of above fields so that i can help you out.Thanks,
Abhishek