Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Could someone help me identify the error in the trigger script?
Summary:
We have a requirement to automatically change the status to "Resolved" for service requests with the subject "FYI: Termination" when they are assigned to a specific queue and we are using Classic Helpdesk.
For this, we added a trigger of type "After Transaction Posted" in the server script for the Service Request object, but it is not functioning as excepected.
if (QueueId == '300008995681606' &&
Title && (Title.contains("FYI: Termination")) &&
(StatusCd == 'ORA_SVC_INPROGRESS' || 'ORA_SVC_NEW') && StripeCd == 'ORA_SVC_HCM'
)
{setAttribute('StatusCd', 'ORA_SVC_RESOLVED')}
Could someone help me identify the error in the trigger script?
Content (required):
We have a requirement to automatically change the status to "Resolved" for service requests with the subject "FYI: Termination" when they are assigned to a specific queue.