Hoppa till huvudinnehållet

Custom Javascript Functions Within a Workflow

Kommentarer

2 kommentarer

  • Ryan Cooney

    Hi Mel,

     

    We intentionally block calls to custom functions from expressions as a security measure.

     

    The way to execute custom JavaScript is via custom activities. A custom activity can wrap the call to your custom function, or you can implement all your custom code inside the activity.

     

    In a few weeks we will be publishing the process for developing custom activities, but it isn’t quite ready for primetime yet.

     

    I will look into how we can provide something like the encodeUriComponent() function. It will likely take the form of a built-in activity. Similar built-in objects like Math and JSON are also absent, but we provide roughly the same functionality via activities.

     

    --Ryan

    0
  • Permanently deleted user

    Hi Ryan.

     

    That sounds like a perfect solution. Honestly, if you go down the path of recreating functions like encodeURIComponent, it's a never-ending uphill battle of recreating Javascript for every wanker like me who has a specific need. If custom activities look like what is running through my head, that's the superior solution.

     

    Thanks,

    Mel

    0

Du måste logga in om du vill lämna en kommentar.