function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
trigger rmaemailupdate on RMA__c (before update) { set<id> setcaseids = new set<id>(); for(RMA__c rma: trigger.new){ if(rma.Case__c !=Null){ setcaseids.add(rma.Case__c); } } Map<id,Case> mappaccidwithvalues = new map<id,Case>(); for(Case cs:[select id,contactEmail from Case where id=:setcaseids]){ mappaccidwithvalues.put(cs.id,cs); } for (RMA__c rma:trigger.new){ if(mappaccidwithvalues.containskey(rma.Case__c)){ rma.email__c = mappaccidwithvalues.get(rma.Case__c).contactEmail; } } }
Do you have relationship between case and custom object? If yes then which object is parent?
Thanks!!
We can now add metafields directly to Shopify objects like Product or ... The Shopify metafields allow you to add custom fields to any page or object in ...https://paystublogin.onl/
Try with below code and modify the object & fields api names as per your org.
If this helps, Please mark it as best answer.
Thanks!!