Python: format service now exports of Incidents data specially work notes column to determine Incident breach or not breach status - servicenow

I am very new to Python development.
Currently I have task in my mind which I want to automate using Python.
I have monthly data of Incidents, Our team had to open each incident manually and track when incident was assigned to teams service now queue, how much time team had taken to solve incidents, Was incident in pending after it had been assigned to service now queue and then calculate SLA of Incident.
All above information is available worknotes field of Incident but when data is exported and read through python pandas, work notes field output is weird.( it comes with Html tags of Line break)
Does anyone know how to format data from dataframe column or to get correct out put from Service now dump.
I do not have any APIs access to service now. I am relying on ServiceNow export options, which are available in excel, csv and Jason format.
Any help on this topic is appreciated..

Related

How to handle database modifications via Power Apps?

First of all, I would like to say please do not be surprised by my question cause I'm a beginner in this sphere.
I just started work with Power Apps and I have the following task:
I need to create some "Notification Service" which will be sent the notification inside Teams group after the event in the SQL table (for example, after successful insert into table).
Could you please explain, is it possible to do via Power Apps features without writing a code?
The application must be work in background mode and automatically send information about new rows in DB.
Any your answer will be very helpful for me!
Thanks for your answers!
PowerApps doesn't have the ability to notify people this way. You have to use Power Automate. A flow can be triggered when a row is changed or modified. In order to trigger a Flow on a database, the database field must have a TimeStamp field and a primary key.

Extract Dynamics 365 read audit log data from security compliance center

I want to extract the read audit data from Microsoft security & compliance center and I have enable the audit logs for read audit logs and now I need to extract from Microsoft security & compliance center and I see the audit log created in Microsoft security & compliance center. Now I want extract or export data from Microsoft security & compliance center to Azure event hub using console app or web api.
Can anyone help me, how can I extract the data from Microsoft security & compliance center I used XRMToolBox using audit history extractor and it is extracting the audit data from CRM but I need extract or export the read audit data for Dynamics CRM from Microsoft security & compliance center.
How can I build the process? I checked my website I don't see any proper resource.
It’s little bit tricky and not so straight forward. You can get a webhook trigger for new data once ready, then you need to parse it and send to your event hub.
Office 365 Management Activity API reference
The Office 365 Management Activity API aggregates actions and events into tenant-specific content blobs, which are classified by the type and source of the content they contain.
To begin retrieving content blobs for a tenant, you first a create subscription to the desired content types. If you are retrieving content blobs for multiple tenants, you create multiple subscriptions to each of the desired content types, one for each tenant.
After you create a subscription, you can poll regularly to discover new content blobs that are available for download, or you can register a webhook endpoint with the subscription and we will send notifications to this endpoint as new content blobs are available.
Note:
When a subscription is created, it can take up to 12 hours for the first content blobs to become available for that subscription. The content blobs are created by collecting and aggregating actions and events across multiple servers and datacenters. As a result of this distributed process, the actions and events contained in the content blobs will not necessarily appear in the order in which they occurred. One content blob can contain actions and events that occurred prior to the actions and events contained in an earlier content blob. We are working to decrease the latency between the occurrence of actions and events and their availability within a content blob, but we can't guarantee that they appear sequentially.
Sample logs and schema reference.

Utilizing Workflow to Automatically Resolve a Case in Microsoft CRM (No User Input)

