Jump to content
  • 0

Loop Over Comma-Separated List


STWAdmin

Question

I have a submission form where I'm building a comma-separated list of User IDs and a single Description text area.

When submitted, I want to use a Triggered Action to then break down the User ID list (or loop over it), and insert an individual User ID and the Description into another table.

Something like:

User_ID_List = XXXX,YYYY,ZZZZ
Description = (long text block)

For each User_ID in User_ID_List
DO Insert User_ID, Description into MessageTable

Where I would end up with three records inserted into the MessageTable, each with a unique User ID and duplicating the Description field.

This seems doable, but I just don't have the experience with building the Triggered Actions yet. 

Any help is appreciated - thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...