Skip to main content
Known Participant
Aug 16, 2021 9:06 PM UTC
Question

Is there a way to create a folder using a a!forEach loop in a script task

question in the title.

Thank you.

    5 replies

    mikes0011
    Brainy
    Aug 16, 2021 9:52 PM UTC

    No.  Script tasks can't execute smart services, for one thing - and also it wouldn't really work in an a!forEach loop.  Any reason you can't accomplish what you're after using a standard Create Folder node with MNI?

    The Expression Guru
    Known Participant
    Aug 17, 2021 12:52 PM UTC

    well i have a to create folders for new items that get created daily. I don't know how many will be created daily, but I know that in the past it was more than 1000 items, wich causes issues with MNI.  

    dastagirid756
    Participating Frequently
    Aug 17, 2021 12:57 PM UTC

    If its the issue with MNI, follow other strategies like

    Looping topology or

    MNI with recommended best practices or

    Splitting the flow into main and sub process or

    Finally you can increase the MNI limit (recommended under constraints)