You need to sign in to do that
Don't have an account?
Mohan SFDC 25
How to update the field value which is not direct related
I have a requirement. I have a object obj1 and another obj obj2 which are not direct related.
obj1 is related to contact and contact is related to obj2. so now my requirement is
suppose in obj1 if I am inserting a field f1 , then in obj 2 field2 should add the value which already exists and display the total value.
that means suppose in field f1 contains 100 value and obj2 field2 contains 200 values then it should update the field2 values by adding field1 value and display the total value.
Please try to help me.
Thanks in advance
obj1 is related to contact and contact is related to obj2. so now my requirement is
suppose in obj1 if I am inserting a field f1 , then in obj 2 field2 should add the value which already exists and display the total value.
that means suppose in field f1 contains 100 value and obj2 field2 contains 200 values then it should update the field2 values by adding field1 value and display the total value.
Please try to help me.
Thanks in advance
You can use process builder to call the apex class when some event hs occured. so when you insert some value in field1 of obj1 you have to update the vlaue in the obj2 field 2. you can use process builder which will be invoked when you insert value in field 1 and obj1 and then you can call the apex class to do the update in obj2.
below is the link for your refernce.
https://help.salesforce.com/articleView?id=process_action_apex.htm&language=en_US&type=0
Thanks
Please mark this as a solution, if the above reply answered to your question.