Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Using 2 input files to find child records to produce new Output

Masond3
8 - Asteroid

Hello All, 

Simple ask but i believe its achievable 

 

I have an 2 input files.

Input 1  : contains these 4 columns 

 

Record TypeIDParent IDUltimate Parent id


Input 2 : contains this 1 column 

ID

 

Goal : 

  • Any  ID within Input 2 search within the  "Parent Id" in input 1
  • return all Ids (from input 1)  where the  "ParentId" = id (from input 2)  
  • Produce a new table with corresponding ID 
Source_Company__cTarget_Company__c


 "Source_Company__C"  = Id from Input 2
 "Target_Company__c" = Id from Input 1 where parentid = Id of input 2


NB : there might be scenarios where the ID from input 2, may not exist in Parentid input 1. If this is the case in the output file there shouldnt be any records where target_Company_c is blank 

 

Data Mock up Input 1 

Record TypeIDParent IDGlobal EntityId
APAC0013a00001gELT3AAO 001j000000heNBNAA2
EMEA0013a00001gDCVHAA4001j000000heNBNAA2001j000000heNBNAA2
EMEA001j000000heO9iAAE001j000000heNBNAA2001j000000heNBNAA2
APAC001j000000heO9gAAE 001j000000heNBNAA2
EMEA001j000000heO9YAAU001j000000heNBNAA2001j000000heNBNAA2
EMEA001j000000heO9QAAU001j000000heNBNAA2001j000000heNBNAA2

 

Data Mock up Input 2

ID
001j000000heNBNAA2

 

Expected outcome 

 

 

Source_Company__cTarget_Company__c
001j000000heNBNAA20013a00001gDCVHAA4
001j000000heNBNAA2001j000000heO9iAAE
001j000000heNBNAA2001j000000heO9YAAU
001j000000heNBNAA2001j000000heO9QAAU

 

Looking forward to your help 

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Masond3 

 

This can be can achieved by a join tool. Let me take a look.

atcodedog05
22 - Nova
22 - Nova

Hi @Masond3 

 

Here is a workflow for the task.

Output:

atcodedog05_1-1606237815817.png

 

Workflow:

atcodedog05_0-1606237799679.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Masond3
8 - Asteroid

Thank you buddy, 
Swift and efficient 🙂 

Labels