Avatar

Employee Advisor

Hi Experts,

 

After troubleshooting a webapp that was sending multiple commands to start a workflow, I noticed a difference in the following post Events
both work in terms of successfully triggering the workflow, however, NLWS.xtkWorkflow.PostEvent would send the command multiple times, is this a bug?
 
NLWS.xtkWorkflow.PostEvent("WKF_ESG", "signal", "", {variables: {"recipientId":parseInt(ctx.recipient.@id),"prospect":1,}}, false);  
 
xtk.workflow.PostEvent("WKF_ESG", "signal", "", <variables recipientId={parseInt(ctx.recipient.@id)} prospect="1" />, false);

https://docs.adobe.com/content/help/en/campaign-classic/technicalresources/api/p-14.html

I correlated the following two errors also each time the webapp used the NLWS version; which matches the webapp sending the command twice.

 

 

    2021-07-31 00:22:06 JST-310034 Function logonEscalation used by 'Anonymous account' to become 'Web applications agent (webapp)' (context=rvletContext).
    2021-07-31 00:20:47 JST-310034 Function logonEscalation used by 'Anonymous account' to become 'Web applications agent (webapp)' (context=rvletContext).

 

 

**Update**
 
I found the root cause and seems  Outlook safelinks masking our webapp URL which  makes multiple requests to my webapp. perhaps because their protection system first takes the requests and redirects, not sure if this is the case but, has someone experienced something similar?
 
For example the following link, upon click, outlook makes 2 subsequent requests.