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 not to get a error...
Copilot Studio
Answered

How not to get a error message for empty fields on the email when using Adaptive Cards in PVA .

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

Hi there,

 

I'm using Adaptive Cards with PVA and sending the data to an email address.

So, when the field is not required and the user don't need to fill up the field, the data is still sent and when the email arrives there is an error code like this one {ff075097-c8fe-4ac5-bc6a-657484f672a4} corresponding to the field that was empty .

 

So, how to avoid the adaptive cards sending the field when is empty?

 

Thanks in advance.

 

Fernando

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    Are you sending the email using a flow that posts the adaptive card and then sends the email based on what is returned?  If you are you can just add a Coalesce() around each field that might be empty when you send the email.  Then supply a space or an empty string as the alternate value in the Coalesce().  If the field is null it will use the blank instead.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @Pstork1 ,

     

    Thank you very much for your reply.

    I'm not sure how to implement Coalesce() on the adaptive cards.

    If you could please paste a code example, that would help a lot.

     

    Thank you in advance,

     

    Fernando

  • Pstork1 Profile Picture
    68,858 Most Valuable Professional on at

    I wasn't suggesting that you implement it on the cards themselves.  Instead, you use it in the email where you are getting the error to make sure that a default value is supplied when one of the fields on the adaptive card returns a null.  

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Gotcha!

     

    Thank you.

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
Valantis Profile Picture

Valantis 325

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
chiaraalina Profile Picture

chiaraalina 119

Last 30 days Overall leaderboard