Skip to main content

We are looking at improving UX through ticket logged emails base on source; e.g., 'We have logged a ticket following your call to our Support Analysts' when logged with the source of 'Phone'.

We have successfully implanted this when using the system defined source options using the code below...

ADDITIONAL VARIABLE
>AV_SOURCE_TYPE"] = "event.receiveSourceType",


ACTION PROCESSOR RULE
{

          Internal User - Logged Email - Self-serviced by Portal]],

         

            ACT_TYPE_SC == "ASSIGN"

                and (tonumber(ACT_TYPE_COUNT) == 1)

                and (EVENT_TYPE == "i"

                    or EVENT_TYPE == "s")

                and (AV_REPORTING_USER_SC == AV_AFFECTED_USER_SC

                    or AV_REPORTING_USER_SC == "")

                and (AV_AFFECTED_USER_SC or "") ~= ""

                and AV_AFFECTED_USER_SC ~= "XXEXTERNAL USER"

                and AV_SOURCE_TYPE == "assystnet"

                and (tonumber(AV_BUNDLE_EVENT_ID) == 0)

        ]],

        strSendMailV2 .. "TEMPLATE=SM_INTERNAL_CALL_LOGGED RECIPIENTS=TO_AFFECTED,CC_REPORTING",  

        "stop"

    },

However, we have trouble using this method when using user defined (1-18) source types. The additional variables output a question mark (?) in all instances tried. We have also tried using event.receiveSourceTypeEnum so we can define by the integer value but receive 'unsupported_type' instead.

 

Any suggestions or guidance would be appreciated. We have opened a support ticket and will post here if we get an answer there first.

Hi Steve,

We can see that your incident 397478 is now closed. To help us investigate this further for you could you please zip your Action Processor configuraiton and log then send it to us with 397478 in the subject of your email so we can progress this further for you.

We look forward to your response.

Kind regards,

Michael


We overcame this issue as follows:

Additional Variables:
["AV_SOURCE_TYPE"] = "event.receiveSourceTypeEnum",
[AV_PARENT_SOURCE_TYPE"] = "event.parentEvent.receiveSourceTypeEnum",

AP Rule Example:
{
[[ Internal User - Logged Email - Self-serviced by Portal ]],
[[ ACT_TYPE_SC == "ASSIGN"
and (tonumber(ACT_TYPE_COUNT) == 1)
and (EVENT_TYPE == "i" or EVENT_TYPE == "s")
and (AV_REPORTING_USER_SC == AV_AFFECTED_USER_SC or AV_REPORTING_USER_SC == "")
and (AV_AFFECTED_USER_SC or "") ~= ""
and AV_AFFECTED_USER_SC ~= "XXEXTERNAL USER"
and AV_SOURCE_TYPE == "assystnet"
and (tonumber(AV_BUNDLE_EVENT_ID) == 0) ]],
strSendMailV2 .. "TEMPLATE=SM_" ..environ.. "_INTERNAL_LOGGED_SELF_PORTAL RECIPIENTS=TO_AFFECTED,CC_REPORTING",
"stop"
},

Our current uses for reference:
AV_SOURCE_TYPE == "import_processor"
AV_SOURCE_TYPE == "email"
AV_SOURCE_TYPE == "telephone"
AV_SOURCE_TYPE == "assystnet"

 


Reply