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
KMK91KMK91 

Trigger from Parent to Child

Hi Team,

Based on Parent object date field how to update child picklist  field values.(Should be dynamic)

Thanks
kmk
AnkaiahAnkaiah (Salesforce Developers) 
Hi KMK,

Can you explain more about your requirement?

Thanks!!
KMK91KMK91
Hi Ankaiah,

I have 2 objects called custom A and custom B there is master detail relationship between these 2 objects. In custom A object we have a field called "Date" And custom B object field called "Source"(Pick List Values: Type1,  Type2, Type3, Type4) using flows how to change the pick list values based on date.

i)

if the user entered Date is July should update Type2 in Source field( if current month Date is June) then
Month(Aug) should select Type3
Month(Sep) should select Type4 
Month(OCT) should select Type4 
Month(Nov) should select Type4
Month(Dec) should select Type4
Month(Jan23) should select Type4


Etc.. 

ii)

if the user entered Date is June should update Type1 in Source field( if current month Date is June like this month) then
Month(july) should select Type2
Month(Aug) should select Type3 for remaining dates should be...like below
Month(Sep) should select Type4
Month(Oct) should select Type4
Month(Nov) should select Type4

iii)

if the user entered Date is December should update Type2 in Source field( assume if current month Date is Nov ) then
Month(Jan-23) should select Type3
Month(Feb) should select Type4 for remaining dates should be...like below
Month(Mar) should select Type4
Month(Apr) should select Type4
Month(May) should select Type4

Thanks
KMK