- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2019 08:31 AM
I have a workflow I have been working on and I need to add text or clear a free text field to ensure a rollback activity will work.
I have a question on the catalog item name finance_mgmt_ams_sap_finance_estimate
Set values activity does not allow me to pick variables from the drop down list, what is the best approach to clear the value or add a value to the current field that is no longer empty using the workflow.
I have tried a run script activity and this fails to work it just give me a not defined error.
Can anyone help? Nothing I have tried is working.
Script highlighted in the workflow is
//var amsEstimate = current.variable.pool.finance_mgmt_ams_sap_finance_estimate = 'null'; //tried '' instead of Null and get undefined
current.finance_mgmt_ams_sap_finance_estimate.setValue( ""); // tried and not working either still get not defined
Docs don't seem to be helping much either https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/using_workflows/concep...
I look forward to the assistance.
Kind regards
Sarah
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2019 08:49 AM
Try this line and see if it works.
var amsEstimate = current.variable_pool.finance_mgmt_ams_sap_finance_estimate = '';
Please hit correct based on impact of response.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2019 08:49 AM
Try this line and see if it works.
var amsEstimate = current.variable_pool.finance_mgmt_ams_sap_finance_estimate = '';
Please hit correct based on impact of response.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2019 09:37 AM
Thanks for the help that worked. 🙂