Multiple RITM created via Inbound Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 05:48 PM
Hi,
We have an inbound action to generate RITM for Employee Termination.
However, it creates multiple RITM like this. For 1 user (resigned), it creates multiple RITM.
How can I eliminate the multiple creation of RITM?
Current Inbound Actionscript:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 06:39 PM
Hi, your post does not clearly indicate whether you have reviewed the logs from the inbound email and confirmed that only 1 inbound action is triggered by the received email message?
Looking at your code the 'for' statement does not have any structure IE it does not have {} constraining it's code, and it may be that your code loops creating x number of cart items because of this? if it does you should be seeing multiple 'User' logging statements which would confirm this?
Also you have commented out code which appears to be incorrectly syntaxed script-include function calls?
if you are trying to call script-include functions the format is normally
new <scope>.scriptIncudeName().functionName(<parameters>)