<?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: Visual Investigator workflow task script to add related entity variable to the workflow in Fraud, AML and Security Intelligence</title>
    <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/650652#M579</link>
    <description>&lt;P&gt;Thanks for your reactivity.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This was the solution:&amp;nbsp;&lt;BR /&gt;The authorization token when using the REST service task will be be included in the header automaticaly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;URL:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;/svi-datahub/links_relationshipName=Sinistre&amp;amp;_fromEntityTypeName=Dossier&amp;amp;_entityTypeName=Dossier&amp;amp;_entityId={copied ID into workflow variable}&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;in the REST URL. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then save the response based on JSON fields to workflow variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 10:15:35 GMT</pubDate>
    <dc:creator>iakrim</dc:creator>
    <dc:date>2020-05-26T10:15:35Z</dc:date>
    <item>
      <title>Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649504#M571</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I wanted to use the datahub api to get a related column from a related entity (Claim) and make it a part of the workflow of my Case entity so I can make API calls to external tools and apps.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using the task script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var caseRelationshipsJson = doGet("/svi-datahub/links?_relationshipName=Sinistre&amp;amp;_fromEntityTypeName=Dossier&amp;amp;_entityTypeName=Dossier&amp;amp;_entityId=" + svi_dossier_id );
var caseRelationItems=caseRelationshipsJson.items;

var ID_sin = caseRelationItems[1].toObjectId
execution.setVariable("ID_SINISTRE", ID_sin);&lt;/PRE&gt;&lt;P&gt;I have no idea why this does not work or how to debug it.&amp;nbsp;&lt;BR /&gt;Does doGet() use the authetification of the session or should I add a relative authetification token to that if so how to ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649504#M571</guid>
      <dc:creator>iakrim</dc:creator>
      <dc:date>2020-05-21T09:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649510#M572</link>
      <description>&lt;P&gt;Hi iakrim,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which version of Visual Investigator are you running?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;svi-datahub-service logs would be a good place to start with, which would contain the error, if there is one.&amp;nbsp;I managed to reproduce the error you are seeing and it suggests doGet() function does not exist.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Paulius Peciura.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 09:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649510#M572</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2020-05-21T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649511#M573</link>
      <description>&lt;P&gt;Hi Thanks for the reply.&amp;nbsp;&lt;BR /&gt;I'm on&amp;nbsp;&lt;/P&gt;&lt;DIV class="row"&gt;&lt;DIV class="col-4 svi-about-property-label"&gt;VI : 10.6.0&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="row"&gt;&lt;DIV class="col-4 svi-about-property-label"&gt;SAS Viya&amp;nbsp;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;V.03.05&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 May 2020 09:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649511#M573</guid>
      <dc:creator>iakrim</dc:creator>
      <dc:date>2020-05-21T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649519#M574</link>
      <description>&lt;P&gt;Hi iakrim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome. Did svi-datahub-service logs provide you some information in order to debug the issue further?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was about to suggest that perhaps a REST Service task will be easier to implement. It can issue an authenticated request, parse the response body and write the values from the response into a workflow variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Paulius Peciura.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 10:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649519#M574</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2020-05-21T10:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649532#M575</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To give you more context I have created 2 api clients (1st one I use it to automate incremental indexation and the 2nd one I wanted it for the workflow related objects calls).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Attacked you will find the two responses I get using an API client. And what happends if the same example is called from the browser via session credentials :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 st client used for Auto Index&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1st client (for auto index)" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39690iB8A2D3AEDFDA0D27/image-size/large?v=v2&amp;amp;px=999" role="button" title="1st Client result.PNG" alt="1st client (for auto index)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;1st client (for auto index)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2nd client created following the SAS guide on github page :&amp;nbsp;&lt;A href="https://github.com/sassoftware/devsascom-rest-api-samples/blob/master/CoreServices/sasLogon.md" target="_blank"&gt;https://github.com/sassoftware/devsascom-rest-api-samples/blob/master/CoreServices/sasLogon.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2nd client (following the client creation from the sas github page)" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39691i6BC4BFC783187613/image-size/large?v=v2&amp;amp;px=999" role="button" title="2nd Client result.PNG" alt="2nd client (following the client creation from the sas github page)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2nd client (following the client creation from the sas github page)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The expected response like what happends when showing the same example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NAvigation calls" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39692i626E819B51F6C5E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Navigation behaviour.PNG" alt="NAvigation calls" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;NAvigation calls&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 11:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/649532#M575</guid>
      <dc:creator>iakrim</dc:creator>
      <dc:date>2020-05-21T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/650650#M578</link>
      <description>Hi iakrim, &lt;BR /&gt;&lt;BR /&gt;I was made aware of a Technical Support track raised for the same issue which has now been resolved. &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Paulius Peciura.</description>
      <pubDate>Tue, 26 May 2020 10:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/650650#M578</guid>
      <dc:creator>mtlppe</dc:creator>
      <dc:date>2020-05-26T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Investigator workflow task script to add related entity variable to the workflow</title>
      <link>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/650652#M579</link>
      <description>&lt;P&gt;Thanks for your reactivity.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This was the solution:&amp;nbsp;&lt;BR /&gt;The authorization token when using the REST service task will be be included in the header automaticaly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;URL:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;/svi-datahub/links_relationshipName=Sinistre&amp;amp;_fromEntityTypeName=Dossier&amp;amp;_entityTypeName=Dossier&amp;amp;_entityId={copied ID into workflow variable}&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;in the REST URL. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then save the response based on JSON fields to workflow variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 10:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Fraud-AML-and-Security/Visual-Investigator-workflow-task-script-to-add-related-entity/m-p/650652#M579</guid>
      <dc:creator>iakrim</dc:creator>
      <dc:date>2020-05-26T10:15:35Z</dc:date>
    </item>
  </channel>
</rss>

