Workflow to fetch previous version of the subscription id which is mapped to an invoice.
To pull invoice data and then update (data from the custom field) to the most recent version of a subscription and not on the subscription which is mapped to the invoice.
In order to achieve this, you have to include one more Retrieve task between the iterate (after Export of Invoices) and the update as shown below.
1. Retrieve task
Select the subscription ID and in conditions give the below condition.
Please give a different payload name as highlighted in the 2nd screenshot to avoid confusion.
2.For the Update task:
Select the Data.sub1 in the update task as shown below.
On doing the above the current version of the subscription will be updated rather than the subscription version which is mapped to the invoice.
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √