#1MinuteTip How do you check whether your Org is a Sandbox Org in the Flow? You may want to use this to execute or not execute certain logic based on whether the Org is a Sandbox Org or Production Org. For example, you may not want to send emails to external contacts from a Sandbox Org.
Here is how you can check the Org Type in Flow. First use the “Get Records” Element to get data from “Organization” object.
![How to Check if the Org is a Sandbox Org in Flow?](https://amazon.asagarwal.com/images_2022/2022-12-19-how-to-check-sandbox-org-in-flow-1.png)
Then check for the field value “IsSandbox” in the Get Record element created above. If the current org is a Sandbox Org, the value of IsSandbox will be “True”. Otherwise, it will be “False”. You can use this in “Decision” element or wherever you like in the Flow.
![Check for Sandbox Org in Flow](https://amazon.asagarwal.com/images_2022/2022-12-19-how-to-check-sandbox-org-in-flow-2.png)
Idea to Upvote to make $Organization.IsSandbox native in Flows: https://ideas.salesforce.com/s/idea/a0B8W00000Ge7AAUAZ/make-issandbox-visible-in-the-organization-flow-variable