function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sudeep SinghSudeep Singh 

Auto Creation using automation

I have three objects 
Contract
Order
Order Line Items
----------------------------------------

Order is lookup to Contract
Order Line Item is lookup with Order

--------------------------------------------------

Need to do an automation that,
First order will be dispatched on the upcoming Wednesday. Every order after that will be dispatched on Wednesday, a month after the first order.
Contract object is having a picklist field having value Paused and Canceled.

Thanks 
 
TobyKutlerTobyKutler
You can do this using either a Flow or Apex. 

scheduled flow- https://help.salesforce.com/s/articleView?id=flow_considerations_trigger_schedule.htm&language=en_US&type=5
scheduled apex- https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm
Sudeep SinghSudeep Singh
This is not upto my requirement