You can go through the below thread for similar ask
https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/invoking-external-...
View solution in original post