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 / Power Automate / Power Automate - Custo...
Power Automate
Answered

Power Automate - Custom Connector - NULL values are being dropped in the flow from the schema

(0) ShareShare
ReportReport
Posted on by 200

Hi,

 

I have a custom connector that retrieves data from an API.

The API correctly returns all the required fields.

 

When i call this custom connector using Flow, the data is returned, HOWEVER, if one of the values contains a NULL it does not appear in the schema, which causes the flow to break further down.

 

Example:

Source from the custom connector:

 

"UserId": "24XILTQNtfUu4VwsfLZN3A2",
    "Title": "Test Course",
    "CourseId": "G8ZeXsFgng41",
    "Score": "",
    "Result": "Complete",
    "Type": "Course Completed",
    "AchievementId": 64881430,
    "CertificateId": null
  }
 
what is returned from the custom connector using Flow :
 
"UserId": "24XILTQNtfUu4VwsfLZN3A2",
    "Title": "Test Course",
    "CourseId": "G8ZeXsFgng41",
    "Score": "",
    "Result": "Complete",
    "Type": "Course Completed",
    "AchievementId": 64881430
}
 
As you can see , the "CertificateId" from the JSON is missing.
 
Is it normal behavior for flow to drop any json tags with null from a custom connector?
 
If so, how can i get around this??
 
swagger definition below:
DragonLord_0-1607596499811.png

 

 

 

Categories:
  • MJain Profile Picture
    2,450 on at

    Hi @DragonLord ,

     

    After the response is received from custom connector use Parse JSON and use the one which has all fields. Add null in the schema as follows:

    ["string","null"] to handle null values.

     

    Thanks

  • DragonLord Profile Picture
    200 on at

    does not work unfortunately, the JSON tags are being removed by the custom connector, so even using PARSE JSON does not recognise them.

  • MJain Profile Picture
    2,450 on at

    Hi @DragonLord ,

     

    Use Parse Json action with the content you have provided as you mentioned the custom connector is not sending certificate :

    {

    "UserId": "24XILTQNtfUu4VwsfLZN3A2",
        "Title": "Test Course",
        "CourseId": "G8ZeXsFgng41",
        "Score": "",
        "Result": "Complete",
        "Type": "Course Completed",
        "AchievementId": 64881430,
        "CertificateId": null
      }
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have been using your mention code and want to implement it on my site of https://canoesurfer.net/ but it was not working and I was really worried about that and could not found anyway that how can i solve this.

  • MJain Profile Picture
    2,450 on at

    @Anonymous ,

    Can you please share your flow screenshots ?

     

    Thanks

  • Verified answer
    DragonLord Profile Picture
    200 on at

    i managed to get around this by testing if the "missing" JSON tag had a length of > 0.

    its a crap solution but it seems to work for now 😞

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard