Global variable for a folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 03:27 AM
I am trying to make a script that will executes in a folder and creates an issue for all files from folder. I want to run the first 20 files from folder and for this i want to make a global variable that increments when a script is executing for a file.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 05:07 AM
Uhmm I am not so sure if I've understood well your needs but you can send in your webscript's url an argument with a value. In your script you can take it and increment this number.
Please check documentation page. You have an example here (blog search section, for example).
Is this helping you?
Cheers,
Cris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2021 07:05 AM
You can create counter variable on folder and update it on each file process.