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 / Invoke web service err...
Power Automate
Unanswered

Invoke web service error - The key in the request URI is not valid for resource

(0) ShareShare
ReportReport
Posted on by 73

Hi,

 

I'm using 'Invoke web service' action with 'Get' method to retrieve the dataverse table value matching with variable value.

Here is my variable item to be matched.

Niraj466_0-1660321921298.png

The said value is available in Dataverse table :

Niraj466_1-1660321975435.png

 

I'm using below syntax in Invoke GET method URL :

Niraj466_2-1660322032799.png

 

%OrganizationURI%/api/data/v9.2/cr303_repdata_projects_wise_monthlies(_cr303_queue_id_value='%QueueData['cr303_repdata_queueid']%')

 

As a output, I'm getting error :

{"error":{"code":"0x8006088a","message":"The key in the request URI is not valid for resource 'Microsoft.Dynamics.CRM.cr303_repdata_projects_wise_monthly'. Ensure that the names and number of key properties match the declared or alternate key properties for the resource 'Microsoft.Dynamics.CRM.cr303_repdata_projects_wise_monthly'."}}

 

I checked number of times and syntax looks correct to me to retrieve the value from data table matching with the conditional variable value. Can please guide what wrong I'm doing here?

 

 

I have the same question (0)
  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    To be honest, maybe you are teaching me something, but I've never seen this syntax before %QueueData['cr303_repdata_queueid']%

     

    If you put that into a Set Variable action, does it work?

  • Niraj466 Profile Picture
    73 on at

    'QueueData' is the variable generated from 'convert JSON to custom object'. It was a result of retrieving data from another dataverse table using invoke web service. (It is working perfectly fine.)

    'cr303_repdata_queueid' is one of the key of object 'QueueData'. That is used as lookup for target dataverse table.

     

    Question - Invoke method_varibale value to match.png

     

    The syntax %QueueData['cr303_repdata_queueid']% returns me its value as '08b9881a-41f9-ec11-bb3d-6045bd02c53e'. [See in above screen shot.]

     

    I'm trying to filter target data verse table using this value. And then error occurred that the key is invalid even though the key name '_cr303_queue_id_value' is correctly used as per below screen shot. 

     

    Que - Dataverse table.png

    [ '_' (underscore) as prefix as it is look up column in dataverse.]

     

    Something is wrong with key name. But I'm getting the solution here.

     

     

     

  • ZS440 Profile Picture
    262 on at

    hi

    @Niraj466 

    Try it.

    Prerequisite.
    A token has already been obtained through a properly authenticated authorization flow.

     

    Row data can be obtained by writing the following example.

    CleanShot 2022-08-13 at 23.44.47@2x.png

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/webapi/retrieve-entity-using-web-api

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Ah very cool! I haven't used "convert JSON to custom object'" before; good to know!!

  • Niraj466 Profile Picture
    73 on at

    Thanks @ZS440 .

     

    As alternatively, I used with filter statement. 

     

    Niraj466_0-1660667387583.png

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard