My PVA bot is intergrated via a JIRA connector.I am using power automate to call Jira and create a ticket.The bot is now available in teams.
One of the of the fields ; Summary has a limit of 255 characters. I would like to alert the user when has reached the character length.At the moment the users justs gets an error and no ticket is created.I have to go to power automate to get the error as attached.
{"errorMessages":[],"errors":{"summary":"Summary can't exceed 255 characters."}}
Solved! Go to Solution.
Thank you so much for your swift response.Testing this and will revert with an update.
Hi @ENjoroge,
When you mean stop typing, you mean the bot only uses the first 255 characters of the message the user has typed?
If so, you could use a substring function in your flow.
Below is an example:
In the If Yes it just uses the original text, because it is equal to or less than 255 characters.
In the If No it uses the following expression to only use the first 255 characters of what the user typed.
substring(triggerBody()['text'], 0, 255)
Hi @ENjoroge,
You could use a length function and a condition in your flow. When it is over 255 characters you could use a custom message and sent that back to the Power Virtual Agent.
Below is an example setup.
1. Make sure you have a result string variable in your flow
2. Also add a Condition action, use the following expression to check for the length:
length(triggerBody()['text'])
is less than or equal to 255
3. Add your create ticket in Jira action in the If Yes section.
4. Add the custom message that the summary is to long in the If No. Use the
The setup above would result in something like below in the bot.
Thank you so much for your swift response.Testing this and will revert with an update.
This works perfectly but will rather complicate my long flow.
@Expiscornovus Can i have this;Instead of displaying the message,it stops typing beyond the 255 characters.
Hi @ENjoroge,
When you mean stop typing, you mean the bot only uses the first 255 characters of the message the user has typed?
If so, you could use a substring function in your flow.
Below is an example:
In the If Yes it just uses the original text, because it is equal to or less than 255 characters.
In the If No it uses the following expression to only use the first 255 characters of what the user typed.
substring(triggerBody()['text'], 0, 255)
@Expiscornovus thank you so much for this.I was able to get it to create a ticket in both ways.
Still have a question ;i would like to capture InitialUserMessage and or Chat transcript and dump that conversation into the ticket.Any idea?
Hi @ENjoroge,
As far as I am aware it still takes at least 6 hours before the transcript to reaches Dataverse.
So, you would have to work with delays (and update the Jira ticket afterwards with those details) in order to retrieve the transcript data. https://powerusers.microsoft.com/t5/General/Conversation-Transcript/td-p/589400
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.