Create an Task under Opportunity if AccountId is Null ?Vaibhav KumarSeptember 30, 2023Developers Table of Contents Introduction to scenario → Apex Trigger Scenario 7 Develop an Apex Trigger so that when an opportunity is created and the account is blank, create a task under Opportunity. Hint: – AccountId == null Subject – Opportunity is created without Account Description – Opportunity is created without Account, Please assign the Correct account to Opportunity. Due Date – Todays Date + 7 Status – Not Started Priority – High Related To (What) – Opportunity Id Assigned To (OwnerId) – Opportunity Owner Id Hands on Dispatcher Class Handler Class Logger Class Outcome Resources https://www.pantherschools.com/update-account-billing-in-shipping-address/ https://www.pantherschools.com/how-to-update-account-billing-address-in-shipping-address-only-if-shipping-address-is-blank/ https://trailhead.salesforce.com/content/learn/modules/apex_triggers Share this: Click to share on Facebook (Opens in new window) Facebook Click to share on X (Opens in new window) X Click to share on LinkedIn (Opens in new window) LinkedIn Click to share on Reddit (Opens in new window) Reddit Click to share on WhatsApp (Opens in new window) WhatsApp Click to share on Threads (Opens in new window) Threads Click to share on Telegram (Opens in new window) Telegram Click to share on Pinterest (Opens in new window) Pinterest Like this:Like Loading... Vaibhav Kumar Articles: 6 Previous Post How to update Account Billing address in Shipping address , Only If Shipping address is Blank ? Next Post How to Create a Task under Account? Newsletter Updates Enter your email address below and subscribe to our newsletter Subscribe I accept the Privacy Policy*