Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Custom connector throwing schema validation failure

(0) ShareShare
ReportReport
Posted on by 1

Hello Guys,

 

I needed to build a custom flow for my customer, where the trigger was a "When a new channel message is added" and retrieve the message information with pictures to our system.

I'm used HTML to text node to filter all of the HTML tags and get the URL inside a [URL]

After that, I put the text inside an array with 

split(body('Html_to_text'), '[')
where I split the text from the left side of the URL.

There is a condition for me to check if there is any attachment, if not I'm checking for any graph.api URL inside the message because that indicated that the user did not attach the picture instead it used the mobile app media option or ctrl + V pasted inside the message.

 

This is how I check the text for the URL

contains(body('Html_to_text'),'https://graph.microsoft.com/')
If it contains any URL.
I'm going through with applying to each of the URLs (the array that I mentioned) and checking with another condition that these URLs are real graph.api URLs.
if I split the URL  with split(items('Apply_to_each_3'), ']')[0] and it is contains the HTTP
AND
this expression (contains(items('Apply_to_each_3'),'https://graph.microsoft.com/')) is equal to true.
Than we can append this URL to an array, where I collect them. (this is how I put the value inside the array: split(items('Apply_to_each_3'), ']')[0])
After that I'm going through all of the "real" URLs and this is where I'm using our custom connector to graph.api.
I'm only using URL's second part from the /beta
with split(items('Apply_to_each'), 'beta')[1]
 
This is where our customer experienced an error, meanwhile, I tested it tons of times and I was succeed for me.

I asked the customer to check the custom connector with the URL that threw the error, just to be sure that not the custom connector that was the problem and it returned with status code 200.

rpop_5-1704470619074.png

 

I also turned on the Concurrency control, because I read on the forum that it can be also a problem, but did not work out.

rpop_6-1704470712961.png

 

 

What am I missing?

 

Thank you for your help!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1