AnsweredAssumed Answered

Get Date of First Workday in Current Week with Groovy

Question asked by YechielKaplan8651 on Aug 17, 2017
Latest reply on Aug 18, 2017 by YechielKaplan8651

I have a process where I need to query for Salesforce records created in the current week in which I'm running the process. Using WHERE CreateDate =  "THIS WEEK" doesn't work and I get an error that I can't 'Use binary variables in an API call...'.

I know there are articles describing similar scenarios here in the Community, the difficulty I'm finding is that I need to use a Data Shape/Custom Scripting shape and therefore I can't use the Input/Output functionality that I can use in a Custom Scripting within a map. I can't use a map (as far as I know, because this script needs to be the first shape in my process.) 

Is there a way I can do this without using Groovy? 


Thanks for any ideas,