web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How we can Override Va...
Copilot Studio
Unanswered

How we can Override Variable value in PVA?

(0) ShareShare
ReportReport
Posted on by 37

Hi @HenryJammes Hope you doing well.

I have design flow in PVA where first i have two variable one is for message = Activity.text and another is  channelId = Conversation.id

then i use action which give me response from Power automation and this action use the two varaiable as input then i use ask a Question topic upon deciding question i use another variable which store the question text the i use go to step which is action Topic so now i want to use the message variable override with the same store question text varaibale value so it will be possible?

flow :

Maxmellien_1-1705491079470.pngMaxmellien_2-1705491120753.pngMaxmellien_3-1705491159657.png

Maxmellien_4-1705491365955.png

 

so the last image show when we get select question then i store this question in followupQ  varaible but i am unable to give this value to the first varaible which is message  so action will use this variable as input. 


here is the code:

 

kind: AdaptiveDialog
beginDialog:
 kind: OnUnknownIntent
 id: main
 actions:
 - kind: ConditionGroup
 id: conditionGroup_LktzXw
 conditions:
 - id: conditionItem_tlGIVo
 condition: =System.FallbackCount < 3
 actions:
 - kind: SendActivity
 id: sendMessage_QZreqo
 activity: I'm sorry, I'm not sure how to help with that. Can you try rephrasing?

 elseActions:
 - kind: SetVariable
 id: setVariable_GTvAYK
 variable: Topic.message
 value: =System.Activity.Text

 - kind: SetVariable
 id: setVariable_iUhd23
 variable: Topic.channelId
 value: =System.Conversation.Id

 - kind: InvokeFlowAction
 id: invokeFlowAction_hmQcmK
 input:
 binding:
 text: =Topic.message
 text_1: =Topic.channelId

 output:
 binding:
 answer: Topic.answer
 followup: Topic.followup
 source: Topic.source

 flowId: e2261edf-1fb5-ee11-a569-6045bd006ade

 - kind: ConditionGroup
 id: conditionGroup_NEB6j4
 conditions:
 - id: conditionItem_xiSAU3
 condition: =!IsBlank(Topic.followup)
 actions:
 - kind: ParseValue
 id: YNjP77
 variable: Topic.OptionsTable
 valueType:
 kind: Record
 properties:
 json:
 type:
 kind: Table
 properties:
 DisplayName: String
 question: String

 value: =Topic.followup

 - kind: Question
 id: question_a5zxac
 interruptionPolicy:
 allowInterruption: true

 variable: init:Topic.SelectedQuestion
 prompt: You may ask the Follow Up Question.
 entity:
 kind: DynamicClosedListEntity
 items: =Topic.OptionsTable.json

 - kind: ConditionGroup
 id: conditionGroup_TJzRUz
 conditions:
 - id: conditionItem_RpXnjz
 condition: =!IsBlank(Topic.SelectedQuestion)
 actions:
 - kind: SetVariable
 id: setVariable_BlEGpg
 variable: Topic.selectedFollowupQuestion
 value: =Topic.SelectedQuestion.question

 - kind: GotoAction
 id: nRMI0q
 actionId: invokeFlowAction_hmQcmK

 - kind: SendActivity
 id: sendActivity_teRQSy
 activity: |-
 {Topic.answer}
 {Topic.source} 
 {Topic.followup} 

 


- Actually i want to use go to step and select action and place the selected followupQ variable in action and so the flow repeat itself from start :
 

Maxmellien_1-1705506099555.png

 

 


Thanks.

I have the same question (0)
  • Maxmellien Profile Picture
    37 on at

    I think i worked now after this action i used go to step but each time i tried it automatically selected ask a Question Topic so this time i scroll up with speed and selected above topic and now its working. 

    Maxmellien_0-1705507037205.png

     


    The automatic selection confuses me, which is why I initially thought it would not be possible.
    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard