{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by Rohan Jangid · Feb 19 at 03:01 AM · 24 Views apigee edgeapigeeproxyextractvariablesassign message policyaccess entity policy

how to get developer email using access entity and set this in a header

i have an proxy with simply endpoint of https://mocktarget.apigee.net/json and inside this proxy i added a access entity policy and inside this policy what i wrote so i can get developer mail id in body whenever anyone hit on api

this is my access entity policy

here i am extract variable

here i am using assign message policy

and here is the result

and here is the result when i hit api "{"fault":{"faultstring":"AccessEntity.GetDeveloperProfile message is not available for ExtractVariable: SetDeveloperProfile","detail":{"errorcode":"steps.extractvariables.SourceMessageNotAvailable"}}}"

please let me know where i made mistake

screenshot-142.png (101.3 kB)
screenshot-143.png (102.0 kB)
screenshot-143.png (95.6 kB)
screenshot-145.png (89.6 kB)
screenshot-146.png (95.0 kB)
Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
0

Answer by Dino-at-Google   · Feb 19 at 03:35 AM

It looks to me that you have a series of 3 policies configured to execute:

  • GetDeveloperProfile (AccessEntity)
  • SetDeveloperProfile (ExtractVariables)
  • EchoVariables (I don't know what this is)

And you are seeing a failure in the 2nd step, the ExtractVariables. It's telling you, there's nothing in AccessEntity.GetDeveloperProfile, which you have configured as the Source for the ExtractVariables policy.

That tells me that the AccessEntity did not set the variable as you expected it would.

Looking at the trace screenshot, I don't see a value displayed for request.queryparam.apikey. The screenshot in your post right after "here is the result" shows what appears to be a READ of the variable request.queryparam.apikey, returning no value.

Have you passed a valid apikey as a queryparam? If not, what happens if you pass a valid apikey as a query param?

ps: I have an additional hint.

The AccessEntity policy will set a variable containing the entire XML content. That is the thing you are referring to as the Source in the ExtractVariables policy.

But AccessEntity also sets other variables, for the specific XML nodes in the retrieved content.

You don't need to call ExtractVariables. You can just refer to the variable AccessEntity.AE-Developer.Developer.Email .

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dino-at-Google ♦♦   · Feb 19 at 03:53 AM 0
Link

See also, another answer to your duplicate question.

Follow this Question

Answers Answers and Comments

135 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how to display developer details when ever we hit on api it should be display in body 1 Answer

Unable to save the changes in the proxy 1 Answer

Removing the suffix "{myorg}-test.apigee.net" from the Project base Path while creating API Proxy 1 Answer

What is GEE in APIGEE? 1 Answer

Apigee Stack deployment get Apigee OPDK 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges