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 / Http Validation tax nu...
Power Automate
Unanswered

Http Validation tax number

(0) ShareShare
ReportReport
Posted on by

Hi, I would like to validate tax numbers with the help of flow throug the following website: http://ec.europa.eu/taxation_customs/vies/vatRequest.html

I found some technical information and hints on the interactive service here:

http://ec.europa.eu/taxation_customs/vies/technicalInformation.html

http://ec.europa.eu/taxation_customs/vies/checkVatTestService.wsdl

The question is how to configure the http element in flow. 

Would be great if somebody could help. 

Many thanks, 

Ludwig

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @lreinhard7 ,

     

    Do you want to work with HTTP action in flow?

     

    Please check the following thread on Example Http action:

    https://powerusers.microsoft.com/t5/Building-Flows/Example-Http-action/td-p/1105

     

    Further, a blog on how to build nested flows with the HTTP action for your reference:

    https://flow.microsoft.com/de-de/blog/build-nested-flows/

     

    Another blog on HTTP post requests using Microsoft Flows:

    https://www.cloudfronts.com/http-post-requests-using-microsoft-flows/

     

    Best regards,

    Mabel

     

  • NielsSL Profile Picture
    on at

    @lreinhard7,

     

    Did you come up with a solution? I'm currently exploring if this is possible using Power Automate. 

  • Verified answer
    Ludwig Reinhard Profile Picture
    on at

    Hi Nielf, 

    That's what I finally found out:

    Validate VAT Numbers | Dynamics 365FO/AX Finance & Controlling (dynamicsax-fico.com)

    Hope this helps. 

    Cheers, 
    Ludwig

  • NielsSL Profile Picture
    on at

    Thanks @lreinhard7 - much appreciated. You should mark your reply aove as the answer. That will help people coming by this thread in the future. 

  • Florian P. Profile Picture
    12 on at

    Thanks @lreinhard7 for your solution. I learned useful things.

     

    I have set up the validation for the VAT numbers as you did.

    The flow runs always successfull, but not correct.

     

    In the condition step, the expression result is always false. Whether the compose of the validation result is true or false.

     

    In the screenshots you can one with a valid VAT No. and one that's not valid.

     

    Any ideas?

     

    Thanks in advance for any help

     

    VAT is validVAT is validVAT not validVAT not valid

  • Nielf Profile Picture
    306 on at

    @FlorianP 

     

    Try adding a compose action after your HTTP action with this expression:

    if(equals(first(split(last(split(body('HTTP'),'<valid>')),'</valid>')),'true'),true,false)

     
    Then use the output of the compose action in your condition:

     

    NielsL_0-1652090901841.png

  • Florian P. Profile Picture
    12 on at

    @NielsL Thanks a lot. That's fixed it.

     

    Except for if(equals(, my compose action was the same.

    Would not have thought of using if(equals( 🤔

     

    Learned something again 👨‍🎓

     

    Thanks again for your quick and helpful answer 🙌

     

     

  • NielsSL Profile Picture
    on at

    @lreinhard7 Something seems to have changed recently with the VIES API. It's no longer working

     

    The VIES (Independent Publisher) - Connectors is also affected by this. 

     

    Have you found a solution for this? I have tried updating the endpoint to the new URL (http://ec.europa.eu/taxation_customs/vies/checkVatTestService.wsdl). However, I keep getting errors no matter what I try.

     

    Nielf_0-1663254624917.png

  • Nielf Profile Picture
    306 on at

    It's working for me again using the original URI (without the 'Test' part). 

     

    However, I had to add some headers in the HTTP request for it to work this time around. Otherwise it keeps timing out. It seems the API is really slow. It takes me up to 18 seconds to get a response. 

     

    NielsL_0-1663312287279.png

     

  • Florian P. Profile Picture
    12 on at

    Thank you very much for your solution!

     

    Works for me again too 😀

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard