Method Community

 

Loop through list of comma separated values of unknown length

Last post 12-09-2015 1:25 PM by aaronjwood. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-02-2015 3:22 PM

    Loop through list of comma separated values of unknown length

    Hello,

    Is it possible to loop through an action result that consists an unknown number of comma separated values and do something with each value? For example, if I have a comma delimited list of recordID's of files in the DocumentLibrary table that I want to delete, can this be done without knowing the number of items in the list?

    Thanks,

    Aaron

  • 12-09-2015 12:23 PM In reply to

    Re: Loop through list of comma separated values of unknown length

    Hey Aaron,

    Yes it is possible. What you can do is use loop through a table using the "Build Selection List" option. You can build a selection list based on an action result which you can get from a text box on the screen. Loop through DocumentLibrary that has those recordIDs and run an action that you can see the result of (ie. Delete record from the table ). 

    Hope this helps.

    -- Loi

    Loi Nguyen
    Community Support Specialist
    Method:CRM
    l.nguyen@method.me
    Toll Free: 1.888.925.6238
    Local and overseas: 416.847.0400
  • 12-09-2015 1:25 PM In reply to

    Re: Loop through list of comma separated values of unknown length

    I know how to build the selection list. My question is once the selection list is built, how do you loop through the values in the selection list one by one and do "some action" on each of the items.

    --Aaron

Page 1 of 1 (3 items)