Hi all. a quick question. As part of a sign-up flo...
# ask-a-descoper
b
Hi all. a quick question. As part of a sign-up flow, I’d like to populate a custom attribute with a dynamic value that results from running some code (in the backend) or triggering a Lambda function and using the returned payload as the dynamic value. Is there an easy way to do this?
g
Hey 👋 We have a new feature under the “connectors” tab, in TL;DR - connectors let you run http api calls as a part of your flow
b
Thanks! I’ll give it a try
g
This feature is brand new so documentation is still working in progress, so here is a short guide 1. Go to the connectors page and configure connector with the URL and other fields (headers, secrets, …) 2. Go to the flow and add “3rd Party Action” 3. Configure the step with a. method/end/point body (we support templates with the
{{}}
syntax) b. result path - this is where the result of the api will be stored (in the 3rd screenshot
my_result
) 4. then you can use the response of the http in further step (in the 4rth screenshot -
<http://connectors.my|connectors.my>_result.student_id
- assuming the POST response is
{"student_id" "..." }
) Few general notes: • the returned payload from the API (e.g. lambda) should be an JSON object (aka
{ ...}
• This feature is relatively new - any further feedback will be highly appreciated! thanks 🙂
b
I see it and played with it a bit. Thanks!