- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I had an Inventory workspace with records of all available parts. Then I had another Request workspace where users will raise a request to draw out any part that they might need and this request will have to go through a workflow where a selected approver will approved the request before the user can withdraw the part from the store.
In the raise request, when user select the part from a picklist created using the Inventory workspace, the Quantity field as a derive field will display the 'Live' value from the Inventory workspace in the request to enable user to check on how many pieces are currently available. User will fill the Required Quantity field with the amount part they need into the request which will be sent to approver to approved.
My question: Is there a way that when the approver approved the request, the Quantity (in the Inventory workspace) can be updated with the new value after deducting the Required Quantity? My guess is, probably an action script placed in the approve transition might do the job,however, is there an example how the script will look like? Any similar examples would be good for me to kick start.
Really appreciate any suggestions or examples provided.
Thank you in advance for all the help.
Best regards,
Carol Mak
Solved! Go to Solution.