I'm working with Salesforce Marketing Cloud (SFMC) Server-Side JavaScript (SSJS) and using the WSProxy object to interact with various Marketing Cloud APIs. I've come across two methods for performing actions: performItem and execute.
From my research, I understand that both of these methods are used to perform operations with the WSProxy object, but I'm not clear on how they differ in terms of functionality, performance, and use cases. Specifically, I'd like to know:
What is the core difference between the performItem and execute methods in SFMC SSJS WSProxy?
In which scenarios should I prefer one method over the other?
Are there any performance considerations or best practices I should be aware of when choosing between them?
Any insights or clarifications on when and why to use each of these methods would be really helpful!