Rollback Catalog Task Revert Reason field in email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 09:58 AM
Team,
I am working on an enhancement that needs to rollback to the 1st catalog task if the IP address is wrong. When the 2nd catalog task is generated and the fulfillment team see's the IP Address entered is wrong the team wants to close skip the 2nd catalog task and rollback to the 1st catalog task with the 'revert reason' details sent in the email notification as to why.
The rollback of catalog task works as expected, but the 'Revert reason' data doesn't show up in the email notification. My guess is the rollback activity removes it since tasks needs to restart.
My question is - is there a way to get the 'revert reason' data (single line text field on sc_task table)? I currently have an event task in my workflow to kick off the email notification.
Thanks for any assistance to getting this to work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 12:00 PM
Can you post some screens of your BR?
I can try to put together a PoC on my end to see if I get the same result in my PDI I suppose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 01:11 PM
Shane,
Im back to my desk. Let me try that. I stepped away to get some lunch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 03:07 PM
Hi Shane,
I believe I have it working. I removed the create event workflow activity all together. I couldn't get the Revert Reason field to populate in the email even when I put it before the rollback activity.
I kept the onBefore BR as this has been successful, but only the second time around. Example the first iteration of testing the BR doesn't trigger, but the 2nd interation it does. Im going to try and place a timer in front of the rollback in case it runs before the BR is triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 12:22 PM - edited 12-01-2023 12:23 PM
I want to verify this is the order things are happening:
- Catalog Task 1 is closed
- Catalog Task 2 is created
- If Catalog Task 2 has 'revert reason' then Rollback to 1
- Trigger event/notification to include info from 2
I think the issue is just your order of operations. Move the Create Event activity in front of the Rollback activity. Unless there isn't some obvious reason I'm missing that they need to run in that order.
(get rid of that BR I offered up)