Save Logic App runs to a database - azure-api-apps

I want to be able to log my Logic App runs and display them in a my own app. Just metadata like if the run was Successfull/Failed, ID etc.
Is there any way to save the runs and store them in a database or similar?
Thanks

You should be using the preview version of logicapps sdk to get this information. refer this link https://azure.microsoft.com/en-us/updates/logic-apps-net-sdk-available/

PowerShell command Get-AzureRmLogicAppRunHistory returns exactly what you want. This can be stored in specific format (e.g. JSON) in database (e.g. blob) and use in your app.

Related

How to generate .sas in SAS data Integration Studio

Since i want to schedule a job in SAS-DIS. i tried the process using sas management console,but an error is popping up saying scheluing server not found. and scheduling server is an extra package that has to be purchased.
and because of that i need running on crontab on linux.
Do i need to export my job in SAS Data Integration Studio into format .sas or i can execute using .spk file format ?
if yes, i need to generate into .sas format . Please tell me how to generate that format. since i can't convert it ? Thank you.
A ´*.pkg ´ file contains much more information than your SAS code. It also contians information on the transformation and option you used as well as the graphical layout of your job.
A simple way to grab your SAS code is to open the properties of your job and select the tab with the code. However, that is not the way you should do it to schedule your job.
What you should do, is to create a "Deployed Job" object from your job. This has the advantage that your successor, or you when you come back to the project in a year, kan find out where you deployed the code today.

Update database from external JSON with scheduled task on Windows server

I have an ASP.NET MVC 5 project with database and external JSON file that is updated once a day, by third-party website.
What I'm trying to do is to update my DB once a day accordingly with the JSON (the precision is not the issue here).
Currently I'm using a button that call to Action that parsing the JSON and update the database, and I want to do it automatically.
As far as I understood, running the scheduled task from the MVC application is bad practice and risky, and running external dedicated service is preferred.
If I understood it correctly, I can make a console application that will parse the JSON and update the DB automatically, but I'm not sure if this console application can run on the windows server, and if so, how to do it (and I'm also not sure that this is really good idea).
So, I would be very happy if you can advise me here.
Thanks.
Finally the solution was to build a console application that parse JSON and updating the database.
Then, I used the built-in task scheduler in my hosting control panel to run the application (in my case the control panel is plesk)

How to add application to Azure

We have a console application which get data from a webservice and process it and then updates the items in a sharepoint list. Now we would want to upload this console application to Azure function?
I uploaded the release folder inside the wwwroot in KUDU. But seems like everything time I run the test, it always picks the run method from run.csx file?
Is it possible to incorporate the application into Azure ?
You have 3 options:
Use a batch Function
Use a C# Function but leverage the Process class object.
Use pre-compiled Functions.
Here's a similar GitHub thread with more information: https://github.com/Azure/Azure-Functions/issues/42

podio api: get the latest revision date of a single field or an app

Context: I'm building a Node app to backup our Podio apps' calculation fields via the Podio API; they are saved as flat files and version controlled with Git. We want to have the possibility to edit the text files locally, commit and then push back the modified files.
I've been inspecting the object's keys returned but can't find a way to determine the latest revision date for the app (not the item).
I came across the 'current_revision' when polling the app (/app/{app_id}/) but can't figure out how to use a revision number for an app.
I also noted (very hopeful) the wording "This method will always return the latest revision of the app definition." on the page https://developers.podio.com/doc/applications/get-app-22349 but I couldn't find any other mention of this… Can I get to the date via some meta information on an app's revisions?
Ideally, I would like to compare the last modification date of a local file (fs.stat) with the last revision date from the app (or from the app's field).
Any insights appreciated; thanks!
The Podio API does not currently provide a way to access additional information regarding App revision history. One approach that you might try is to utilize Podio's Webhooks, which can be setup to trigger whenever an app is updated (app.update). Similarly, when an App template is modified, a notification w/ timestamp is generated, which you can subscribe to.
I have generated a feature request with the API team regarding a means to access additional revision history for an App, and have been informed that this limitation of the API is on their radar.
Thanks for your question, and interest in developing with Podio. Happy coding!

liferay portal: generate database not working

I've created a portal-ext.properties and added:
jdbc.default.driverClassName=oracle.jdbc.driver.OracleDriver
jdbc.default.url=x
jdbc.default.username=y
jdbc.default.password=z
schema.run.enabled=true
schema.run.minimal=true
And I've added my ojdbc5.jar to lib/ext.
However when I run my startup.bat the database isn't being generated?
Does anyone know why this is occuring?
Check to make sure that the database is up and running. Can you log into Oracle using SQL*Plus or some other client using the credentials you've provided? If you can't, Liferay won't be able to either.
Can you try using lifery's Data Migration feature? You can start your server with default HSQL script and then try to migrate (which can automatically create tables as well).
Go to Control Panel->Server Administration.
- Enter the values in section Migrate from One DB to another and click execute.

Resources