Skip to main content

How wait to script full execution, then go to next step


Forum|alt.badge.img+3

Hello friends

I have a script, that makes queries and record update,  after that I have Google Calendar Sync, 
Calendar Dates are dependent on Script results. 

I tried await keyword in front of record update statement and the timeout end of the script, but Calendar Sync executes before the script ends, how i can solve this problem, any ideas?

2 replies

TheTimeSavingCo
Forum|alt.badge.img+28

Hmm, it sounds like you're updating the record, then using that updated record's data for your Google Calendar action, is that right?

If so, what if you output the data you needed from the script action and used those instead? 


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 3 replies
  • February 8, 2024
TheTimeSavingCo wrote:

Hmm, it sounds like you're updating the record, then using that updated record's data for your Google Calendar action, is that right?

If so, what if you output the data you needed from the script action and used those instead? 


Thank you for your replay,

except for output from the script, I added another step that queries by updated record ID and gets updated values


Reply