Logic Apps SharePoint Connector - When a file is created or modified in a folder - azure-logic-apps

I have an integration scenario where I need to pull documents from SharePoint Online and submit the content (PDF) to a downstream API. I'm using the When a file is created or modified in a folder trigger to pull documents from a SharePoint library. My question is whether there is a way to set a filter on the trigger so that only PDF documents are retrieved i.e. (*.pdf)?

For this requirement, you can click "Settings" of your trigger.
And then add the expression #contains(triggerBody()?['{FilenameWithExtension}'], '.pdf') to "Trigger Conditions".
After that, the logic app can just be triggered with file name which contains .pdf.
=================================Upate==============================
You can change the expression to:
#contains(trigger().outputs?['headers']?['x-ms-file-name'], '.pdf')

Related

DocuSign Apex Toolkit Create Envelope with multiple datasources

I am very new to DocuSign and trying to create a proof-of-concept for integrating DocuSign with our own Managed Package for Salesforce. I understand how I can create an envelope, how to create a document based on a template, how to fill it with the data of my Salesforce record and also how to send it.
My issue though is that the data which needs to be filled into the DocuSign document is not entirely saved within the specified record. Some data such as certain KPIs are loaded from AWS but belong to the record you're looking at. To me it seems that when creating an envelope, you need to specify the record-id of the record you're trying to pull data from.
Is it possible to extend that by not specifying a record-id but rather an Apex Object or List for example?

How to trigger 'custom emails' when a file is uploaded to SharePoint Online document library?

I have SharePoint Online with multiple folders and sub-folders in the document library. Various files will be uploaded into these sub-folders at different times. I need a programmatic way to trigger automated custom emails sent out to different groups of individuals based on the file type and the folders the files are uploaded to.
I am new to this and need to know of various technologies that could be used. I know VBA and C#. However, it looks like the right technology might be React or PowerShell.
You can create Microsoft Flow workflow in SharePoint Online that will be running on events like add file. From MS Flow you can also send e-mails or call external api.
There are many MS Flow connectors to choose from, complete list you can find on MS Flow service page for SharePoint:
https://flow.microsoft.com/en-us/connectors/shared_sharepointonline/sharepoint/
You can use Microsoft flow where you can use SharePoint trigger 'When a file is Created' then use 'Send an Email' action to send email notifications. Let me know if you need some more details about it.

multiple options for a community connector configuration in Google Data Studio

Is there anyway to generate a list during the configuration based on what is put in the first grouping? I know for example the Google Analytics connector has Account-> Property -> View which you have to select before you are setup.
I'd like to create a connector where if you put in a web address it pulls in a list of the end points for that specific site which are listed in a json file.
Update (2020/05/05): This can now be achieved through Stepped configuration in Community Connectors.
Original: Right now, the configuration is not dynamic.
That means you cannot pull in data from external sources during the configuration or update configuration values based on something already selected in the configuration.
The alternative now is to have flat lists of selections.
This might get updated in future.

Zend framework 1 delete files

I have applications that allows users to upload photos, it supports Zend_File_Transport. My question is how can handle the option to delete the picture? If the user clicks to delete a picture that he also will be removed from the server. How to do it on Zend Framework 1?
You can use the native php function unlink() to remove files from your server.
http://php.net/manual/en/function.unlink.php
Just general brushstrokes. The specifics will be dictated by your specific circumstance.
Since deletion changes state on the server side, it should be done in an HTTP POST request, typically done by submitting a form with the id of the record to a server-side route. Performing deletion on clicking a link - which is implicitly a GET request - is generally not-advised.
This suggests that you create a form on the page with "method" POST and "action" corresponding to a url/route on the server side, containing the photo's id in a hidden field.
In the controller/model that handles the route, you can then use the user's authentication to confirm his authorization to delete the given resource, remove any database records associated to that image, and finally (as indicated by #RichardSnazell's answer)unlink() the file from its storage location.

How do I create an Outlook calendar subscription from my web/app server?

I have a website that is a calendar with all the basic features (ASP.NET MVC and SQL Server). People can enter events, view others events, etc. One person asked me if there was a way they can see these events in their Outlook calendar - as a second calendar.
I have all of the data on the server. Is there a recommended way to have Outlook point to my web server or DB for a calendar? I see there are ways to generate iCal files from C#.
If so, how would this data stay in sync as new events are created, deleted, etc? A one time dump would be ok but the concern would be that the data would get stale. Is there a solution that would keep the reference dynamic to keep them in sync. (it would only need to be a one way transfer, i don't expect the need to create or delete from Outlook, so outlook is just read only)
I think you can create iCalendar file,then publish it ,so let clients subscribe your internet calendar because internet calendar subscription is periodically synchronized with a calendar that is saved on a web server,and any updates to the internet calendar are downloaded automatically into MS Outlook.
You can use DDay.Ical library for creating (.ics) files using C#.
assuming your question is about how to keep the client and server side synched, and since you only mention outlook as client, there is a custom way to control the update frequency: microsoft has a custom calendar property: X-PUBLISHED-TTL (see microsoft msdn calendar)
2.1.3.1.1.15 Property: X-PUBLISHED-TTL
Brief Description: Specifies a suggested iCalendar file download frequency for clients and servers with sync capabilities.
however note that this property being custom will be ignored by other calendars
You could try to keep track of the SEQUENCE of updates to each calendar entry in your database, and add a trigger on your table of calendar events so that it would automatically send event updates when something changes. Each update would have a higher SEQUENCE property than the updates that came before it, but the UID (the event's unique identifier) would remain the same.
For this to work, though, you'd need to be able to send iCalendar events from within your SQL Server, which can be possible using the following CLR project:
github.com/EitanBlumin/sql-clr-ics

Resources