I am working on creating a simple calendar app to track the user's Outlook.com calendar. In order to add some custom information I am needing to use Schema Extension as this information must be filterable and to my knowledge there is no filterable on Open Extension data.
I have followed the RegisterSchemaExtension() from the following sample: https://github.com/microsoftgraph/uwp-csharp-snippets-rest-sample/blob/master/O365-UWP-Unified-API-Snippets/Extensions/ExtensionSnippets.cs
and have added the proper scope to my application. I have also added the Directory.AccessAsUser.All permission to my app through the app registration portal at: https://apps.dev.microsoft.com/portal/register-app
Despite this, I am unable to register the schema and get error saying: MethodNotAllowed. I am not sure where to go from here as I haven't been able to find useful resources on the web. Apologies for the English! It is not perfect yet but I am learning!
With how complicated the Schema Extension turned out I decided to use Open Extension and do filtering manually.
Related
Sorry if this question sounds a bit broad but the question describes what I am trying to do.
In my organisation I am trying to get events from certain people's calendar and then add those events into one shared calendar, Like creating a team shared calendar displaying what everyone's time availability.
Though as a starting point, I want to be able to retrieve the events from their calendars and displaying them on a table. Can anyone point me to a tutorial on how to do that in an asp.net app ?
We don't currently have a sample that handles this scenario specifically, but we do have a number of ASP.NET samples that could help you get started with Microsoft Graph + ASP.NET: https://github.com/microsoftgraph?utf8=%E2%9C%93&q=asp
This page shows you how to get events for a specific user by using raw REST calls to the Microsoft Graph endpoint: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_events
Were you planning on using the Microsoft Graph .NET SDK instead of raw REST calls? I can provide a code snippet for that if you're interested.
You need to make sure that you, or an Azure Admin, “Grant Permission” to the various requested Graph permissions. Some of them require explicit Admin consent. From there you can use the Users[{username}].Events.Request().GetAsync() to retrieve events. Be sure to supply the required start & end datetime parameters.
I'd like to perform some operation in mscrm plugin, if a new record is created automatically by CRM client for Outlook. Eg. it can be a contact or an incident created from an email.
Is there way to check this condition?
We have contact's first name and last name filled oppositely and incident without the caseorigincode field filled, when created from an email in Outlook. Maybe there is a better workarround to solve these two issues. But still I am wondering about the original question.
According to the sources available online, there is really no reliable way to solve this.
There was property CallerOrigin until CRM 4. Then it got deprecated, but continued working for some time, as state in another answer (https://stackoverflow.com/a/14812885/1474519). But it doesn’t seem to be working anymore in CRM 2015.
I found couple advices with IsExecutingOffline and IsOfflinePlayback, but it is really not solving the problem.
I also found a tip to check this code HttpContext.Current.Request.Url.ToString();. This doesn’t work for me.
I found the most complete information here: http://blog.simpletrees.com/2012/03/executioncontextcallerorigin-in.html
According to this article, I am sending a value in a hidden field from my form (or thru API, from plugin, from workflow). As this field is not set when a record is created from outlook, I can recognize the record being created from Outlook. There is of course problem, this field might not be set when importing records or when using mobile app. But I don’t see a better way to go.
Therefore, I started request on Microsoft Connect to add this functionality. You can vote for it here: https://connect.microsoft.com/dynamicssuggestions/feedback/details/1776771
You could add an attribute to the contact and incident to save the origin of the creation.
Then you add a plugin that listens to the Create event of the entities and register it only for client side (offline) execution.
Or you check the PluginExecutionContext for the IsExecutingOffline and IsOfflinePlayback properties to check if the creation was initiated from outlook and store the appropriate value.
https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.ipluginexecutioncontext_members.aspx
I want to build a media library system but don't know how to go about securing my files from anybody body who want to hack my system. I don't want any user to use one particular link to access my files, I want only user who can buy the media to have access to a particular file. if one "friend" access it, and then give the file URL to unauthorized person the friend should not be able to access it.
for example, if I have the following link, how do I go about make another person not to have access to it.
https://a4.sphotos.ak.fbcdn.net/hphotos-ak-ash4/296040_2530953916384_1329592446_32898884_1499197273_n.jpg
I will like know how I can go about implementing this in Asp.Net MVC.
Follow the Following [LINK] (http://www.wrox.com/WileyCDA/Section/id-291916.html) to do that. Im Sured it Helps.
What I need to do is quite simple although is causing me lots of trouble.
I need to create programmatically an AssetUrlSelector in a web part that selects a file in sharepoint 2010 and makes its path available to be used elsewhere.
So far I have managed to create the AssetUrlSelector and display the path on a textbox, however I cannot use this as every reference to it will be null.
Have you got any practical example?
Try the Document ID Service. In short this service generates IDs for documents (files) and generates an url with this ID so even if the file is moved the url stays valid and the service returns the document. This service might rely on search functionality unless you implement your custom search. Here is an article on how to configure OOB Doc IDs here. Also you can google further if you're interested.
The way I create my menus is causing a slight problem. I define the style in my style-sheet and create a module with html in it, here's an example of the HTML:
<ul class="cmenu">
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
<li>Link4</li>
</ul>
My reason being I need multiple menus through out the site all with different links (much more simple than using dnn:NAV with options) and it's working very well.
But trying to create a link to a user profile in this way doesn't seem possible. When visiting my user profile for example I am taken to this link: "../UserProfile/tabid/57/userId/1/Default.aspx" which means to me that DNN is dynamically creating the link and the page is created from the provided link. Please correct me if I'm wrong here.
Also I would like to create new input fields, how do I go about this?
I've been developing in PHP/HTML/CSS/JS for years now, ASP.NET is quite new to me and I couldn't find anything on the subject, thus my questions.
I'm very familiar with C# and Visual Studio, I would like to use these tools to extend on the current Users and Roles structure if possible.
Thanks in advance!!
The URL for the profile is generated server side using the NavigateUrl method within the core.
To solve your HTML module issue in a primitive manner you could enable token replacement and use [User:UserID] as a token in the URL (Replace the 1 with the token in your example).
However, that doesn't work well for unauthenticated users as it will try to take them to -1. Honestly creating a menu might result you to create a custom module for it.