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 / Flows - HTTP GET Reque...
Power Automate
Answered

Flows - HTTP GET Request - Error while retrieving Audits!! "BaseResourceUri must be a base of the full url"

(0) ShareShare
ReportReport
Posted on by 184

Hi

 

I am trying to retrieve audit history of certain data from Dynamics 365 using a Microsoft Flow.

 

My HttpRequest action is as below and error is shown as below, could you advise me what am I missing please?

 

 

 

Audit history - http request.PNG

 

Error:

 

Audit history - http request 2.PNG

 

 

 

Thanks

vik

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @arjunmusuvathy  shure is because you need a complete url please fill the blank spaces before and after eq with %20, and test

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @arjunmusuvathy,

     

    You should add two single quotes on both sides of dynamic content, for example:

    filter=_objectid_value eq '15185'

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • arjunmusuvathy Profile Picture
    184 on at

    @ChristianAbata Thanks for you reply.

     

    I have amended the URL as per your comment and removed the blank spaces, but it is still showing the same error.

     

    When I type in the URL below in a browser I can see the records in the endpoint.

     

    Audit history - http request 3.PNG

     

     

    Error:

     

    Audit history - http request 4.PNG

     

    @ChristianAbata  Any other advise please?

     

    Thanks

    Vik

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    shure @arjunmusuvathy  please follow the @v-litu-msft  sugestion try with this

     

    filter=_objectid_value eq '15185'

    add quotes '15185' 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @arjunmusuvathy 

     

    Try @ChristianAbata  suggestion first. 

     

    If that doesn't work try without the single quotes.

     

    May I ask you why you using HTTP Request to access the audit records

     

    CDS connector List could do the same job?

     

    image.png

     

    Set your filter query for the above.

     

    Thanks

  • arjunmusuvathy Profile Picture
    184 on at

    @v-litu-msft @ChristianAbata 

     

    I have tried adding quotes to dynamic content and it still errors. Any advice please?

     

    error http.PNG

     

    Thanks

    Vik

  • arjunmusuvathy Profile Picture
    184 on at

    @abm I am using httprequest as I want to retrieve and delete audit logs. 

     

    CDS - audit logs retrieval, deletion is not working I have tried.

     

    Thanks 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @arjunmusuvathy 

     

    Yes I can see there is a restriction in deleting the audit logs via CDS connector. 

     

    Why not try to use the CDS connector for getting the List records and use HTTP request to delete?

     

    Thanks

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi Vikram,

     

    I did tried the following:

     

    image.png

     

    I am getting the following error:

    The 'Delete' method does not support entities of type 'audit'.
     
    image.png
     
    Looks like the only option is Delete via SDK.
     
    Thanks
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @arjunmusuvathy 

     

    Do you need any further help in this? If the below response was useful please mark it as accepted solution as this will help others in community when they looking for solutions.

     

    Thanks

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard