Azure: Can an event grid trigger a durable function? - azure-durable-functions

My Durable Function to be invoked by an event grid trigger.
Looks like there's no option. Any alternatives?
Thanks in Advance!

Please check if the below findings helpful to the requirement:
There are 3 parts of Durable Functions such as Starter, Orchestration and Activity where the Starter function would be the event grid trigger in your case.
I have found the sample code for consuming the Event grid events given by GitHub Docs where you can use the consume events code in Activity Functions.
There is a class EventGridConsumer which consumed the events published by the Event Grid Trigger. As you didn't mention the runtime stack, you're using the Azure Durable Functions, I've found the Sample code of consuming the Events using Azure Function code in Node JS and C#.
NodeJS:
git clone git#github.com:Azure-Samples/event-grid-node-publish-consume-events.git
CSharp:
https://github.com/Azure-Samples/event-grid-dotnet-publish-consume-events/tree/master/EventGridConsumer/EventGridConsumer
References:
GitHub Doc on cSharp Code of consuming event grid evens in Azure Functions.
GitHub Article on consuming event grid events using Node JS in Azure Functions.

Related

Specific time of the availability of the agents

Is it possible to set a time for the availability of the agents in studio flow?
For example:
The business hours are 8am - 6pm. If the customer call at 6:30pm then an automated message will tell the customer regarding the business hours.
Is there a such a function in studio flow to determine the time?
You will need to code this part up yourself, below are a few blog posts of interest. Basically, you will Twilio Functions and the Studio Run Function widget to achieve this.
Advanced Schedules for Twilio Studio
Using Twilio Functions to Add Custom JavaScript Code in Studio Flows

execute zoho page sense custom tracking event from zapier

I have a tracking pixel and a custom event fire. I cannot seem to get it to work in zapier javascript code. The pixek needs to load, (i dont know if i should use the syncronous or asyncronous version) then the 2 lines of custom event code need to run. I dont know how to format/syntax this to work in zapier code.
Page sense custom events
// pixel-syncronous
<script src="https://cdn.pagesense.io/js/fitboss/d4999e900d8f4c78b749ee42a84bcd1f.js"></script>
// pixel-asyncronous
<script type="text/javascript">(function(w,s){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="https://cdn.pagesense.io/js/fitboss/d4999e900d8f4c78b749ee42a84bcd1f.js";var x=document.getElementsByTagName("script")[0];x.parentNode.insertBefore(e,x);})(window,"script");</script>
// custom event
window.pagesense = window.pagesense || [];
window.pagesense.push(['trackEvent', 'Video Played']);
The code you posted won't work in Code by Zapier. It runs using Node.js (made for the backend), but the code you posted is meant to be run in the browser (note the HTML tags and use of window).
You have a couple of options:
If there's a web API, use that instead. You can make HTTP requests from Code by Zapier or use Webhooks by Zapier.
Otherwise, look for a Node.js package that works with PageSense. You can wrap that in a simple custom integration that can run more advanced JS code.

Trigger Google Cloud Function by change in Google Spreadsheet

I want to use a certain Google Spreadsheet as UI for a Cloud Function. For Example, I want the columns "SQLStatement", "TargetSheet" and "TargetCell" such that my colleagues can handle a GCFunction only with their SQL skills and write the results into the Google Sheets of their desire.
The script that reads the statements and writes the results is working, my problem is the trigger. The Cloud Function shall be triggered by every update of the source spreadsheet, I do not need any information to be pushed to the function.
I am doing research since a couple of days, but the more I read about Firestore, Appscript and Cloud Function Triggers the more confused I am and the farer I get from my original problem. Hence, my question is:
What is the easiest way to trigger a cloud function by an update of a certain Google Spreadsheet?
Thank you in advance!
There is no built-in trigger type to run a Cloud Function upon a change in Google Sheets.
If you want to invoke a Cloud Function upon such a condition, you will have to write the Apps Script code to respond to an onEdit event, detect the condition in that code, and then call your Cloud Function (typically a HTTP based one as shown here).

Embed Eventbrite Event Creator on my website

I want to use event Brite as the Event creating system for in my Web Application.
Since there is no api to do the same by EventBrite and we cant't embed the complete eventbrite site in an iframe how do we go about it.
Is there any way to do it ?
We just discussed this on the forum but so that others may see as well, we hope to have full event creation available within the next month. You can, however, update events by POSTing parameters to the Event Details endpoint including event name, event description, etc..
We will also have Event Copy available in the very near future as well.
Event creation is fully available in V3.
You can find all the details for the Event endpoint here http://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-post-events.
Event Object http://www.eventbrite.com/developer/v3/formats/event/#ebapi-std:format-event

Darg n Drop from ListBox to Telerik Scheduler in ASP.NET

I am using a Listbox and Telerik Scheduler in my web page. I need to drag an item from listbox to scheduler control. How can I do that?
I know this question is quite old now, but I thought I'd provide an answer to help others that arrive here.
RadScheduler (like all Telerik controls) provides a rich client-side API that makes it possible to write some JavaScript to handle drag-and-drop scenarios. There is a complete demo showing you how to drag-and-drop between a RadGrid and RadScheduler online:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/draganddropintegration/defaultcs.aspx
In this example, you see how to use RadGrid's RowDropping client-side event and RadScheduler's client-side API to determine where an item has been dropped. Ajax is then used to add the appointment to the Scheduler.
To adapt this for a ListBox, you need to have a similar event that can be fired when your ListBox item is dropped. Unfortunately, the default listbox will not provide that, but you can use something like the RadListBox (which has more client-side events, including OnClientDropping). Here, ListBox drag-drop is integrated with a RadTreeView:
http://demos.telerik.com/aspnet-ajax/listbox/examples/applicationscenarios/treeviewdraganddrop/defaultcs.aspxt
I hope that helps.

Resources