How to set priority of RITM based on the urgency from RITM form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2017 06:52 AM
How to set priority of RITM based on the urgency from RITM form?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2017 07:01 AM
Hi Swathi,
May I know how you are filling the urgency in the RITM, is it manually done after the record is submitted.
You can have a simple if condition in the workflow to update the priority values
if(current.urgency == 'high')
{
current.priority = value;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2017 07:05 AM
I have urgency variable in Item form, but i dont know how to link these two. You tell me how to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2017 07:11 AM
Hi swathi
Try this onChange field is urgency
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var urgency=g_form.getValue('urgency');
if(urgency=='1'){
g_form.setValue('priority','1');
alert('priority is 1');
}
var urgency=g_form.getValue('urgency');
if(urgency=='2'){
g_form.setValue('priority','2');
alert('priority is 1');
}
var urgency=g_form.getValue('urgency');
if(urgency=='3'){
g_form.setValue('priority','3');
alert('priority is 3');
}}
I hope this will helpful to u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2017 07:25 AM
You can use current.variables.varaible_name to get the variable value from form!