How to add custom error message in Power Virtual agent - power-virtual-agents

How can I add a custom error message like "wrong file name entered" when filename entered from power virtual agent bot as input to flow doesn't matches the filename in onedrive ,I have used find file in folder action within power automate flow,
this is my PVA
here is my flow PowerAutomate flow
I tried giving condition , but iam not able to reuturn 2 values from flow to PVA

You may use the "Return Value To Power Virtual Agents" action to return one or more values from the flow back to a bot as per below screenshot.
Please see more details on output parameters from the official documentation.

Related

When is the CustomEmailSender_UpdateUserAttribute trigger source used?

I have set up a custom email sender function that currently just decrypts the code (if present) and logs the event.
I can see in the logs that the lambda is correctly triggered for the other trigger source types such as CustomEmailSender_AdminCreateUser when I run the aws cognito-idp admin-create-user CLI command, and the CustomEmailSender_ForgotPassword when I submit the Forgot Password form on the Hosted UI. However, I do not see any logs when user attributes are updated. I've tested with both the admin-update-user-attributes and the update-user-attributes commands, as well as in the AWS console.
When is the email with the CustomEmailSender_UpdateUserAttribute trigger source sent? Is there a configuration on my user pool or client that I am missing?
According to Cognito documentation on Custom message Lambda trigger sources:
CustomMessage_UpdateUserAttribute | Custom message – When a user's email or phone number is changed, this trigger sends a verification code automatically to the user. Cannot be used for other attributes.
So it only triggers with changes to the email or phone number fields, in order to verify them.

Tableau Extract refresh through API call from python. Getting unauthorized access (401002 response)

we are working on setting up tableau extract refresh through API invocation. We are using Personal access tokens from tableau for authentication. While we are able to establish the communication and are able to retrieve details on tableau site, we get a 401002 response when we try for extract refresh. Is there a need for an additional privilege to the access token to set the extract refresh.
Any pointers on this would be of great help!
Make sure that the user whose PAT you're using is the owner of the workbook (and hence the extraction schedule). If not, the extraction request will fail. Alternatively, if the user cannot be the owner, they must be server administrators or site administrators on your Tableau server.
Also make sure you already have a schedule for the extract refresh. If one doesn't exist, you can create it with the Create Schedule method (with the API this can only be done by server administrators, on the browser the owner of the workbook can do this).
From the Tableau API docs, also note that "A REST request to start a refresh task will fail if the task has been put in the task queue in any of these ways, or is already in progress". This might also be one reason why it fails.

Set Password email by application

I have 2 applications on the same Tenant.
I can configure an email template for the "Set Password" workflow on:
an Application Level
the Tenant level
When I register a new user using the UI, as far as I understood it will only be able to send the email configured on the tenant level since it won't know anything about which application the user can see until the next step when I add the registrations.
If I create a user and add registration to it right away (on the same step) then this takes the Template configured on the application level.
My questions are:
Can we do something like this through the UI interface too? My applications have a different user base (some have accounts on both) and it would be nice to be able to send them one email or the other.
Or is this only possible through the API?
If I register a user with both applications (through the API) which email do they get?
Thanks for the help!
Can we do something like this through the UI interface too?
This is not currently possible. Creating the User, and creating a User Registration are two separate steps. As you correctly stated, when creating the user in the UI, there is no context yet for an application. For this reason, the user will receive the template configured at the tenant level.
Or is this only possible through the API?
Correct. You must use the Create "User + Registration" API to do this in one step to use the application template for setup password.
If I register a user with both applications (through the API) which email do they get?
When using the API to Create "User + Registration" you can only register for one application at a time. The email is only sent during the User Create step, so if you register for a second application, the user will already exist and thus will not receive a second email.

How do you have the API recognize the "Template ID" on DOCUSIGN. I am putting the template but its blank

I have the API built in my custom CRM and its working fine but the issue is that the application is being sent out blank. We currently have it were we already have the necessary fields that will guide the client through the process instead of them having to drag and drop certain items.
Assuming you're defining the template ID correctly in the call, the next most likely cause of failure is that your Recipients aren't being correctly assigned to the Template Roles.
Can you confirm the Role Names in your template match what you're assigning in the API call?

Google script: cannot refer to users using Session.getActiveUser()

I have a Google Apps Script that executes as me.
In the script, I want to know the user's email.
So I refer to the email of the user accessing my application as Session.getActiveUser().getEmail()
That's not working out at all. Google Apps Script is giving an error, saying
Session.getActiveUser().getEmail() is NULL.
When I manually enter a dummy email instead of Session.getActiveUser().getEmail(), the code works perfectly
PS: The app MUST execute as me, because it needs to access my contacts.
You cannot have Session.getActiveUser().getEmail() return the user's email id while the app is running as you. There are some workarounds you can try
Ask for the user's email id explicitly.
Write two scripts - one which is the front end UI etc. that run as the user accessing the app (this allows Session.getActiveUser().getEmail() to return the user's email address). Have a second script that does the tasks where your contacts are accessed.
Call the second script from the first by using doPost and doGet methods in your second script.
For example,
Script 1:
function whatever(){
UrlFetchApp.fetch('SERVICE_URL_OF_SCRIPT_2');
}
Script 2:
function doGet(e){
// code to access your contact, get parameters in e.parameters
}