How to capture a field value in scratchpad within UI Action?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2017 07:09 AM
Hi Experts,
please tell me how I can 'catch" a field value in an UI Action within a scratchpad variable to be able to check for it within an Workflow that is triggered by the UI Action.
I was assuming something like "g_scratchpad.u_field = current.u_field;" would work ... but it doesn't.
Thank you.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2017 02:26 PM
You can't use scratch pad in this case. Its better to save the previous value in another new field (ex.previous_state) and reference it later using the workflow, when it is rejected.
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2017 02:32 PM
really ... this looks like a low-code solution 😉
Was the first think I thought of ... and was sure this in not professional 😉
But ok - this should be easy.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2017 02:33 PM
I have checked you case in personal instance it is not getting, sorry for wrong info i have stated above.
Better you can query the same thing in workflow, if it hold any query info.
can i know what is your case? why you need.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2017 02:37 PM
Approval Workflow need to find the old state in case of rejection ... how to?
in face here are more details, but no answer at the end .. so I had to restart all over 😉