Chatbot connection in PowerApps - chatbot

I have already created the QNA, Postman and the connection but I'm stuck in the app, can anyone help me on this ?
I'm using the below code-
for onselect of the button
Collect(chat,{id:1,name:User().FullName,text:TextInput1.Text});
Collect(chat,{id:0,name:"EmployeeFaqBot",text:First(OPMS_Service.GenerateAnswer("a6*****7c","application/json",{question:TextInput1.Text}).answers).answer})
OnStart of the screen
ClearCollect(chat,{id:0,name:"EmployeeFaqBot",text:"Welcome " &User().FullName &" ! Enter your Query"})
Error -
"Invalid number of arguments" on OnSelect of the button.
I've tried below codes as well
Collect(chat,{id:1,name:User().FullName,text:TextInput1.Text});
Collect(chat,{id:0,name:"EmployeeFaqBot",text:First(OPMS_Service.GenerateAnswer({question:TextInput1.Text}).answers).answer})
Collect(chat,{id:1,name:User().FullName,text:TextInput1.Text});
Collect(chat,{id:0,name:"EmployeeFaqBot",text:First(OPMS_Service.GenerateAnswer("application/json",{question:TextInput1.Text}).answers).answer})
Collect(chat,{id:1,name:User().FullName,text:TextInput1.Text});
Collect(chat,{id:0,name:"EmployeeFaqBot",text:First(OPMS_Service.GenerateAnswer({"application/json",question:TextInput1.Text}).answers).answer})
Thanks.

Related

flutter - change password with api by typing old and new password + submit button is active when both textfields are filled

I want to change the password in the API with flutter by typing old and new password in the textfield with print success or failed. If you want to help me I would be
very grateful :)

I got error from React Native Expo webview : Domain undefined

I'm using Expo webview for my react project.
But i got an Error when i turn off my phone an hour and my app was still on foreground.
Error message was like
Error loading page
Domain : undefined
Error Code : -2
Description: net::ERR_NAME_NOT_RESOLVED
I guess this error occurs because when user's access token expires, i reload the page to reconnect websocket.
Please help this stupid junior developer 😢
enter image description here

Invoking error handler due to Uncaught abort(59) at Error. How can I solve this?

So I am trying to create a Unity game for WebGl. In this game I need auth0 for the authentication part.
This is the code for the authentication part:
var client = new AuthenticationApiClient(new System.Uri("..."));
var authorizationUrl = client.BuildAuthorizationUrl()
.WithResponseType(AuthorizationResponseType.IdToken, AuthorizationResponseType.Token)
.WithClient("...")
.WithConnection("...")
.WithAudience("...")
.WithRedirectUrl("...")
.Build();
Application.OpenURL(authorizationUrl.AbsolutePath);
To make my page work I have a local server in XAMPP.
So the idea with this is that I need to click a button on the game redirect the page to an Auth0 authentication page and once I enter my username and password (for example gmail account) I go to the game again.
The problem is that whenever I click in this button, I get this error:
Invoking error handler due to
Uncaught abort(59) at Error
at jsStackTrace (htdocs.wasm.framework.unityweb:8:22295)
at stackTrace [Object.stackTrace] (htdocs.wasm.framework.unityweb:8:22466)
at Object.onAbort (http://localhost/Build/UnityLoader.js:4:11047)
at abort (htdocs.wasm.framework.unityweb:8:484763)
at wasm-function[56208]:3
at wasm-function[16961]:46
at wasm-function[43219]:1456
at wasm-function[56097]:16
at dynCall_iii [Object.dynCall_iii] (htdocs.wasm.framework.unityweb:8:459875)
at invoke_iii (htdocs.wasm.framework.unityweb:8:339724)
at wasm-function[43216]:388
at wasm-function[43215]:75
at wasm-function[43213]:99
at wasm-function[43212]:7
at wasm-function[43531]:69
at wasm-function[43530]:7
at wasm-function[28791]:330
at wasm-function[16681]:48
at wasm-function[23219]:1236
at wasm-function[16681]:48
at wasm-function[23267]:1090
at wasm-function[28454]:534
at wasm-function[48795]:330
at wasm-function[23210]:101
at wasm-function[22913]:152
at wasm-function[28604]:71
at wasm-function[28603]:128
at wasm-function[23091]:1169
at wasm-function[22398]:52
at wasm-function[22915]:11
at wasm-function[56135]:22
at dynCall_viiiii [Object.dynCall_viiiii]
And there is more from where this came from. I tried to solve this by searching for that error in google but failed. Any suggestions?

Paypal login "Error: no template specified at engine"

I am following the example here:
https://developer.paypal.com/docs/integration/direct/identity/button-js-builder/
with the javascript:
paypal.use( ['login'], function (login) {
login.render ({
"appid":"myAppID",
"scopes":"profile email address phone https://uri.paypal.com/services/paypalattributes",
"containerid":"lippButton",
"locale":"en-us",
"returnurl":"myReturnUrl"
});
});
and get the following error when I click on the log in button. Another window pops up with the error:
Error: no template specified at engine
Is this on their end? Or is it some credential related error?
I'm getting the same thing and mine was working last night. My guess is that they're doing (or did) some sort of maintenance.

Unable to post message to http://domain.com. Recipient has origin https://www.facebook.com

Sorry if this has already been asked but I couldn't find it when searching.
The "Login with Facebook" function was working for me previously, but now when I or anyone else tries to use it initially to ALLOW the app, it fails. It freezes just after accepting to login at this URL: https://www.facebook.com/dialog/permissions.request
I opened up the Chrome console and it displays this error: "Unable to post message to [DOMAIN]. Recipient has origin https://www.facebook.com."
However, if I just close the window and proceed to try again, it logs me in successfully.
Has anyone else had this issue?
Thanks for your time,
~Josh.