GithubHelp home page GithubHelp logo

microsoft / dynamics365-apps-samples Goto Github PK

View Code? Open in Web Editor NEW
136.0 20.0 213.0 8.12 MB

Sample code for Dynamics 365 apps

Home Page: https://docs.microsoft.com/dynamics365/

License: MIT License

C# 99.96% Batchfile 0.01% HTML 0.01% JavaScript 0.02% CSS 0.01% XSLT 0.01% Kotlin 0.01% ASP.NET 0.01%

dynamics365-apps-samples's Introduction

Introduction

This repo provides samples for apps, solutions, and related services for Dynamics 365. For Dynamics 365 docs, visit https://docs.microsoft.com/dynamics365.

Related samples repos

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments .

dynamics365-apps-samples's People

Contributors

ameybaviskar avatar ankitbishtkec avatar denozor avatar enchongwang avatar erli-ms avatar gandhamm avatar gaurav7275 avatar har1pr1ya avatar jerrinapaul avatar jimdaly avatar kabala123 avatar kumarvivek avatar kushagr-kishore avatar mh-jaya avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar neeranelli avatar nkrb avatar shubhadaj avatar sudhkaoc avatar susikka avatar udaykirang avatar v-faahme avatar v-gaucha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamics365-apps-samples's Issues

Passing Macroparamaters to Macro | SmartAssist

I have created a smartassist bot and I am able to trigger a macro defined in Omnichannel but I am unable to retrieve the macro parameter passed in the adaptive card custom action. How do I use the parameter in macro?

{
  "type": "Action.Submit",
  "title": "Open tab",
  "data": {
    "MacroName": "Polly",
    "MacroParameters": {
      "url": "${KBlink}"
    }
  },

Translator region key missing

For the Omni-Channel realtime translation sample web resource: https://github.com/microsoft/Dynamics365-Apps-Samples/blob/master/customer-service/omnichannel/real-time-translation/webResourceV2.js

When using Bing Translator hosted in a non-US region (in my case australiaeast) you need to add an additional header for the API call to be successful.

For example:
'Ocp-Apim-Subscription-Region': 'australiaeast',

(I added this above the line for 'Ocp-Apim-Subscription-Key': C1WebResourceNamespace.bingTranslateApiClientSecret)

While not everybody might need to add this parameter, I think it'd be good to add it in and default it. Non-US users of this will need to set the value.

Smart Assit Adaptive Card icons in Productivity pane not displaying

I have implemented the Smart Assist bot in our Omni-channel instance. It is working fine except for the Icons in the cards. When the cards is displayed in the Productivity Pane, the icons are being prefaced with "https://urlp.asm.skype.com/v1/url/content?url=".

I have tried using both the Icon data that was originally in the Smart Assist solution and also a webresource in D365 CE.
OpenIcon = "data:image/png;base64,iVBORw0KGgo..."
webresource = "https:///WebResources/msdyn_/Images/openicon.png"

I believe the icons were working when we exposed Smart Assist in a section on the Conversation Summary form. This started after moving it to the Productivity Pane.

Update to use Language Studio

When will the SmartAssist sample be updated to use the new Azure Language Studio? LUIS resources will no longer be created starting April 1 2023.

Smart Assist does not appear in Conversation Summary form

I've followed the instructions and published the bot code back to Azure. I've followed the Smart Assist Agent instructions from Microsoft--adding the Application Bot User with all the links. I've added the Smart Assist Control to the Conversation Summary form and published. Yet the Smart Assist Bot does not appear.
Any suggestions on troubleshooting this.
Thanks
SmartAssist on Conversation Form in CE

Change in Twilio sample app?

Following the documentation below, it appears as if the quickstart application has changed and no longer references the functions listed below.

Follow the Twilio documentation to create a sample quickstart application: "https://www.twilio.com/docs/voice/client/javascript/quickstart"
2. Use the code from section "Twilio - Client voice" below for the "client-voice" Twilio function
3. Use the code from section "Twilio - Capability token" below for the "capability-token" Twilio function
4. Note the URL for the Twilio "capability-token" function created above. In this sample, we will use "https://twilio-sample.twil.io/capability-token"

Can this be checked and the readme updated?

Unable to See response from Smart Assist Bot

Hi - I need to enable smart assist inside omni channel app and I have followed the above steps , but unable to get any response in test web chat. Even i tried running locally using bit emulater , but getting no response / error. PFB screen shot. Please assist.

image

Thanks
Aavi

Automatically trigger Begin on the welcome card.

Hi,

Is there any way that we can automatically trigger the welcome card operation without clicking the "Begin" button on the adaptive card.

  • can we trigger it via back end ?
  • can we trigger it without clicking the button ?

Test in Web Chat no response

Hi,

I follow exactly the guide but there is not response when Test in Web Chat. What will be the possible problem?
By the way, I am not sure how to add the custom action, can anyone guide me?

thanks.

Visual Studio 2022 failes to open solution file

I git cloned the repo and double clicked on one of the solutions.

Output:

C:\Users\skfd\Code\Dynamics365-Apps-Samples\sales\QualifyLead\PowerApps-Sample6\QualifyLead.csproj : error : The project file could not be loaded. Could not find a part of the path 'C:\Users\skfd\Code\Dynamics365-Apps-Samples\sales\QualifyLead\PowerApps-Sample6\QualifyLead.csproj'. C:\Users\skfd\Code\Dynamics365-Apps-Samples\sales\QualifyLead\PowerApps-Sample6\QualifyLead.csproj

Opening project file directly fails to build with error:

namespace:Microsoft.Xrm.Tooling.CrmConnectControl;assembly=Microsoft.Xrm.Tooling.CrmConnectControl'. Line 24 Position 14.	QualifyLead	C:\Users\skfd\Code\Dynamics365-Apps-Samples\sales\QualifyLead\QualifyLead\Login-UX\ExampleLoginForm.xaml	24```

DynamicsDataAccessLayer unauthorized due to token expiration

I have been using the Smart Assist Bot since it has come out. We have had no issues with the Bot using the API calls to D365 CE. However, in the last few months, the API calls stopped working due to an "unauthorized" error. It appears that the Access Token expires and a new one is not acquired until we restart the Bots App Services. The App Registration Secret is not expired. CORS is set correctly.

The API calls work for about 3 hours and then they stop due to unauthorized access. Again, this has been working for months and then this started a couple months ago.

Do I need to add code to Acquire a new Access Token each time? And, if so, how would I do this.

MS Ticket Logs:
traceName: LogAccessDenied ; area: Owin.AuthN ; layer: S2SSecurityTokenHandler ; message: empty ; exception: System.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired.
ValidTo: '07/28/2021 14:57:27'
Current time: '07/28/2021 15:22:00'.
at System.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
at Microsoft.Crm.Authentication.Owin.TokenHandlers.BaseSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
System.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired.
ValidTo: '07/28/2021 14:57:27'
Current time: '07/28/2021 15:22:00'.
at System.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateLifetime(Nullable1 notBefore, Nullable1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
at Microsoft.Crm.Authentication.Owin.TokenHandlers.BaseSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.