Creating an email flow getting undefined is not a function

So we want to add a flow for inbound email called Route to Spam-All with the intent of updating all our inbound emails to route spam to this flow.

So far we've had a really good run with Archy but it is falling over with this one task

  • ERROR! session startup initialization for startWithClientIdAndSecret complete. Caught unhandled exception waiting for callback function returned promise to resolve.
  • ERROR! ArchSession.startWithClientIdAndSecret - Caught unhandled exception during callback function execution. Ending session. Exception info: TypeError: undefined is not a function
  • ERROR! ending the Session. Setting the exit code to 99.

I'm not sure why we're getting an "undefined is not a function", I've run a refresh and everything

inboundEmail:
  defaultLanguage: en-au
  name: Route to Spam-All
  startUpRef: ./tasks/task[handleSpam]
  tasks:
    - task:
        name: "Handle spam"
        refId: handleSpam
        actions:
          - transferToAcd:
              targetQueue:
                lit:
                  name: Spam-All
          - disconnect:
                name: "Disconnect"

Figured it out, emails are like chats, they have state not tasks?

inboundEmail:
  defaultLanguage: en-au
  name: 'Route to Spam-All'
  startUpRef: ./states/state[initialState]
  states:
    - state:
        name: Initial State
        refId: initialState
        actions:
          - transferToAcd:
              targetQueue:
                lit:
                  name: Spam-All
          - disconnect:
                name: "Disconnect"

Prolly need a warning or something when one does it backwards

Hi freman,

I'll definitely look into better handling for this. Thanks for reporting this issue!

Thanks,
Jon

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.