When email arrives (V3) wont trigger in different resource group - azure-logic-apps

I have a logic app with a trigger "when an email arrives (v3)" that is firing in one resource group but not the other. The deployment is automated and the code is the same on both environments.
I just can't work out why it triggers in one resource group but not the other, I've even pointed them to the same mailbox and same outcome. The resource group where it doesn't run I need to manually trigger it and then it will pull in the new email.
Has anyone run into this issue before?

Managed to get the logic app trigger working:
Deleted the trigger & all actions from the logic app
Saved the empty logic app
Ran the pipeline again to deploy the Logic App
I've made no code changes to the template or any of the connections but it started working as expected.
I'm guessing that when its deploying to a new environment and creating the new o365 connection, it's unauthorised during deployment which might be affecting the trigger for "When a new email arrives". Recreating the logic app once the connection already exists seems to have worked for me.

Related

How to get notified when a logic app is created

I currently work with a small development team and I would like an email notification to be sent to me upon creation of a new logic app which would then allow me to configure new alerts for each new one to say if logic has experience a failure of some sort. Right now I constantly have to check the logic apps in the portal to see if any new ones have been created as of late. I couldnt find any info on this. Any help would be greatly appreciated.
This can be done by creating an alert on activity logs, you can look at the newly created logic app in your activity log and create an alert. You can also use these alerts to trigger emails https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log
https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-create-new-alert-rule

Handling whether or not the user has already seen a popup, ReactJS

I am a bit dumbfounded on how to achieve this properly. So you have an app that is getting regularly updated, and you show those new updates to the user (something like discord update popup and whats new and such). How do you handle whether or not the user has seen it? A more high level question that "local storage", I am well aware of that or storing it in a DB, but this doesn't seem 1) Scalable, 2) Easy to work with in the long run. Are there any JS libraries that can simplify the process, eg or do I have to manually track each update? If there are more updates or the user hasn't logged in a while
I hope I conveyed what I am working on properly. Would love to hear how it's usually done.
Q: have an app that is getting regularly updated, and you show those new updates to the user
A: Service Worker can help you .That support reacting to push message .And they provide the Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded, on a user agent.
More detail about start up a service worker to send users a message . https://developer.mozilla.org/en-US/docs/Web/API/Push_API .
Finally I suggest you try Workbox , that is a library that bakes in a set of best practices when working with service workers.

How to add multiple subscription in Azure Logic app Service bus topic trigger

As I am having a logic app where the trigger is service bus topic subscription. I want to add multiple subscription ("A", "B","C") for the given topic in my logic app service bus topic trigger . Whenever i select topic it only allows me to select single subscription. Is there any way to add multiple subscription from an array or static variables ? if yes then how to add conditions ? I tried using array, but i have to provide the index of the subscription.
I can use multi trigger logic app for all of the subscriptions to achieve what I am looking for, but is there any other way like using some wildcard characters ***** or / or something else which i am not familiar with .
The action supports selecting only one subscription as you have observed.
Multi Trigger Logic App is indeed one way to go about it but note that the designer doesn't support them, and you will be forced to edit only using the code view.
One alternative would be to split your logic app into two
one for your business logic that is triggered by a HTTP request
one (or more) that is triggered by the service bus subscription trigger and calls the first logic app
Another alternative is to leverage the Event Grid Integration in Service Bus, but note that this is currently applicable only for the Premium Tier.
In this approach, the logic app would trigger based on an event message from Event Grid with details of the subscription that has messages ready to process. You would then use the Get messages from a topic subscription action to fetch the messages to process.

Mocrosoft Webhook Subscription for AzureA Users not working

I am trying to create webhook subscription for change notifications in Azure Active Directory, the subscription is successfully getting created and I am receiving events also for groups (create, update, delete). But when I created the subscription for Users, the subscription is successfully getting created but I am not getting any kind of events from that subscription. Before two weeks it was working fine for users but it has stopped working now.
If it worked fine before but it doesn't work any more without any changes to your application, it's very likely that there is a problem with the server.
In this case, please contact Azure Support as soon as possible to track your request.

Copy Salesforce Production data to a Sandbox without third party tools/connectors

I am new to Salesforce and got the project of copying prod data to sandbox.
The question is, how can we insert data from production to another sandbox.
Is it through rest call, if it is so then at destination sandbox as well we need class to listen that rest call. But that is not a requirement, what they want is application should be in production box only and on giving correct creds for destination box, data should be copied from production to destination box.
Please suggest me best ways available in Salesforce to copy data from prod to another sandbox using Apex class and triggers.
If you have a middle wear system that you could fire an event to which would then trigger listening sandboxes to pick up the data that you are subscribed to. You will need to create a RESTFul or Soap service either way, it just depends on if there is an event fired. I recommend that you broadcast an event so all sandboxes subscribed to that event can pick it up.

Resources