简体   繁体   中英

Trigger a JScript webresource with a workflow on Dynamics CRM

I have a request to if a case on CRM is created between 00:00 to 17:45 and not on weekends, to assign the case to a specific user.

I'm facing an issue that I can not trigger the Jscrip web resource to check the time, once the JS web resources only trigger onload or onsave the form.

Does anyone know how can I trigger that Js without having to open the case or when the case is created?

Thanks

There is no way to run JS from Workflow. The only solution for you is to implement the same functionality as your webresource has using WF/Custom Workflow Actions.

I would comment on Andrii's post but I cannot just yet. I agree with Andrii answer, you cannot fire JavaSript without having the form open, the two next solutions would create a plugin or a custom workflow action.

By passing in the date created to your code, you can parse the date and find out what day of the week it is by following this article https://msdn.microsoft.com/en-us/library/bb762911%28v=vs.110%29.aspx

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM