Skip to main content

Hello everyone! I am wondering if someone has come across this issue before and might have a solution for me. I know that the best way to approach this was probably to make a custom Lightning web component. But, I am not a developer yet, thus I created a schedule for my client's org in the Opportunity object. I created a custom time field for every day of the week.

  • Sunday Start Time
  • Sunday End Time
  • Monday Start Time
  • Monday End Time
  • Tuesday Start Time
  • Tuesday End Time
  • Wednesday Start Time
  • Wednesday End Time
  • Thursday Start Time
  • Thursday End Time
  • Friday Start Time
  • Friday End Time
  • Saturday Start Time
  • Saturday End Time

Then, I created another custom

checkbox field that said "Same time every day?". I was trying to create a record-triggerred flow that would allow me to check the box for "Same time every day" AND if I put the Start & End Time for Sunday. The flow would automatically fill in the Start and End time for every day of the week (Monday thru Saturday). But, every time I make the flow I get an error. Is there a way to make this flow work? Using Flow Builder to Automate Custom Time FieldsUser-added imageUser-added image

 

 
2 answers
  1. Feb 26, 2021, 6:03 AM
    Hi Jaileez, 

     

    Judging by the error message, it looks like you forgot to select a field from $Record__Prior, and instead tried to set the entire record variable into the Monday field. Have a look at the update step and make sure you only set a single value into the field. 

     

    As a general comment though, are you sure having time fields for each day of the week is the best model to use? That's a lot of fields, and it might make automation more difficult later on. 
0/9000