cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Possible mismatch between Get Attachment Names action and Loop For Each action?

Jump to solution

There is a SharePoint Online list and some items have one or attachments (actually images that I need to integrate with DocGen later). So, I was jumping up and down with Release 107 with all these great new actions. You can imagine I had a good weekend. But now it's Monday and... something doesn't seem to match.

To store the attachments of a SharePoint Online list this is to me the basic component workflow:

2020-08-27_11-51-09.jpg

Basically: I get the array of names. Then loop through them and store the files. All done.

 

But the pain already shows in the picture. The Get Attachment Names action demands an object (I love these objects and how well they are integrated in the UX) as a result. Instant protest from the action: Must be inside the Loop For Each. ??? The help file clearly shows something else:
2020-08-31_15-37-05.jpg

I cannot select a collection for output. It has to be an object.

 

Also, the Loop For Each action demands a Collection but won't accept the collection of names embedded in the object.

2020-08-31_15-44-24.jpg

This is where I get stuck. 

What did I miss? Any light on this is appreciated.

Labels: (1)
0 Kudos
Reply
3 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: Possible mismatch between Get Attachment Names action and Loop For Each action?

Jump to solution

Hi Woutert,

 

Thanks for raising this! 

The issue lies in the name of your object "objAttNames"; For a technical reason, having "obj" in the variable name causes the "Loop for each" error you're facing.

 

Luckily, there is a quick work around - By changing your variable name for e.g. to "AttNames", you will be able to complete the configuration successfully.

 

This issue has already been reported to the dev team and they have a fix underway. This will no longer be an issue in the coming weeks. Until then, if you could avoid the term "obj" in your variable names, you shouldn't face this again.

 

Please let me know if you have any further questions,

Kate

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: Possible mismatch between Get Attachment Names action and Loop For Each action?

Jump to solution
Thanks for solving it. No problem. Being an old-fashioned variable naming convention guy got me this time I guess.
0 Kudos
Reply
Highlighted
Community Manager Community Manager
Community Manager

Re: Possible mismatch between Get Attachment Names action and Loop For Each action?

Jump to solution

@woutert don't worry, it got several of us ;)

0 Kudos
Reply