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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Conditional inclusion ...
Copilot Studio
Unanswered

Conditional inclusion of custom variables in Copilot Studio Topics

(1) ShareShare
ReportReport
Posted on by 39

I'm working on a Copilot Studio topic and need to conditionally include or exclude a custom reference variable URL based on the availability of a response. Specifically, I need to check if the response is present before including the URL in the topic logic.

Here’s what I’m trying to achieve in topic:

  • Implement a logic to verify if the response from the data source or function is valid and non-empty.
  • Include the custom reference variable URL only if the response is available. If the response is not present, the URL should be excluded.

Could you please provide guidance on how to set up this conditional logic within Copilot Studio topics? Any specific steps or examples for implementing this would be greatly appreciated.

Thank you in advance for your support.

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at
    Hi,
    You can customize the citations in the generated answers using Gen AI. Therefore, if the response is empty, don't include any citation, and if there is, include it. You can watch an excellent step-by-step on how to do that here: (6) How to Customize Citations for Uploaded Files in Copilot Studio Knowledge - YouTube
     
    Hope that helps!
    Ferran
  • SummitKumar Profile Picture
    69 on at
    I think answer to your question is by leveraging powerfx to put conditional logic.  i think link suggested by Ferran is spot on

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 713

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 117

Last 30 days Overall leaderboard