3 Antworten
You can use process builder to trigger the Flow. once the flow is triggered,you can query on X object and assign the value to the text field(Account field) as per your requirment. Hi Vaibhab,For you question, there are three solutions may be- 1. Process Builder 2. Visual Flow 3. A triggerTrigger may be a better solution. Please refer the code -Let a text field on account-Label - TextByObjXand a record name on Object X is - XRecordTrigger PopulateAccountField on account(After insert){String str = '';X__c xRec = [select name from X__c where name=:'XRecord'];str = str + xRec.name;account acc = [select TextByObjX from account where Id =:trigger.new];acc.TextByObjX = str;update acc;}The above short code will help you populate the text field on account with one record name on object X.I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.Thanks and Regards,Ajay Dubediwww.ajaydubedi.com HI Vaibhab,You can use the ( Process Builder + Visual Flow ) for this scenario. Thanks, Maharajan.C