on 12-01-2023 7:51 AM
Hi community,
I currently trying to get an x-csrf-token into an app variable.
This is how I setup my project:
a) Data variable pointing to a SAP BTP destination providing the CSRF Token
b) Button on canvas that triggers logic flow
c) Logic flow using "Get record" to fetch the token and pass it on to a 'toast'
Problem statement:
While the token was successfully fetched during the 'test' in the data variable itself. It seems that the logic flow is not able the receive the token.
Data Variable:
The token seems to be successfully received during the test.
Logic Flow:
Here is the result:
Your input and support is highly appreciated.
Update:
The changed to { record: PICK_KEYS(response.headers,["x-csrf-token"]), driverCode: response.status }
finally worked after cleaning the cache.
Thanks a lot for your help.
May I ask to add the "record" and "Pick Keys" methods to the official help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will let the development people about your request (I am not connected with them in any way, except we both work for SAP).
The response mapper functionality is not very well documented at all, and I think the whole data resource functionality -- especially OData -- will be updated soon, but I do not know exactly what they are planning.
If my help helped, please accept it -- in both questions 🙂
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.