This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hello All,
Simple ask but i believe its achievable
I have an 2 input files.
Input 1 : contains these 4 columns
Record Type | ID | Parent ID | Ultimate Parent id |
Input 2 : contains this 1 column
ID |
Goal :
Source_Company__c | Target_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 Type | ID | Parent ID | Global EntityId |
APAC | 0013a00001gELT3AAO | 001j000000heNBNAA2 | |
EMEA | 0013a00001gDCVHAA4 | 001j000000heNBNAA2 | 001j000000heNBNAA2 |
EMEA | 001j000000heO9iAAE | 001j000000heNBNAA2 | 001j000000heNBNAA2 |
APAC | 001j000000heO9gAAE | 001j000000heNBNAA2 | |
EMEA | 001j000000heO9YAAU | 001j000000heNBNAA2 | 001j000000heNBNAA2 |
EMEA | 001j000000heO9QAAU | 001j000000heNBNAA2 | 001j000000heNBNAA2 |
Data Mock up Input 2
ID |
001j000000heNBNAA2 |
Expected outcome
Source_Company__c | Target_Company__c |
001j000000heNBNAA2 | 0013a00001gDCVHAA4 |
001j000000heNBNAA2 | 001j000000heO9iAAE |
001j000000heNBNAA2 | 001j000000heO9YAAU |
001j000000heNBNAA2 | 001j000000heO9QAAU |
Looking forward to your help
Solved! Go to Solution.
Hi @Masond3
Here is a workflow for the task.
Output:
Workflow:
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 😀👍
Thank you buddy,
Swift and efficient 🙂