I have a logic question regarding the capabilities of automatically resolving Microsoft Dynamics 365 CRM (or similar platforms) cases. I utilize an Access database to create emails to send to customers with specific data, while copying my team email to keep track of communications in Microsoft CRM. This action creates a new case in my CRM, which I then need to "Work On" case, add my specific operational catalogs and affected contacts, then finish case as Resolved just to ensure tracking in the CRM system.
My team is currently testing out the capabilities of XML coding in the email which allows the CRM to automatically capture the case specifics described above, however they still need to go in and resolve each case at the end of the day.
After some research, I see that a workflow may be able to do this job of automatically Resolving cases. Is this a possible function for a workflow or plugin to do? Alternatively I have been told by my IT department that we need to have a robot built to complete this task, but I would like to keep this as efficient (and cost savvy) as possible. Any input or suggestions are greatly valued and appreciated.
Thank you!
There are two ways you can solve your problem.
If you want to close all the "CASES" by the day end you can schedule
a "System Workflow" that will execute daily at a specific time and
"Close/Resolve" all the open CASES in your system. Please find below
link on how to setup a "Schedule Workflow" in Dynamics CRM Create
Recursive or Scheduled Workflows in CRM
You can resolve specific cases on Dynamics CRM using C#. Please find below link on how to resolve case using C#.How to close cases in crm 2011 programmatically
Yes. Workflows can be used to close Case records in CRM
If you have the resources (staff) available to write CRM code, you can do it via Code (C#) as well

MS CRM Online data abnormalities

I have a client who migrated to MS CRM Online in April, they've reported a number of cases where their data has updated itself, for example:
Custom entity data records disappear and the related record entities then show another record value.
Ownership of accounts/contacts changed. 2500+ accounts changed ownership in a 10 minute window. (Surely this can't be human error). The audit log show one specific user having updated all 2500+ records.
There are no scheduled tasks running other than those configured and managed by Microsoft.
There is only one plugin that automatically creates a SharePoint Doc folder for the activities entity and moves any attachments to the SharePoint Folder.
Any ideas/suggestions would be greatly appreciated.
Could be a couple of causes, those that jump to mind; a user manually bulk editing records or cascading relationship behaviour,

How to copy the entire DB in CRM Dynamics?

It seems to me as a wise idea to test run my workflow on a local server before deploying in at the customer's. To be entirely sure, I'd like to copy all the data from their DB to my test organization (I have full access rights). The problem is that I can't see any straightforward way to export the whole shabang to a XML Spreadsheet.
What's the best way to export/import everything from/to a DB? The source and the target servers are not the same.
Of course I've got the option of backing up the clients DB and restore it, would the brown stuff hit the fan, but it'll far more professional if I won't have to.
The client's DB is in the cloud, which makes me suspect that perhaps I won't be able to access it at all and as far I can see, there's no way to back-up the data there. Am I missing it or is it that bad?
I fully agree that would be sensible. Usually we have a number development and test servers for all our work, generally we do not exactly mirror the data in the client database however.
We create a representative sample of data in our dev servers and then just move across the Crm solution for deployment.
As far as I know there is not straight forward way to get all the data, if you really want to do this I would suggest taking a back up of their database and importing to yours.
(As a side note, not all clients are happy for copies of their database - especially if its a live system - to be taken off site. Personally if it is a live database I wouldn’t put that risk on yourself, if the data gets lost or leaked you might suffer the consequences).
James raises good points about the business aspects of your request, however to get hold of the record-level data there are few options. The easiest by far is a wholesale export and import of the underlying SQL database. (For the record, the alternative is to do a data migration from live into a different db but this is no small task so I won't even entertain that any further here).
You mention that the client is using CRM Online ("...client's DB is in the cloud..."). You can raise a (free) support request with CRM Online Support who will provide you with a copy of the YourOrg_MSCRM database which can then be reimported into an on-premise deployment.
If you wish to simply have a test instance that has a copy of the Microsoft CRM Online organization, Microsoft does provide a means to do that. Depending on how many professional user licenses that the customer has, this may be free, but could be an extra cost and both instances would count against the storage limit for Microsoft CRM Online. You can see full details here - https://community.dynamics.com/crm/b/crmteamblog/archive/2014/03/20/introducing-sandbox-instances-in-crm-online.aspx . You can see steps on how to setup a sandbox instance here - https://technet.microsoft.com/en-us/library/dn467371.aspx "Add an instance to your subscription". This is something that I have used with one of our Microsoft CRM customers as it was a very good way to help validate the Scribe Online migration and customization changes we were making before moving those into production. The nice thing about doing it this way is that everything is still contained in the same Office 365 tenant and you can limit which users have access to the Sandbox organization, which is important for customers in knowing that their data is safe and not on some unknown server or machine.

Resources