# Part-Procedure Relationship

Procedures may be associated with one or more parts to relate a workflow with a specific workpiece. Link a part and a procedure from the **Parts** tab on a procedure. Note that this isn't a parts list that are in an assembly - by setting this relationship you are telling ION which procedures are used to produce a certain part or assembly.

![Linked part interface](https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2F8h5MuLmE0skSBybaSwTW%2Fimage.png?alt=media\&token=5331f51d-3982-4a53-be93-d84c9e9f0872)

You can also set up the part-procedure relationship from the parts library sidebar.

<figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2F2c1RVoT1nKZBMEb7B5Z6%2Fimage.png?alt=media&#x26;token=537bd9b9-0dc6-4962-95fc-a826fe5534f3" alt=""><figcaption></figcaption></figure>

When you link parts through this relation when you have the "Require part-procedure relationship to be approved" box checked in your organization settings, ION will not allow you to create runs unless the selected part is linked to the selected procedure.&#x20;

![](https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2F9jFlmf6tYDFpXgoW4mQI%2Fimage.png?alt=media\&token=fef82fd6-a46c-4f2e-967b-643f4a67c277)

With this box checked, when you attempt to create a run with a procedure that is not linked to the selected part, you will get an error that looks like this:

<figure><img src="https://3615148728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkRqYp6lJhwxjYdzYG8%2Fuploads%2FD0HTfBBGQLWNbmZlMKNP%2Fimage.png?alt=media&#x26;token=2a4815f4-4690-46cc-8636-b5062c2f00bf" alt=""><figcaption></figcaption></figure>

#### Required vs. Optional Part Procedure Relationships

When linking parts to an inspection procedure, the **Required** or **Optional** setting determines whether an inspection run is automatically created upon receipt.

* This toggle **ONLY** effects **INSPECTION** type procedures their parts upon receipt.
* **Required:** When a part marked as *required* is received, an inspection run is automatically generated for that part according to the associated procedure.
* **Optional:** When a part marked as *optional* is received, no inspection run is automatically created. You can still initiate an inspection manually if needed.

This setting helps control which parts must go through inspection by default and which can be inspected at your discretion. See it in action below.

{% embed url="<https://www.loom.com/share/36a69ebc5462407894e8ee3deb86c2af>" %}
