How to Delete records using Odata Dynamics NAV 2017 web services - Error in query syntax - web-services

I'm trying to delete a record in the User Personalization table. I use the primary key User_SID and get the following error:
error
Articles:
https://community.dynamics.com/nav/f/microsoft-dynamics-nav-forum/374872/odata-rest-web-services---not-able-to-delete-sales-order
How to Delete records using Odata Dynamics NAV 2017 web services
These are articles that I used to help set up the api-call. In my eyes there is no difference, but my call doesn't work.
Can someone help? Thanks! :D

Related

Real time data report in powerbi service

We have a react app where i want to embed a powerbi service report.
That report (kept in powerbi service) data will update the user interact with our react app's database.
I know there is a way-
if we connect that report with an SQL database source, and everytime that database source is refreshed, we will hit a powerbi provided 'refresh report api' and the updated data will be reflected in the embedded report..
But I want to know if there is any other more elegant way to achieve the same?
Alternative way-
also if there is a way to create a new report inside powerbi service just by hitting a powerbi endpoint with given json, and then embed that newly created report inside our application. that will be better.
as far as i have seen there docs they have apis to clone, delete, update a report but not to create one?
in case you know please let me know.
Thanks in advance.
my another related question is here for more reference - Create a report in powerbi service through APIs in React
also this community discuss - https://community.powerbi.com/t5/Service/Create-a-report-in-powerbi-service-through-APIs-in-React/m-p/3055794
If you use a DirectQuery model the report will generate queries to your database when the user interacts with a report. There will be no "refresh".

Count SharePoint Documents Dynamics CRM

I have SharePoint Online enabled for my Dynamics CRM Online. I have a documents subgrid showing on my account form. Everytime a document is uploaded to Sharepoint from within CRM, an email should be fired to the owner of the record.
I tried using this with Flow but it is difficult as the SharePoint Folder structure is as follows: Account > AccountI_GUID
AccountII_GUID
and so on
I could have alerts in SharePoint enabled. However, I would have to do this each time a new account is created in CRM. There is 13000 accounts in CRM already. So, I would have to go into each of the folders and enable alerts.
Would you have any other solutions?
I was thinking of maybe getting a count of all the documents in SP and showing the count in CRM. If the count has changed then trigger a workflow. But I am not sure how to go about that. Please help.
I would probably go about this by creating a Powershell script to iterate through all of the account document libraries to set up an alert on each one. You could then run this at the end of each day to pick up any new accounts.
After a quick google I came up with this which may be of use Create Alerts using CSOM
I know there are also ways in Dyanamics to remove the GUID from the library but I'm no Dynamics expert so not sure what functionality this may effect.

InfoPath cannot call web service when uploaded to Office 365 Sharepoint

Not my normal line of questions, sometimes we've got to be flexible!
I've designed an InfoPath form that I'd like to upload to a Sharepoint site.
On my form I've got a data source that is consuming the following SOAP service
https://SharepointServer/Site/_vti_bin/UserProfileService.asmx?WSDL
I call the Operations "GetUserProfileByName" and get various information about the account looking at the form. In preview this works very well. I've got the header saying "Hello Pete" and I'm able to filter lists based on the user's data. However. When it comes to uploading the form to the server, I'm greeted with the following exception:
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
HIDE ERROR DETAILS
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:19df2c9d-a036-2000-3929-0bce8940cf2a
Any ideas what I'm doing wrong? Is there limitations due to the way that my account details are being used on SharePoint? If so what's the work around? I'm not a full admin on the server, so I've only got access to a Sandbox site.
Any help greatly appreciated,
Pete
The issue is loopback protection. In o365, it cannot be disabled. Stupid though, there are a lot of useful web services available for information. See this link: Error message when you connect an infopath form to a sharepoint online web service

Invalid object name 'Student' while running IIS webservice using SQL Server 2005 database

I created a web-service using asp.NET and the database is created using SQL Server 2005. Then I published it to be able to use it from an Android device. I used the IIS Manager to publish it as local IIS. the publishing is done well but when I try to Browse my web-service, the home page of the web-service appears in the browser. But when I try to test one of the methods that uses the database to retrieve some data, (Select * from Student) where Student is a table in my SQL Server 2005 database, an error page appears stating that: System.Data.SqlClient.SqlException: Invalid object name 'Student'.
I searched and found some people said that I should add (dbo.) in the query (Select * from dbo.Student) but it doesn't work too. the same error occured: Invalid object name 'dbo.Student'.
The result of the query returned correctly from Visual Studio when right-clicking the file *.asmx and choose to View in Browser. But it's not returned from the published web-service.
This is my connectionString
Should I give permissions somewhere?! I do't know how to do permissions on the database tables.
Any help will be appreciated.
THanks..

creating web service for querying TFS

I have been tasked with creating a web service(usingVS2010) to query TFS (2010) by the workitem number. The user would access the web service, then type in the workitem number and project name and hit a go button. This would call the web service, retrieve the title, and description and display it for the user on a seperate application. So starting this process I thought I would create a simple console application that does the same thing. I was able to connect to the server and I am able to see the collection of project that exists. What I am looking for is some help in querying the Server so that I can type in a number and get a response in my console. Does anyone have any examples, or direction or websites? While I wait for an answer I will be searching the web. Thanks in advance.
You'll want to use the TFS SDK to query work items programmatically.
Ewald Hoffman has posted an excellent example of how to get a work item by ID:
Part One discusses how to get connected to your server
Part Two shows how to query for a work item by ID.