reate an object named as “Flipkart” and create the below fields:
Item number
Item name
Price
Customer Name (Lookup to Account)
Customer Email
Customer Phone
PO Status (Order Placed, In Transit, Shipped)
PO Send (check box)
Create 20 records for the above object and write a batch which fetch all the details where PO Status is equal to Shipped and send an email to those customers where the email is not blank, in case if you didn’t found an email in Customer Email field check in related account email(create an email field in Account object) and send an email?
Go throught this code
https://teachmesalesforce.wordpress.com/tag/salesforce-batch-apex/
Create 20 records for the above object and write a batch which fetch all the details where PO Status is equal to Shipped and send an email to those customers where the email is not blank, in case if you didn’t found an email in Customer Email field check in related account email(create an email field in Account object) and send an email?