I've scripted something to create dashboards in DevOps and it seems to do the trick, but I've noticed an issue that I could do to resolve.
The issue is duplicates.
Although you can't have the same dashboard name if you put them in as team dashboards, putting them in as project dashboards allows it. I learn something new every day.
I've got a number of projects to go through to find and locate these duplicates - and wondered what the easiest and safest way would be to identify duplicates (and if possible delete them) based on the dashboard name?
Is this even possible? From what I've read, I can delete dashboards based on an id (but not name) which is fine so long as I can still pick out projects with more than one dashboard that have the same name.
If you want to find and delete duplicate dashboards, first you can call the REST API1 with Postman to get a list of dashboards under a project. From the attached screenshot, we can see that the parameter "dashboardScope" represents the project, and "name " represents the dashboard name, id" represents the dashboardId. We can see that there are two duplicate dashboard names: Hello World in the UI interface.
The dashboard name duplicated in the UI interface
The dashboard name duplicated in the REST API
Then we use the dashboardId obtained by calling REST API1, and then call REST API2 to delete the duplicate dashboard name. You need to note that this also deletes the widgets associated with this dashboard.
Delete duplicate dashboard name with REST API
The only dashboard in the UI interface
REST API1:
GET https://dev.azure.com/{organization}/{project}/_apis/dashboard/dashboards?api-version=6.0-preview.3
REST API2:
DELETE https://dev.azure.com/{organization}/{project}/_apis/dashboard/dashboards/{dashboardId}?api-version=6.0-preview.3
Related
i am working with azure DevOps API and i was able to integrate with the API to fetch releases, builds and projects, but i need an azure API endpoint i can call to fetch list of all work items that had been assigned to each users under an organisation(get all workitems by user/organisation), need this to generate a report to my organisation top management staff. Please
There are couple of ways to fetch all lists of work items assigned to a user under an organization.
Returning a Single Work Item.
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems/{id}?api-version=6.0
When you are requesting for a single work item, you need to pass the specific work Item Id in the URL.
Please take a look at this doc for a sample return response : Single Work Item
Returns multiple work items for a list of work item ids (Maximum 200)
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems/{id}?api-version=6.0
When returning a multiple work items, you need to pass the name of an organization in the API endpoint.
Take a look at this doc for more reference : Multiple Work Items in a batch
Want to know the Acumatica REST API to be used to get Account Inquiry / Customer Open Balances. If no such web services then how to extend end point using which modules of acumatica erp
Not sure exactly what information yo are looking for but maybe the following screens could contain it :
Account Summary (GL401000)
Account Detail (GL404000)
Customer Summary (AR401000)
Customer Detail (AR402000)
Though only one of these screen is already mapped in the Default endpoint of version 18.200.001 (Account Summary -> AccountSummaryInquiry)
If you need information from the other screen, you will need to either create a custom endpoint or extend the default one (I recommend extending).
Here is information on how to do both:
Creating a new endpoint, it also contain information on how to add new entities in an endpoint : https://help-2019r1.acumatica.com/(W(14))/Wiki/ShowWiki.aspx?pageid=709351cc-566a-47b3-b153-3a9fdd690ce0
Extending an endpoint : https://help-2019r1.acumatica.com/(W(13))/Wiki/ShowWiki.aspx?pageid=c450492e-06fe-4563-95c3-efa76975415b
I recommend that you take a look at the way the AccountSummaryInquiry entity is defined and follow the same way to create the other screens if this is what you do. I mean by that that you put the parameter of the inquiry in the top level entity and the fields of the grid in a detail type sub entity.
And in order to retrieve the information properly I recommend that you use a PUT request instead of a GET as this is the proper way to do so as mentioned in the following article:
https://help-2019r1.acumatica.com/(W(12))/Help?ScreenId=ShowWiki&pageid=6340cff3-4732-4231-9e42-5d1e5e65b5dd
I was using the following SO post to create a folder in a SharePoint list: Here
It kinda-sorta works, but not as expected. Here is the way the logic works:
A Policy is either new or has been updated in our Document Library,
which acts as my trigger for Logic Apps
The condition then looks forthe word "Policy" in the File Identifier
It then goes and creates a folder in another SharePoint list (Policy Acknowledgement), based on the filename/Policy Name
Then it sends an email to staff advising them that a new/updated policy is available to read, which then has another link that says "I agree, etc"
This then writes to the Policy Acknowledgement list that the user has read the document
So all steps seem to work, except for when I go to view the Policy Acknowledgement list, the new folder created for that Policy doesn't display in the list. However, if I type in the address to the list/folder, I can view it. Here are my steps, below:
Create the folder
Send the email
Acknowledge the Policy
List where the new folder should be created - But doesn't (the other 3 folders were manually created for testing purposes)
Here is the actual folder, once the direct URL is typed-in
Although the folder isn't listed in SP, it still appears in Logic Apps as an actual folder
This isn't an issue for me, as I can always type in the address manually to get to the Policy Folder. But this is meant to be for our HR team, who just want to be able to open the "Policy Acknowledgement" list, and view all the Policy Folders in there.
I am starting to look down the path of creating a PowerShell runbook, that creates the folder for me, if that is the last resort (or should it have been my first resort?).
I am setting up a SharePoint Online instance and I have some requirements that I do not know how to implement.
These are some of the requirements:
When a user logs into SharePoint, the user should select a country and city. Depending on the selected country and city, the corresponding site and subsites should appear.
Create folders that users cannot delete.
I don't know what is the process to create the first point and the option to disable in the second, if some of you know a tutorial or maybe knows how to do it, I would really appreciate it.
(1) One approach is modifying the welcome page through SharePoint Designer to contain HTML selectors for country and city. Based on the selected country and city, you can then redirect to the proper site using JavaScript.
(2) Creating folders that users can't delete requires custom .NET code. You can't run custom .NET code directly in SharePoint Online. Depending on your requirements, you need to create the folders using a console application or a custom app part. The console app or the app part can create the folders and remove permissions on the folders.
I have a code activity that sends an email in a VS workflow. It simply sets the 'To' property to the name of a SharePoint group in the site collection. However, only the 1st person in the group gets emailed.
Any ideas why this is happening?
thanks
Does your group contain anything other than just users (ex: distribution lists, ad groups)?
If this is still a problem and you need to be able to send to a SharePoint group, I would recommend writing a custom workflow Action that would gather the emails of all the users in a specified group (you can find many tutorials online on how to make a custom action).
Turned out it was not even emailing the first user. I decided to extract the user emails programatically instead. Works fine.