With Postman Flows, I designed a system to dynamically create incidents in incident.io. The process involves entering key details, mapping them automatically, and posting them to incident.io seamlessly.
Severity Name: Specify the severity (e.g., “Critical,” “High”).
Severity Mapping
Postman Flow retrieves the appropriate Severity ID by mapping the severity name to its corresponding ID in incident.io. This eliminates the need for manual lookups, ensuring accuracy and saving time.
How it works:
A GET request fetches the list of severities from incident.io.
Postman Flow processes the response to match the severity name with the correct ID.
Incident Creation
Once the Severity ID is fetched, a POST request is made to create the incident in incident.io. The payload includes:
The Incident Type
The Summary
The dynamically fetched Severity ID
This ensures that incidents are created correctly and consistently.
Conclusion
While working with the Incident.io API, I learned that creating an incident involves more than a simple POST request. A severity ID needs to be fetched and mapped, and a unique idempotency key (8 characters) is required. These details, though in the documentation, became clearer through Postman Flows.
Postman Flows made it easy to combine steps like fetching severity IDs, creating custom fields, and structuring requests. Overall, this process greatly simplified incident creation and enhanced efficiency.
This is a nice use case of Flows. Is there anything that we could’ve done better? Soon we’re launching a way for you to share your flow without a screenshot - look out for that, would love your feedback.
Q1:
I’m new to FQL and have a doubt about using variables in a conditional expression. I’ve tried $level, {{level}}, level, and 'level', but none seem to work. Am I missing something, or is it not possible to use variables this way? What’s the correct syntax?
Q1) level or `level` will work to access the variable. Unfortunately the specific syntax you’re using of filtering the list only supports a literal string and not a variable. This is a limitation of FQL but can be achieved using TypeScript.
Q2
About having a dropdown like a string block to select or set severity names fetched via a GET request using id and text variables output variable like selected id or name.