Azure SQL Alerts to integrate with TEAMS - sql-server

I am trying to integrate Azure SQL Alerts with Teams. I have created webbook and the link I got paste it into Azure action group. When I run a test it has fail output. So then I have created runbook and within the runbook created webbook. The link I got from the webbook I inserted into the action group when run test it was successful. I can see the alert in the azure runbook/webbook but didn't come trough TEAMS.

Please Follow these steps to achieve the Alert goals
Step 1: Create a blank Logic App
• For this step, you need to login to the Azure portal and create a new Logic App. Once you’re in the right place, click on the Add menu and select the Logic App type you want to create. The available types are: Standard and Consumption. You can find all the necessary info in the page Pricing and billing models for Azure Logic Apps at link
Step 2: Configure the Logic App
• In the Logic App designer page, click on the When a HTTP request is received. This will be our trigger .
• After the selection, you will be presented with the Logic App designer canvas. This is where we will do all our remaining configurations starting with the trigger activity we just added
• Configure the activity with the JSON schema that the trigger will use. Since the request will contain the alert’s JSON payload, you can refer (and use) the sample schema you can find in the article Common alert schema definitions at link .Copy the sample alert payload from the page, click on Use sample playload to generate schema, paste the content and click Done
• To create a condition used to decide which notification activity to use, click on the New Step, in the search box type Control
• Select the Control group and then select the Switch activity to add it to the canvas. For groups with lots of activities, you can enter the activity name or part of it in the search box.
Once added, this activity needs some configuration:
Team ID,Channel, Message
As far as the Team ID and the Channel go, you can select Azmon alert,With regards to the Message body part, this is representing the information sent through the notification. Here you can enter static text formatted as you like, dynamic content as well as formulas. In my example I started with a kind of title and followed with sections under which there are the info I wanted to send. For the static text, you just need to write it. For the dynamic content and/or formulas, once you decided the line where to put it, click on Add dynamic content and select it from the side panel click in the Message canvas and either select it from the Dynamic content list or assemble it using the Expression builder
In this post, since I got everything correctly parsed from the trigger activity (the When a HTTP request is received), I will go use the dynamic content only. For instance, after having put some text like – Alert Id: I will select alertId content from the list
Step 3: Configure the Action Group
configure an Action Group to use it in order receive our alerts as expected.From the Azure Monitor blade
• From the Alerts page, click on Manage actions
• Click on New action group
• Enter the necessary basic information and click on Next: Notifications
• Configure the following according to what has been created before:
o Action type
o Name
o Selected
• making sure to enable the common alert schema and select and create
Step 4: Add the new action group to your alerts
we have the Action group created and configured; we need to add it to all the alerts we want to notify
• From the Alerts page, click on Manage alert rules
• In the Actions section, add the new action group to the existing one (or remove them if not necessary
• Select the newly created (and de-select the selected ones if necessary) and click Select
• Click Save to save and apply the changes
Step 5: Test
Refer below doc
link

Related

How to change the Read Access to the users on custom Visualforce page in Salesforce

The question is about the custom visualforce page in Salesforce. The page is created for getting contacts, opportunity, loans all are at a single dynamic link on the account named "Manage portal Access" Which comes under "Customer Portal Access" Tab like details and related list under "Account" Tab.The page was created to Manage the customer account, contacts and opportunities relationship. The page contains Email, Role, Last Login and a Toggle button as "Enabled".When this toggle button is enabled, those users have access to this portal relationship. It has respective apex class also.
The task here is, the toggle button can be enabled/disabled by some users, this want to be changed here by providing Read only access and assign two permission sets for edit access on this portal enable/disable.
" As a user I want Read Only Access to the portal tab. I want to be able to view all information on the tan and click through any dynamic links, but not be able to toggle the portal enable or un-portal enable any contacts. All Salesforce users should have a minimum of read only access to the Customer Portal Access Tab. The two permission below currently and should continue to provide edit access to the customer portal access section.
Create Customer Portal User
Document Manage Portal Admin "
Whether there is any customization option like providing access to objects in Salesforce through (Layouts, Fields FLS, Validation Rule)?
Or
-This can be achieved only through code on Visual force page and it's respective apex class, if this is the case how can I do it, whether there is any certain command or method for providing access or through controller class?
The "normal" object permissions (Create/Read/Update/Delete) and field level security (Read/Update) can be referenced in Visualforce. Something like this might be enough for you:
<apex:commandButton disabled="{!$ObjectType.Contact.fields.Role__c.updateable}">
Check the DescribeFieldResult in Apex reference. There's also something mentioned in VF developer guide but it's bit hidden and not as detailed: https://developer.salesforce.com/docs/atlas.en-us.234.0.pages.meta/pages/pages_variables_global_objecttype.htm
If you need more control than just whether field is editable or not - maybe look into Custom Permissions. They're your own checkboxes you add to Profile/Permission Set and you can check them in pure VF too, no apex required.
So... you decide. If most of the page is supposed to be identical, "just" about the button being enabled/disabled (or maybe even not rendered at all) - it's best to put the condition in the button. If it sounds like you need 2 different layouts - having 2 big blocks of code and one or another rendered might be cleaner to maintain and test.
P.S. Remember that good tester can activate the button using browser's developer tools. You should make similar "is field accessible / is custom permission assigned" check in Apex that runs on button click.

How to create a custom in-app notification in Salesforce?

In Salesforce lightning I see a bell icon in the top right corner which displays notifications. I have a custom object and I would like to know if it is possible to create a notification inside Salesforce when the record value changes.
Yes, you can create a task whenever a record is getting changed on the desired object. Task will help you to get notified whenever a record is changed
Creating task based on record change can be done using apex triggers.
https://help.salesforce.com/articleView?id=tasks_enable_task_notifications.htm&type=5

Adding custom action buttons to Wagtail Admin

In Wagtail, I currently have content which I wish to update based on API calls to another website:
I have a VideoPage with fields like url, title and description. When adding a VideoPage I'd like to be able to enter just the url , click a button, and it'll try to prepopulate the other fields by making API calls (via either the front end or back end)
I also have a ChannelPage, which VideoPages are children of. I'd ideally like a way to click a button in admin, have my server check whether the channel has new videos, then create new VideoPage children accordingly.
From the above use cases, I believe my problem comes down to this: is it possible to add standalone action buttons to the admin area for a Page which, when clicked, allows the backend to edit fields, create new pages, etc. accordingly?

How to add a custom web page in Jenkins?

I am trying to make a web-page which displays the dynamic web page - basically it displays a table comprising of Name, IP_Address, and Group Name with used check/uncheck box. This webpage can run on a different tcp socket so it can be
https://myjenkins:5909 . Next, I want to add this table information in the mongo-db and read back the data and show on the web page - that table. What are the required steps for me? First is it possible? Here is my understanding that I have to write a back hand code using Jenkins plugin. Now, how to add the front end page like my custom page in Jenkins. Also, how database can be handled by the backhand Jenkins plugin? Sorry, I am new to these things. Any idea or details will help me. Also, is it possible to use LDAP based user id and password in my form.

Data shows when page accessed from internally, but not on public site

I have been following the salesforce Recruiting App tutorial, and reached the section on creating a public site:
http://www.salesforce.com/us/developer/docs/fundamentals/Content/adg_composite_app_public_sites.htm
I have built a simple page to display open jobs as described here:
http://www.salesforce.com/us/developer/docs/fundamentals/Content/adg_composite_app_create_public_jobs_try_it_out.htm
This is displaying the open jobs correctly when I view it through our "internal" URL: https://c.ap1.visual.force.com/apex/PublicJobs
But when I view this same page through our "external" URL: http://servian-developer-edition.ap1.force.com/careers, the page still renders, except that now the list of jobs is empty.
I don't think this is a permissions error, as if so it would surely prompt me to log in. What do I need to do to make the data show on the "external" URL?
Make sure the "guest" user for the site has Read permission for the Positions object on its profile. You can't access the profile for the guest user through the normal Profile list page in Setup; instead, click on the Public Access Settings button from your site's detail page. On the profile, go all the way to the bottom of the page and make sure the Read permission is checked. If its still not working, ensure the Field Level Security settings also correct for that profile. The FLS settings are controlled about mid-way down on the same page.
In addition to above, ensure the object, if it is a custom object is in "Deployed" status. This fixed the issue for us.
Additional Information (from help.salesforce.com):
While developing a custom object or external object, you might not want users to see and interact with it. Because users might get frustrated with changes in layout or lose data when you delete custom fields, control visibility of the new object until you are finished.
Use the Deployment Status setting in the object definition to control when users can see and use the object and its associated custom tab, related lists, and reports.
Choose “In Development” as the Deployment Status when first creating your custom object or external object. Doing so hides it from users while you are designing and testing it. Only users with the “Customize Application” permission can see the object tab, search results, related lists, and report data types.
Change the Deployment Status to “Deployed” when you want to allow all users to use the object and any associated custom tab, related lists, and reports.
If you make more enhancements after deploying a custom object or external object, you can change the Deployment Status back to “In Development.”

Resources