<?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 RE: #BPTechTips - How to obtain license information in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81533#M33092</link>
    <description>Great stuff &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1854"&gt;@EmersonF&lt;/a&gt;. Thanks for sharing. :)​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ritansh Jatwani Senior Consultant&lt;BR /&gt;Consultant&lt;BR /&gt;EY&lt;BR /&gt;Gurgaon&lt;BR /&gt;*If you find this post helpful mark it as best answer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Oct 2021 11:53:00 GMT</pubDate>
    <dc:creator>ritansh.jatwani</dc:creator>
    <dc:date>2021-10-27T11:53:00Z</dc:date>
    <item>
      <title>#BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81532#M33091</link>
      <description>&lt;P&gt;Guys, good morning, I noticed that some people are wanting a way to get information about the licenses, so I had the idea to work on it, the result follows, a query that returns information such as company name, Expiration date and how many days are left missing, I hope it's useful for you:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-sql"&gt;&lt;CODE&gt;select
   issue_to as 'Name of Company',
   FORMAT(License_expires_on,'dd/MM/yyyy') 'Date of validate',
   datediff(day, getdate(), License_expires_on) 'Days Remaining'
from
   (
      select
         cast (lic.licensexml as xml).value('(/license//licensee/node())[1]', 'nvarchar(10)') as [issue_to],
         cast(cast(lic.licensexml as xml).value('(/license//expires/node())[1]', 'nvarchar(10)') as date) as [License_expires_on],
         cast(lic.licensexml as xml).value('(/license//maxconcurrentsessions/node())[1]', 'nvarchar(10)') as [available_licences] 
      from
         (
            select
               convert (varchar(2000), cast(' ' as xml).value('xs:base64Binary(sql:column("base64_column"))', 'VARBINARY(2000)')) AS LICENSEXML 
            FROM
               (
                  select
                     licensekey as base64_column 
                  from
                     bpalicense
               )
               a
         )
         lic
   )
   as pog 
where
   pog.License_expires_on &amp;gt;= getdate() 
order by
   pog.License_expires_on​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11443.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11613i147CEA39BA3C0897/image-size/large?v=v2&amp;amp;px=999" role="button" title="11443.png" alt="11443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;A data-tag-text="BPTechTips" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=tags%3A%22BPTechTips%22&amp;amp;executesearch=true" data-tag-key="96c6fa99-5a9a-4919-98a6-d9ce55afe99f"&gt;#BPTechTips&lt;/A&gt; &lt;A data-tag-text="License" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=%23License&amp;amp;executesearch=true" data-tag-key="dc7ecdd4-75b5-41b5-968c-317d816ffea0"&gt;#License&lt;/A&gt; &lt;A data-tag-text="Helpfull" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=%23Helpfull&amp;amp;executesearch=true" data-tag-key="539e52a6-ef3c-4435-8f55-0f68eccf10b3"&gt;#Helpfull&lt;/A&gt;​​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;+5581988869544&lt;BR /&gt;If my answer helped you? Mark as useful!&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 13:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81532#M33091</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-10-26T13:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81533#M33092</link>
      <description>Great stuff &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1854"&gt;@EmersonF&lt;/a&gt;. Thanks for sharing. :)​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ritansh Jatwani Senior Consultant&lt;BR /&gt;Consultant&lt;BR /&gt;EY&lt;BR /&gt;Gurgaon&lt;BR /&gt;*If you find this post helpful mark it as best answer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2021 11:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81533#M33092</guid>
      <dc:creator>ritansh.jatwani</dc:creator>
      <dc:date>2021-10-27T11:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81534#M33093</link>
      <description>Emerson,&lt;BR /&gt;&lt;BR /&gt;same achieved using VB code&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE class="language-vb"&gt;&lt;CODE&gt;Public Function GetLicenses() As DataTable

	Dim LicenseInfo As List(Of KeyInfo) = app.gSv.GetLicenseInfo() 

    Dim dt As New DataTable
    dt.Columns.Add("Owner", GetType(System.String))
    dt.Columns.Add("Start Date", GetType(System.DateTime))
    dt.Columns.Add("Expiry Date", GetType(System.DateTime))
    dt.Columns.Add("Sessions", GetType(System.Int16))
	
	For Each ki As KeyInfo In LicenseInfo
		Dim dr As DataRow = dt.NewRow
		dr("Owner") = ki.LicenseOwner()
		dr("Start Date") = ki.StartDate()
		dr("Expiry Date") = ki.ExpiryDate()
		dr("Sessions") = ki.NumConcurrentSessions()
		dt.Rows.Add(dr)
	Next
	Return dt
	
End Function

License_Information = GetLicenses()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jerin Jose&lt;BR /&gt;Technical Product Owner&lt;BR /&gt;EY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;*"If you find  this post helpful mark it as best answer, .*&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81534#M33093</guid>
      <dc:creator>JerinJose</dc:creator>
      <dc:date>2021-10-27T12:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81535#M33094</link>
      <description>Wow, interesting, do you use this inside BP in a code stage?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;+5581988869544&lt;BR /&gt;If my answer helped you? Mark as useful!&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Oct 2021 15:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81535#M33094</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-10-27T15:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81536#M33095</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1854"&gt;@EmersonF&lt;/a&gt; I do know that we can get the license info from system&amp;gt;license screen which i am assuming makes it available in DB ! Can we simply use that or is it something else we are trying to achieve here mate ?​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Vipul Tiwari&lt;BR /&gt;Senior Process Simplification Developer&lt;BR /&gt;Amazon&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Oct 2021 05:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81536#M33095</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-10-30T05:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81537#M33096</link>
      <description>That's exactly what we're doing &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;+5581988869544&lt;BR /&gt;If my answer helped you? Mark as useful!&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Oct 2021 08:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81537#M33096</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-10-30T08:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: #BPTechTips - How to obtain license information</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81538#M33097</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1854"&gt;@EmersonF&lt;/a&gt; Ahhaa &lt;SPAN&gt;Gotchya , I feel BP should create a standard VBO for this . To give &lt;SPAN style="font-size: 14px;"&gt;license&lt;/SPAN&gt; level information . &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Vipul Tiwari&lt;BR /&gt;Senior Process Simplification Developer&lt;BR /&gt;Amazon&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 30 Oct 2021 10:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BPTechTips-How-to-obtain-license-information/m-p/81538#M33097</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-10-30T10:10:00Z</dc:date>
    </item>
  </channel>
</rss>

