![]() Otherwise if you try to call it on the command line you will see a bunch of html containing an error.Īll the changes below will need to happen on the server you deploy your project to. When you use a blank app there are still some libraries that get called where the paths will not work properly.ĭisable security and enable direct call on the page. I recently had to create a email service using a cron job and scriptcase. Am I being stupid that this should work as simple as this, or is there a lot more involved? Surely I am not the first person that needs to do something like this? Even if I ignore the output, I still cannot find anything in any error logs, and the no entry is made in the log table associated with the log schema. If I then use a terminal window and go to the directory where blank the app is, and enter ‘php index.php’, a whole bunch of what looks like HTML (possibly CSS?) is sent to standard output. But I cannot find an entry in any error log resulting from the error_log() statement - is this expected? Should this work within an SC app (I have not tried this before)? ![]() When I generate and run this from within SC, I do get “Done” displaying on a blank page and an entry is made in the log table associated with the log schema. Sc_log_add (“testing”, “Batch application works.”) The Execute event only has three lines in it: This is the simplest app - I hardly changed anything when I used the New App wizard. I did create a blank app ( not a control app). I tried building a very quick blank app, but when I tried to test run it in background (command line ‘php /index.php’ it crashed out with a series of warnings (library not found) and finally an uncaught exception. ![]() Is there a recommended app type, or an approach I can use to do this? Hence I was going to use cron to kick off a PHP process regularly (it does not have to be a daemon driven off a signal or anything that elaborate). The background batch app does not have to be executed in a critical timeframe, it just needs to check the DB every 30 mins or so. Rather than start from scratch, and given I already have built internal libraries in SC to do the required processing for other parts of the system, I would like to build the background batch app in SC. In this example, we will populate a new case form with below parameters – I am using common fields in the incident form for this.The solution I am building has the need for a background process to regularly check the database, and based upon some flags and the time, it needs to update data in the database. How to create a new case with predefined parameters? You will find the “Agent Scripts” tab in there. ![]() Go to “Customer Service Workspace” > Press “SHIFT” key and click on any case record, it should open in a tab and on your right side, there will be a “Smart Assist” pane. ![]() Where do I find the Run Macro feature inside a case form? I will outline some of the common questions and answers below with examples: However, if you are completely new to this, I have outlined every step required.īasic steps are first create macros> then create agent scripts > add the scripts to the sessions > Run macro within Case tab If you are familiar with Power Automate and Logic Apps, this will be easy. Macro : An automation flow to perform specific tasksĪgent Script: A set of steps followed by an agent ( these steps can include macros as well)Īutomation Dictionary – What we use to get context parameters such as Current Session, Current Tab, Current Case etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |