How to Convert string to lowercase in workflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 09:09 AM
Hi Everyone
I'm Trying to convert string to lowercase in workflow but it is not happening. below is the snippet of script and error message , please help me with the solution
Thankyou,
Pranitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 12:15 PM
Hi @Pranitha07,
I think the 'newdevice' variable is not a string but an object. I assume you want to use the name of the 'u_devicename_task'?
If so, change your first line of script to something like:
var newdevice = workflow.inputs.u_devicename_task.name.toString();
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 12:18 PM
Hi, what happens if you move all of your variable assignment/toLowerCase() code into the 'ifScript' function?
Does it run correctly then?