{"id":15427,"date":"2018-07-17T06:53:09","date_gmt":"2018-07-17T06:53:09","guid":{"rendered":"https:\/\/kb.sambapos.com\/?p=15427"},"modified":"2019-08-16T14:25:39","modified_gmt":"2019-08-16T14:25:39","slug":"4-18-how-to-recall-and-clone-customers-last-ticket","status":"publish","type":"post","link":"https:\/\/kb.sambapos.com\/en\/4-18-how-to-recall-and-clone-customers-last-ticket\/","title":{"rendered":"4.18. How to Recall and Clone Customer&#8217;s Last Ticket?"},"content":{"rendered":"<p>In this document, it will be explained how you can store, recall, and clone a previous Ticket. It works from the Ticket Explorer, or in the case of a Customer Entity, it will allow for cloning of that Customer\u2019s last Ticket.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>How It Works;<\/strong><\/span><\/p>\n<h2><strong><span style=\"font-size: 14pt;\">Displaying &amp; Cloning a Ticket That Has Customer Entity:<\/span><\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15446\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Customer.Ticket.gif\" alt=\"\" width=\"640\" height=\"332\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-size: 14pt;\"><strong>Cloning a Ticket That Has No Customer Entity:<\/strong><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15448\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone-Table-Ticket.gif\" alt=\"\" width=\"640\" height=\"332\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>NOTE:<\/strong> If you selected <strong>Primary Field<\/strong> of Customers Entity Type as <strong>Phone<\/strong> then you should apply below changes;<\/p>\n<p><strong>Main Menu &gt; Manage &gt; Entities &gt; Entity Types &gt; Customers<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18623 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-01-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-01-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-01-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-01-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-01.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18625 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-02-1024x546.jpg\" alt=\"\" width=\"640\" height=\"341\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-02-1024x546.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-02-300x160.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-02-768x409.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/RecallTicket-02.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<h2><\/h2>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>1.Adding Automation Commands<\/strong><\/span><\/p>\n<p><strong>1.1.\u00a0Display Last Settled Ticket<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automations &gt; Automation Commands &gt;<\/strong> in here click on <strong>Add Automation Command<\/strong> link.<\/p>\n<p><strong>General Settings Section;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15451 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-01-2-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-01-2-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-01-2-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-01-2-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-01-2.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Name:<\/strong> LT Display Last Ticket<\/p>\n<p><strong>Category:<\/strong> Blank<\/p>\n<p><strong>Button Header:<\/strong>\u00a0Display Last\\rSettled Ticket<\/p>\n<p><strong>Color:<\/strong> #FFC0504D<\/p>\n<p><strong>Confirmation:<\/strong> None<\/p>\n<p><strong>Clear Selection:<\/strong> Click on this box.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Navigation Settings Section;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15453 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-02-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-02-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-02-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-02-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-02-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mappings Section;<\/strong><\/p>\n<p>Add a row by clicking on <strong>Add<\/strong> button and configure settings as shown in the image;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15455 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-03-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-03-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-03-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-03-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-03-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Visible States:<\/strong> Status=New<\/p>\n<p><strong>Visibility:<\/strong> Ticket<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1.2. Clone Ticket<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automations &gt; Automation Commands &gt;<\/strong> in here click on <strong>Add Automation Command<\/strong> link.<\/p>\n<p><strong>General Settings Section;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15457 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-04-2-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-04-2-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-04-2-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-04-2-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-04-2.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Name:<\/strong> LT Clone Ticket<\/p>\n<p><strong>Category:<\/strong> Blank<\/p>\n<p><strong>Button Header:<\/strong>\u00a0Clone\\r Ticket<\/p>\n<p><strong>Color:<\/strong> #FFC0504D<\/p>\n<p><strong>Confirmation:<\/strong> None<\/p>\n<p><strong>Clear Selection:<\/strong> Click on this box.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Navigation Settings Section;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15459 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-05-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-05-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-05-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-05-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-05-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mappings Section;<\/strong><\/p>\n<p>Add a row by clicking on <strong>Add<\/strong> button and configure settings as shown in the image;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15461 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-06-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-06-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-06-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-06-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-06-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Enabled States:<\/strong> IsClosed<\/p>\n<p><strong>Visible States:<\/strong> Status=Paid<\/p>\n<p><strong>Visibility:<\/strong> Ticket<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>2. Adding Actions<\/strong><\/span><\/p>\n<p><strong>2.1.\u00a0Create Ticket Clone Action<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> in here click on <strong>Add Action<\/strong> link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15464 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-07-1-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-07-1-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-07-1-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-07-1-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-07-1.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong>\u00a0LT Create Ticket Clone<\/p>\n<p><strong>Action Type:<\/strong> Create Ticket<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Clone Current Ticket:<\/strong> True<\/p>\n<p><strong>Clone All Orders:<\/strong> True<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2.2.\u00a0Display Ticket Action<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> in here click on <strong>Add Action<\/strong> link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15466 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-08-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-08-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-08-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-08-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-08.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LT Display Ticket<\/p>\n<p><strong>Action Type:<\/strong> Display Ticket<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Ticket Id:<\/strong> [:ticketId]<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2.3.\u00a0Load Entity By Search Action<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> in here click on <strong>Add Action<\/strong> link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15468 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-09-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-09-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-09-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-09-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-09.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LT Load Entity by Search<\/p>\n<p><strong>Action Type:<\/strong> Load Entity<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Entity Type Name:<\/strong> [:entityTypeName]<\/p>\n<p><strong>Entity Name:<\/strong> [:entityName]<\/p>\n<p><strong>Entity Search Value:<\/strong> [:searchValue]<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2.4. Show Message Action<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> in here click on <strong>Add Action<\/strong> link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15470 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-10-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-10-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-10-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-10-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-10.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LT Show Message<\/p>\n<p><strong>Action Type:<\/strong> Show Message<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Message: <\/strong>[:MessageToDisplay]<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2.5.\u00a0Update Entity State CLastTicketId Action<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> in here click on <strong>Add Action<\/strong> link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15472 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-11-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-11-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-11-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-11-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-11.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LT Update Entity State CLastTicketId<\/p>\n<p><strong>Action Type:<\/strong> Update Entity State<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Entity Type Name:<\/strong> Customers<\/p>\n<p><strong>Entity Name:<\/strong>\u00a0[:customerName]<\/p>\n<p><strong>Entity State Name:<\/strong>\u00a0CLastTicketId<\/p>\n<p><strong>Entity State:\u00a0<\/strong>[:ticketId]<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2.6. Store CLastTicketId in Memory Action<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> in here click on <strong>Add Action<\/strong> link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15474 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-12-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-12-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-12-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-12-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-12.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:\u00a0<\/strong>LT Store CLastTicketId in Memory<\/p>\n<p><strong>Action Type:<\/strong> Update Program Setting<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Setting Name:<\/strong>\u00a0[:customerName]_CLastTicketId<\/p>\n<p><strong>Setting Value:<\/strong>\u00a0[:ticketId]<\/p>\n<p><strong>Update Type:<\/strong> Update<\/p>\n<p><strong>Is Local:<\/strong> True<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>3. Adding Rules<\/strong><\/span><\/p>\n<p><strong>3.1.\u00a0Display Last Customer Ticket Rule<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> in here click on <strong>Add Rule<\/strong>\u00a0link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15476 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-13-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-13-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-13-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-13-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-13.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:\u00a0<\/strong>LT Display Last Customer Ticket<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Automation Command Name | Equals |\u00a0LT Display Last Ticket<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action 1: LT Show Message<\/strong><\/p>\n<p><strong>Constraint:\u00a0<\/strong><code>'{SETTING:{ENTITY NAME:Customers}_CLastTicketId}' == ''<\/code><\/p>\n<p><strong>Message To Display:\u00a0<\/strong>Cannot find Previous Ticket for\\r{ENTITY NAME:Customers}\\r{ENTITY NAME:Tables}<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Action 2: LT Display Ticket<\/strong><\/p>\n<p><strong>Constraint:\u00a0<\/strong><code>'{SETTING:{ENTITY NAME:Customers}_CLastTicketId}' != ''<\/code><\/p>\n<p><strong>ticketId:<\/strong>\u00a0<code>[=TN('{SETTING:{ENTITY NAME:Customers}_CLastTicketId}')]<\/code><\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3.2.\u00a0Clone Ticket Rule<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> in here click on <strong>Add Rule<\/strong>\u00a0link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15478 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-14-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-14-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-14-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-14-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-14.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> LT Clone Ticket<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:\u00a0<\/strong><\/p>\n<p>Automation Command Name | Equals |\u00a0LT Clone Ticket<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>LT Create Ticket Clone<\/strong><\/p>\n<p><strong>Constraint:<\/strong> Blank<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3.3.\u00a0Entity Selected &#8211; Load CLastTicketId from Entity State and Store in Memory Rule<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> in here click on <strong>Add Rule<\/strong>\u00a0link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15480 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-15-1024x577.jpg\" alt=\"\" width=\"640\" height=\"361\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-15-1024x577.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-15-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-15-768x433.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-15.jpg 1361w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> LT Entity Selected &#8211; Load CLastTicketId from Entity State and Store in Memory<\/p>\n<p><strong>Event Name:<\/strong> Entity Selected<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:\u00a0<\/strong><\/p>\n<p>Entity Type Name | Equals | Customers<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action 1: LT Load Entity by Search<\/strong><\/p>\n<p><strong>entityTypeName:<\/strong> Customers<\/p>\n<p><strong>entityName:<\/strong> [:EntityName]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Action 2: LT Store CLastTicketId in Memory<\/strong><\/p>\n<p><strong>customerName:<\/strong> [:EntityName]<\/p>\n<p><strong>ticketId:\u00a0<\/strong>{ENTITY STATE:CLastTicketId}<\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3.4.\u00a0Ticket Closing &#8211; Store Entity State CLastTicketId Rule<\/strong><\/p>\n<p>Go to <strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> in here click on <strong>Add Rule<\/strong>\u00a0link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15482 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-16-1024x576.jpg\" alt=\"\" width=\"640\" height=\"360\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-16-1024x576.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-16-300x169.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-16-768x432.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2018\/07\/Clone.Recall.Customer.Last_.Ticket-16.jpg 1366w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong>\u00a0LT Ticket Closing &#8211; Store Entity State CLastTicketId<\/p>\n<p><strong>Event Name:<\/strong> Ticket Closing<\/p>\n<p><strong>Execute Rule If:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraints:<\/strong><\/p>\n<p>{TICKET STATE:Status} | Equals | Paid |<\/p>\n<p><code>[=TN('{TICKET TOTAL}')]<\/code> | Greater | 0 |<\/p>\n<p>{ENTITY NAME:Customers} |\u00a0Is Not Null |\u00a0 \u00a0 |<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action: LT Update Entity State CLastTicketId<\/strong><\/p>\n<p><strong>customerName:<\/strong>\u00a0{ENTITY NAME:Customers}<\/p>\n<p><strong>ticketId:<\/strong>\u00a0<code>[=TN('{TICKET ID}')]<\/code><\/p>\n<p>After completing necessary editings, click on <strong>Save<\/strong> button.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this document, it will be explained how you can store, recall, and clone a previous Ticket. It works from the Ticket Explorer, or in the case of a Customer Entity, it will allow for cloning of that Customer\u2019s last Ticket. &nbsp; How It Works; Displaying &amp; Cloning a Ticket That Has Customer Entity: &nbsp; [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-15427","post","type-post","status-publish","format-standard","hentry","category-customization"],"_links":{"self":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/15427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/comments?post=15427"}],"version-history":[{"count":15,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/15427\/revisions"}],"predecessor-version":[{"id":18630,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/15427\/revisions\/18630"}],"wp:attachment":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/media?parent=15427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/categories?post=15427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/tags?post=15427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}