Hi Everyone.
Is it possible to bring the one topic variables into another topic so that we can use that in condition.
Thank you in Advance.
I have tried above option but i am not able to find the topic names in "End of Conversation" while assiging values.
I have enabled the @MattJimison options to bring the topic's to value for global variable.
Hi, @NadeemAhamed .
If you want to input and/our output variables from one topic to another, without using global variables as @nesrivastava mentioned, you simply click on the "{x}" menu option in a topic and you can then set variables to be incoming and/or outgoing. If a topic has an incoming variable, when you redirect to it, the UI will change to allow you to pass in the value (per screenshot shown). Likewise, if a topic has an outgoing variable, you can capture it after the redirect node (per screenshot shown).
This makes it really easy to add a variable to your 'End Conversation' topic called "ReferringTopic", setting it as incoming, and then from each topic you redirect to 'End Conversation' you can pass a static or dynamic value. Both the global variable option and the input/output topic variable option will work; it comes down to preference, but having inputs/outputs is a clean way to do it without unnecessarily adding more variables to the global scope.
Cheers,
Matt
Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.
Cheers,
Matt
Hi @NadeemAhamed ,
As per your example, I created the same scenario. Here is the Final Output you will get it:
Steps:
Thank you for your valuable time to reply.
By using the above option i can use the Topic A variable in Topic B. but iam not getting how to use "if, if else and else if condition" in PVA condition activity by using that variables.
Example:-
I have multiple Topic's such as Topic A,B,C,D.... and at the end of the flow we are redirecting users to one common topic "End of Conversation"
When user is coming from different topic we should show different specific message by using variables in condition.
if (variable==A)
{ message="your coming from Topic A"}
else if (variable==B)
{ message="your coming from Topic B"}
else if (variable==C)
{ message="your coming from Topic C"}
else
{message="your coming from Topic Z"}
......
Hi,
If I understand you correctly, you want to access topic A variable in topic B. Instead of creating a topic level variable, create a global level variable.
https://learn.microsoft.com/en-us/power-virtual-agents/authoring-variables-bot?tabs=webApp
Romain The Low-Code...
76
Pablo Roldan
61
stampcoin
10