In Apigee Edge - 4MV4D - Quota Policy - Flow Variables - S02E10 video
I am very new to Apigee Platform, while going through the quite helpful 4MV4D, I have these following questions :-
1. In the AssignMessage policy, Why have you used <IgnoreUnresolvedMessages> ??? It works fine without this tag at all.
2. And also in <AssignTo>tag, why the value of createNew is False ? It also works fine with the value as "True".
3. In <AssignTo>tag, value of type can also be "request" instead of "response" ??? It also works fine with the value as "request".
Solved! Go to Solution.
IgnoreUnresolvedVariables will use null if a variable cannot be resolved, otherwise throw an error. Presumably, the variables used in the policy are expected to be resolved.
I believe by using type as "request" it would delete your request object if createNew was true. Or in the example used, if createNew is set to true with the type as response, the status of 500 for example would be lost. The new response object will have 200.
Hope it helps.
IgnoreUnresolvedVariables will use null if a variable cannot be resolved, otherwise throw an error. Presumably, the variables used in the policy are expected to be resolved.
I believe by using type as "request" it would delete your request object if createNew was true. Or in the example used, if createNew is set to true with the type as response, the status of 500 for example would be lost. The new response object will have 200.
Hope it helps.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |