<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Moving  queuing conversations from one queue to another in Contact Pro</title>
    <link>https://community.sinch.com/t5/Contact-Pro/Moving-queuing-conversations-from-one-queue-to-another/m-p/11521#M400</link>
    <description>&lt;P&gt;This procedure is for on-premise system integrators to customize environments.&amp;nbsp; The UI setting for this function is&amp;nbsp;&lt;STRONG&gt;Forwarding Destination for Scheduled Queue Close&lt;/STRONG&gt; in &lt;STRONG&gt;System Configurator &amp;gt; Queue Management &amp;gt; Contact Management&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Symptoms&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Queuing conversations in Queue1 need to be moved to Queue2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prerequisites&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You have access to databases via Microsoft SQL Server Management Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Move conversations using an SQL procedure. This works for voice, email, chat and task conversation types.&amp;nbsp;Moving conversations directly to an IVR or external destination is not supported. In such cases, route via another queue. Note that conversations that are already in offering state are not moved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Microsoft SQL Server Management Studio:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect to the SQL server instance hosting the operative database of the target system (for example &lt;STRONG&gt;Object Explorer &amp;gt; Connect &amp;gt; Database Engine&lt;/STRONG&gt;).&lt;/LI&gt;&lt;LI&gt;Open a query editor (for example &lt;STRONG&gt;Object Explorer&lt;/STRONG&gt; and then right-click on the operative database and choose &lt;STRONG&gt;New Query&lt;/STRONG&gt;).&lt;/LI&gt;&lt;LI&gt;Paste the following in the editor, replacing source queue and destination queue with valid extension addresses/numbers or queue GUIDs (and keeping the single quotes):&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC MoveContact 'source queue', 'destination queue'&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Optionally, to schedule the operation to happen at a later time, add the desired execution time (UTC) as third parameter, for example:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC MoveContact 'source queue', 'destination queue', '12:00'&lt;BR /&gt;&lt;/FONT&gt;Or at later date:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC MoveContact 'source queue', 'destination queue', '2050-12-24 12:00'&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Execute the query (F5).&lt;BR /&gt;The operation should take place either immediately, or at a given date/time.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Procedure description:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@source: Source queue GUID (uppercase, with hyphens) or extension address (case sensitive)&lt;/LI&gt;&lt;LI&gt;@destination Destination queue GUID (uppercase, with hyphens) or extension address (case sensitive)&lt;/LI&gt;&lt;LI&gt;@validFrom Optional operation start date/time – if NULL or in the past, current UTC date/time is used&lt;/LI&gt;&lt;LI&gt;@validUntil Optional operation expiry date/time – if NULL or less than start date/time, start date/time + 1 minute is used&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Move chats from chatqueue1 to chatqueue2 and execute immediately:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC dbo.MoveContacts 'chatqueue1@acme.com', 'chatqueue2@acme.com'&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Move calls from 150 to 151 and execute five minutes from now:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DECLARE @validFrom datetime&lt;BR /&gt;SET @validFrom = DATEADD(MI, 5, GETUTCDATE())&lt;BR /&gt;EXEC dbo.MoveContacts '150', '151', @validFrom&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Move conversations from guid1 to guid2 and execute at specific UTC time on current day:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC dbo.MoveContacts 'DF1AFC30-153D-49CC-97BD-CCFA17C27EFD', 'EE0B0B4F-8465-44FC-8444-F37E5B0259E2', '12:00'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Move conversations from guid1 to guid2 and execute at specific UTC date/time:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC dbo.MoveContacts 'DF1AFC30-153D-49CC-97BD-CCFA17C27EFD', 'EE0B0B4F-8465-44FC-8444-F37E5B0259E2', '2018-12-24 08:00'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 12:21:34 GMT</pubDate>
    <dc:creator>Nina_Makkonen</dc:creator>
    <dc:date>2023-05-04T12:21:34Z</dc:date>
    <item>
      <title>Moving  queuing conversations from one queue to another</title>
      <link>https://community.sinch.com/t5/Contact-Pro/Moving-queuing-conversations-from-one-queue-to-another/m-p/11521#M400</link>
      <description>&lt;P&gt;This procedure is for on-premise system integrators to customize environments.&amp;nbsp; The UI setting for this function is&amp;nbsp;&lt;STRONG&gt;Forwarding Destination for Scheduled Queue Close&lt;/STRONG&gt; in &lt;STRONG&gt;System Configurator &amp;gt; Queue Management &amp;gt; Contact Management&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Symptoms&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Queuing conversations in Queue1 need to be moved to Queue2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prerequisites&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You have access to databases via Microsoft SQL Server Management Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Move conversations using an SQL procedure. This works for voice, email, chat and task conversation types.&amp;nbsp;Moving conversations directly to an IVR or external destination is not supported. In such cases, route via another queue. Note that conversations that are already in offering state are not moved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Microsoft SQL Server Management Studio:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Connect to the SQL server instance hosting the operative database of the target system (for example &lt;STRONG&gt;Object Explorer &amp;gt; Connect &amp;gt; Database Engine&lt;/STRONG&gt;).&lt;/LI&gt;&lt;LI&gt;Open a query editor (for example &lt;STRONG&gt;Object Explorer&lt;/STRONG&gt; and then right-click on the operative database and choose &lt;STRONG&gt;New Query&lt;/STRONG&gt;).&lt;/LI&gt;&lt;LI&gt;Paste the following in the editor, replacing source queue and destination queue with valid extension addresses/numbers or queue GUIDs (and keeping the single quotes):&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC MoveContact 'source queue', 'destination queue'&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Optionally, to schedule the operation to happen at a later time, add the desired execution time (UTC) as third parameter, for example:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC MoveContact 'source queue', 'destination queue', '12:00'&lt;BR /&gt;&lt;/FONT&gt;Or at later date:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC MoveContact 'source queue', 'destination queue', '2050-12-24 12:00'&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Execute the query (F5).&lt;BR /&gt;The operation should take place either immediately, or at a given date/time.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Procedure description:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@source: Source queue GUID (uppercase, with hyphens) or extension address (case sensitive)&lt;/LI&gt;&lt;LI&gt;@destination Destination queue GUID (uppercase, with hyphens) or extension address (case sensitive)&lt;/LI&gt;&lt;LI&gt;@validFrom Optional operation start date/time – if NULL or in the past, current UTC date/time is used&lt;/LI&gt;&lt;LI&gt;@validUntil Optional operation expiry date/time – if NULL or less than start date/time, start date/time + 1 minute is used&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Examples:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Move chats from chatqueue1 to chatqueue2 and execute immediately:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC dbo.MoveContacts 'chatqueue1@acme.com', 'chatqueue2@acme.com'&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;Move calls from 150 to 151 and execute five minutes from now:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DECLARE @validFrom datetime&lt;BR /&gt;SET @validFrom = DATEADD(MI, 5, GETUTCDATE())&lt;BR /&gt;EXEC dbo.MoveContacts '150', '151', @validFrom&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Move conversations from guid1 to guid2 and execute at specific UTC time on current day:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC dbo.MoveContacts 'DF1AFC30-153D-49CC-97BD-CCFA17C27EFD', 'EE0B0B4F-8465-44FC-8444-F37E5B0259E2', '12:00'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Move conversations from guid1 to guid2 and execute at specific UTC date/time:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EXEC dbo.MoveContacts 'DF1AFC30-153D-49CC-97BD-CCFA17C27EFD', 'EE0B0B4F-8465-44FC-8444-F37E5B0259E2', '2018-12-24 08:00'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:21:34 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Contact-Pro/Moving-queuing-conversations-from-one-queue-to-another/m-p/11521#M400</guid>
      <dc:creator>Nina_Makkonen</dc:creator>
      <dc:date>2023-05-04T12:21:34Z</dc:date>
    </item>
  </channel>
</rss>

