<?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: Is there a REST API to bring data from a previous object of same entity? in Fraud, AML and Security Intelligence</title>
    <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651729#M586</link>
    <description>&lt;P&gt;Hi Gabriel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You almost got it right! It should have been&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;//10.1.1.98/svi-datahub/documents/Solicitante&lt;STRONG&gt;/9&lt;/STRONG&gt; instead of &lt;STRONG&gt;?id=9&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Assuming your entity is indexed for search and is not using sequential IDs, you could issue a search and sort the results by created time field. Let me know if you need more details on this approach.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Paulius.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 14:06:29 GMT</pubDate>
    <dc:creator>mtlppe</dc:creator>
    <dc:date>2020-05-29T14:06:29Z</dc:date>
    <item>
      <title>Is there a REST API to bring data from a previous object of same entity?</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/649558#M576</link>
      <description>&lt;P&gt;Hi, I'm working with Visual Investigator 10.6, building Internal Entities and workfows. I need to bring data from a previous object of the same Entity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: user is working on Case 100 (id=100). I need my workflow to provide user with data taken from Case 99.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any Rest API that can help me with this? Any orientation will be very welcomed.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 13:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/649558#M576</guid>
      <dc:creator>Gabriel_Lores</dc:creator>
      <dc:date>2020-05-21T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST API to bring data from a previous object of same entity?</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/650666#M581</link>
      <description>&lt;P&gt;Hi Gabriel Lores,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to issue a GET document request to DataHub in order to retrieve the details about a previous case. This can also be done as a REST Service task via Workflow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know the ID of the previous case? If it is always sequential, it should be possible to issue a script task to parse the current ID of the case and subtract one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Paulius.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 10:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/650666#M581</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2020-05-26T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST API to bring data from a previous object of same entity?</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651101#M583</link>
      <description>&lt;P&gt;Thanks Paulus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought it more or less in the way you&amp;nbsp;suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I experienced with this kind of GET request to datahub (in a Rest Service Task):&amp;nbsp;//10.1.1.98/svi-datahub/documents/Solicitante?id=9&amp;nbsp;&amp;nbsp;(where Solicitante is my Entity and 9 is the last object). But I couldn't find the way to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could make it work when I used this kind of GET request:&amp;nbsp;&lt;A href="https://10.1.1.98/svi-datahub/links?_relationshipName=Solicitante&amp;amp;_fromEntityTypeName=Test2&amp;amp;_entityTypeName=Test2&amp;amp;_entityId=12" target="_blank"&gt;https://10.1.1.98/svi-datahub/links?_relationshipName=Solicitante&amp;amp;_fromEntityTypeName=Test2&amp;amp;_entityTypeName=Test2&amp;amp;_entityId=12&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I need the first kind of request to solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more thing: what happens if my Entity does not have a sequential&amp;nbsp;ID but a GUID kind of ID?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 14:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651101#M583</guid>
      <dc:creator>Gabriel_Lores</dc:creator>
      <dc:date>2020-05-27T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST API to bring data from a previous object of same entity?</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651729#M586</link>
      <description>&lt;P&gt;Hi Gabriel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You almost got it right! It should have been&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;//10.1.1.98/svi-datahub/documents/Solicitante&lt;STRONG&gt;/9&lt;/STRONG&gt; instead of &lt;STRONG&gt;?id=9&lt;/STRONG&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Assuming your entity is indexed for search and is not using sequential IDs, you could issue a search and sort the results by created time field. Let me know if you need more details on this approach.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Paulius.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 14:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651729#M586</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2020-05-29T14:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST API to bring data from a previous object of same entity?</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651770#M587</link>
      <description>&lt;P&gt;Thank you, Paulus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Definitely, I will need more detail about the approach you suggest for not sequential ID. In this case, I will be using a not sequential ID for the Entity in general, and my problem is that within that Entity, users want a sequential ID for a report they want to print in PDF. So, they expect VI to bring the next ID number for that report. So, I have to search for the last Entity's object, look for the last number used for that report (recorded in the Entity) and add up 1. It is like to have a new ID within the Entity for this report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again and best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 15:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/651770#M587</guid>
      <dc:creator>Gabriel_Lores</dc:creator>
      <dc:date>2020-05-29T15:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST API to bring data from a previous object of same entity?</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/652172#M590</link>
      <description>Hi Gabriel,&lt;BR /&gt;&lt;BR /&gt;You would need to issue a search query to svi-sand-service that sorts by creation timestamp field. &lt;BR /&gt;&lt;BR /&gt;As the Visual Investigator REST API is not yet public, may I suggest contacting Technical Support via &lt;A href="https://support.sas.com/en/technical-support.html" target="_blank"&gt;https://support.sas.com/en/technical-support.html&lt;/A&gt; and we can discuss it in more details.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Paulius Peciura.</description>
      <pubDate>Mon, 01 Jun 2020 09:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Is-there-a-REST-API-to-bring-data-from-a-previous-object-of-same/m-p/652172#M590</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2020-06-01T09:26:13Z</dc:date>
    </item>
  </channel>
</rss>

