GarethJ1

Run workflow against item in sublibrary

Discussion created by GarethJ1 on May 16, 2018
Latest reply on May 24, 2018 by ChristofN

Hi everyone

 

I have a form setup that is being used to to manage credit card transactions.  This form contains a related sublibrary which is used to upload receipts for items ordered and metadata is set on these receipts.  The value of the items in the sublibrary are then used to calculate the overall total for the master summary list item.

 

I have created a custom workflow to be used if a user wants to remove one of the items attached to the sublibrary.  i can't use the standard delete function as before deleting the item its value needs to be removed from the total expenditure.

 

As you can see from the image below I have created a link labelled Remove Item and ideally I would like to fire the workflow when this item is clicked.  However, I can't see a way of passing the ID of the selected item in the sublibrary to the workflow.

 

Is this possible?  A possible workaround would be for me to create a custom action for the list item menu on the sublibrary but this takes the user to a new tab when the workflow runs rather than the workflow running in the background.

 

Any advice would be gratefully received.

Outcomes