Passing data to a Sub Flow Input of Array.String type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2025 12:30 PM - edited 09-26-2025 12:31 PM
So I have a Sub Flow with an input variable of type Array.String and it's named 'pcname'. If I test the flow and just type a name in there it works fine. However, when I use the Code Snippet and try to pass a string variable (converted to an array) to that Sub Flow input, it errors out.
How do I pass data to the 'pcname' "Array.String" input variable on the Sub Flow? I am just passing 1 variable for now.
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2025 07:36 AM - edited 09-30-2025 07:37 AM
I am trying to send 1 PC Name to the subflow, get the Object ID, and add it to a group essentially. I've tried doing it with all string inputs and I've tried doing it with the PC Name as an array...either way works when testing, but not when passing the pcname via a run script.
Here are the Flow inputs for the flow using all string inputs:
Here are the Flow input for the flow using an Array.String as an input. I even tried to set the ID in this one to a string flow variable...still errors with that same error from the previous post screenshot, but works when "Tested":
Crazy thing is...I went ahead and built my own Rest Message and Run Script to do exactly what this Flow is attempting to do (get Device ID and add Device to group). I am learning that Flow Designer has some real inconsistencies and unexplainable issues. So I am not sure I can rely on it for certain things I am trying to do.
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
