You need to sign in to do that
Don't have an account?
sonam guptha
update non related table value to another table
HI All,
i have a custom table(Social_media__C) which doesn’t have any relationship with opportunity,And i have another custom table partner__c which is related to opportunity,now when first record(on partner__c table) is created related to a opportunity,that first partner__c one of the field value we need to update into Social_media__c’s one of the field.how can we do this?
first.Created.partner__c.value = Social_media__c.value(no lookup to opportunity)
i have a custom table(Social_media__C) which doesn’t have any relationship with opportunity,And i have another custom table partner__c which is related to opportunity,now when first record(on partner__c table) is created related to a opportunity,that first partner__c one of the field value we need to update into Social_media__c’s one of the field.how can we do this?
first.Created.partner__c.value = Social_media__c.value(no lookup to opportunity)
Here Field represent the field of social media, which u will populate from partner field.
PopulateValuetoSocialMedia represent the field of partner, which you want to update.
Thanks
All Answers
Is there any relationship between Social_media__c and partner__c Object If yes, Then you can simply write a trigger as Suraj said. If no then how can you ditermine that which Partner object need to update.
Let me know if this helps :)
Thanks!
Amit Singh
Thank you for the response,as i said there is no relationship between Social_media__c and partner__c,so if i create lookup on Social_media__c to opportunity,then if i write a trigger on it,that may solve my problem?
if that is the case,then i will a create lookup to opportunity,but i have a dought will that lookup is really helpful to search the previous opportunitys related partner__c's records even,And also i need to find the first created record on the partner__c , that value i have to update on Social_media__c's field,also please provide any sample code snippet for the trigger.
Here Field represent the field of social media, which u will populate from partner field.
PopulateValuetoSocialMedia represent the field of partner, which you want to update.
Thanks