RedirectToCase

This function will redirect user to specified case and specified target (new or current window/tab). Optional confirmation promt and message can be specified.

Syntax

RedirectToCase("caseId","target");
RedirectToCase("caseId","target","ask");
RedirectToCase("caseId","target","ask","confirmText");

Function arguments

  • caseId – (Decimal) ID of the case to be redirected to
  • target – (String) Redirection target tab/window, this parameter can have values 'current’ or 'new’
  • ask – (Boolean) [Optional] Ask user if he wants to be redirected. (default = false)
  • confirmText – (String) [Optional] Optional text for redirection prompt. Only valid with 'ask’ parameter set to 'true’. If not used, default prompt text is used.

Return value

This function returns String.
This function always returns empty string

Examples

Example 1:
This will redirect user to specified case in new window/tab

c = CopyCase();
RedirectToCase(c,"new");

Example 2:
This will ask user, wtih standard question, if he wants to be redirected to specified case in current window/tab

c = CopyCase();
RedirectToCase(c,"current",true);

Example 3:
This will ask user, with specified question, if he wants to be redirected to specified case in current window/tab

c = CopyCase();
RedirectToCase(c,"current",true, "Are you sure?");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.