- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello,
I want to create a subflow in Flow designer where I need to create a Json based on subflow inputs or result of previous action and pass this Json as input to next action. Is using Script Editor or Script Input field to build this Json ok or should an action be used to create the Json and pass it to next action? For eg: I need to create a Json like below where identity is taken from subflow inputs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi @JinuJ
using inline scripting in Flow Designer to build JSON is not safe becuase some time what happened is if we are adding more steps on that flow before this step (JSON) it will get lost. But script will not be lost during upgrades.
- Too much inline scripting = harder to maintain
- Debugging becomes messy
insteed of these you try the belowBest practice:
- Use custom action if:
- JSON is complex
- Reused in multiple places
- Use script input if:
- Simple one-time transformation
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Simple one-time transformation
- Use custom action if:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi @JinuJ
using inline scripting in Flow Designer to build JSON is not safe becuase some time what happened is if we are adding more steps on that flow before this step (JSON) it will get lost. But script will not be lost during upgrades.
- Too much inline scripting = harder to maintain
- Debugging becomes messy
insteed of these you try the belowBest practice:
- Use custom action if:
- JSON is complex
- Reused in multiple places
- Use script input if:
- Simple one-time transformation
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Simple one-time transformation
- Use custom action if:
