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

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:
I have the same question (0)
  • 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
    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

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard