Ticket Number Control (Custom Invoice Numbers with Reset)

Invoice Search

Because the Invoice Number is stored as a Ticket State and/or Ticket Tag, it might be difficult to locate them at a later time, because the Ticket Explorer does not display States or Tags. So here is a mechanism we can use to Search for and Display Tickets based on the Invoice Number stored in the Ticket State/Tag.

Flow


Automation Command

INUM Ticket Search [no Category] (Automation Command)

Name: INUM Ticket Search
Category:
Button Header: Search Invoice
Color: #FF6E8E2C
Font Size: 26
Confirmation: None

Values (0): (none)

Navigation Settings
Symbol:
Image:
Auto Refresh: 0
Tile Cache: 0
Navigation Module:
Nav Module Parameter:
Template:

Mappings
Terminal User Role Department Ticket Type Enabled States Visible States Visibility
******Display on Navigation

Actions

INUM Ask Question [Ask Question] (Action)

Action Name: INUM Ask Question
Action Type: Ask Question

Parameters:

Question: [:question]
Buttons: [:buttons]
Description:
Automation Command Name: [:AMCname]
Execute Command In Background: False
Background Color:
Transparent Color:
Inactivity Command Name:
Inactivity Timeout Seconds:
Execute Inactivity Command In Background:

INUM ExecAMC [Execute Automation Command] (Action)

Action Name: INUM ExecAMC
Action Type: Execute Automation Command

Parameters:

Automation Command Name: [:AMCname]
Command Value: [:AMCvalue]
Background: False
Delay: 0

INUM Load Ticket [Load Ticket] (Action)

Action Name: INUM Load Ticket
Action Type: Load Ticket

Parameters:

Ticket Id:
Ticket Number:
Ticket Uid:
Tag Name: [:tagName]
Tag Value: [:tagValue]
State Name: [:stateName]
State: [:stateValue]
Entity Type Name:
Entity Name:

Rules

INUM Ticket Search [Automation Command Executed] (Rule)

Rule Name: INUM Ticket Search
Event Name: Automation Command Executed
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Automation Command NameEqualsINUM Ticket Search

Actions (1):

INUM Ask Question

Constraint: (none)

question: Choose Invoice Type
buttons: Type A=A,Type B=B
AMCname: INUM Ticket Load

INUM Ticket Load [Automation Command Executed] (Rule)

Rule Name: INUM Ticket Load
Event Name: Automation Command Executed
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Automation Command NameEqualsINUM Ticket Load

Actions (2):

INUM Load Ticket

Constraint: (none)

tagName: Inv[:CommandValue]
tagValue: [?Invoice Number;;;OCN]
stateName: Inv[:CommandValue]
stateValue: [?Invoice Number;;;OCN]
INUM ExecAMC

Constraint: (none)

AMCname: INUM Ticket Display
AMCvalue: {TICKET ID}

INUM Ticket Display [Automation Command Executed] (Rule)

Rule Name: INUM Ticket Display
Event Name: Automation Command Executed
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Automation Command NameEqualsINUM Ticket Display

Actions (2):

MSG TEST

Constraint: [:CommandValue] <= 0

MessageToDisplay: No Ticket Found!
Display Ticket

Constraint: [:CommandValue] > 0

TicketId: [:CommandValue]

:bulb: TIP: The MSG TEST Action shown above is a Show Message Action using [:MessageToDisplay] as the Message parameter.

:bulb: TIP: The Display Ticket Action shown above is a Display Ticket Action using [:TicketId] as the Ticket Id parameter.

1 Like