clearing the field value through UI action works only when the UI action is Rerun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 08:10 AM
I have this UI action that actually works in restarting the flow. However, the approved data, asignment group, assigned to values are cleared ONLY when I run the UI action the second time.
Has anyone else experienced something similar ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 09:02 AM - edited 11-18-2022 09:05 AM
There doesnt seems to be an problem with code. I think the issue is with timing, since you are running the flow in foreground.
Can you try to put your current.update() before line no.11 and check the behaviour.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 09:02 AM
Can you try moving line 11, action.setRedirectURL(current); to after the current.update(); ?
Also, it could be related to your script running the flow in the foreground. You might need to try the "Asynchronous" code instead to run it in the background.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 09:38 AM
Can you try moving the line 12 after current.update()?
Also I would like to understand what are you using flow designer for? Can it be triggered based on some condition instead of manually calling it.
Please mark this response as correct or helpful if it assisted you with your question.