This is legacy documentation maintained for backward compatibility. For the latest documentation, please refer to the current guides.
The relationship defines a reference to another Sheet, similar to a Foreign Key.
Links should be established automatically by the mapping engine (the logic that
creates a mapping plan automatically when a user maps their data into a
workbook) or similar upon an evaluation of unique or similar columns between
datasets.
Options
ref - Full path reference to another Sheet/table configuration. Must be in
the same Workbook
relationship - The type of relationship this defines. Currently, only
has-one is supported
Inheritance
This example introduces two fields linked by a relationship, inheriting the
respective email addresses of the father and mother from another Sheet.
This example mimics a vlookup operation by fetching a value from a linked record
and applying it to a designated field in the original record.The linked record is designated by a reference field in the original record, and
the sought-after value is defined by a lookup field in the linked record.When a lookup value is located, it’s placed into the original record’s target
field. Furthermore, a message is added to the record, detailing the origin of
the retrieved value.
Object
The record to perform the vlookup on.
string
The name of the reference field on the original record that links to the
linked record.
string
The name of the field on the linked record that contains the value to be
looked up.
string
The name of the field on the original record that the lookup value should be
set to.
// in the context of listener.use(recordHook){}export const vlookup = ( record, referenceFieldKey, lookupFieldKey, targetFieldKey,) => { console.log("Initial Record: " + JSON.stringify(record)); const links = record.getLinks(referenceFieldKey); console.log("Linked Record: " + JSON.stringify(links)); const lookupValue = links?.[0]?.[lookupFieldKey]; console.log( "Reference Fields Key: " + referenceFieldKey + " : " + "LookUpValue: " + lookupValue, ); if (isNotNil(lookupValue)) { record.set(targetFieldKey, lookupValue); record.addInfo( targetFieldKey, `${targetFieldKey} set based on ${referenceFieldKey}.`, ); }};
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flatfile Developer Docs","colors":{"primary":"#4C4ED9","light":"#ACD8FC","dark":"#113264"},"logo":{"light":"https://mintcdn.com/flatfileinc/z5XZrucoygPxgKQc/static/logo/logo-black.png?fit=max\u0026auto=format\u0026n=z5XZrucoygPxgKQc\u0026q=85\u0026s=16fd3e9dd6f6d554a2dc94c69aa2a082","dark":"https://mintcdn.com/flatfileinc/z5XZrucoygPxgKQc/static/logo/logo-white.png?fit=max\u0026auto=format\u0026n=z5XZrucoygPxgKQc\u0026q=85\u0026s=713d5a31637ce27daaadb8edf049a53e"},"favicon":"/static/favicon.png","background":{"color":{"dark":"#1B1B1E"}},"navbar":{"links":[{"icon":"slack","href":"https://flatfile.com/join-slack/","label":"Community"},{"icon":"mail","href":"mailto:support@flatfile.com","label":"Contact Us"}],"primary":{"type":"button","label":"Platform","href":"https://platform.flatfile.com"}},"footer":{"socials":{"x":"https://x.com/flatfile","github":"https://github.com/FlatFilers","linkedin":"https://linkedin.com/company/flatfile"}},"fonts":{"heading":{"family":"Flatfile Diatype","source":"https://flatfile.com/fonts/FlatfileDiatypeVariable.woff2","format":"woff2"},"body":{"family":"Flatfile Diatype","source":"https://flatfile.com/fonts/FlatfileDiatypeVariable.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"latex":false},"banner":{"content":"**Welcome to the new Flatfile Developer Docs!**\n\n [Learn more](https://flatfile.com/docs/welcome-to-new-docs).","dismissible":true},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"integrations":{"koala":{"publicApiKey":"pk_6bf7c03b55e41304acf993aafa7e9d40c1d9"}},"navigation":{"global":{"anchors":[{"anchor":"API Reference","icon":"book-open","href":"https://reference.flatfile.com"},{"anchor":"Changelog","icon":"scroll-text","href":"https://flatfile.com/docs/changelog"},{"anchor":"Platform","icon":"rocket","href":"https://platform.flatfile.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flatfileinc","hasAudioNarration":false,"actualSubdomain":"flatfileinc","customDomains":["flatfile.com"],"gitSource":{"type":"github","owner":"flatfilers","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae914fde836d20f79ac6e8c:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Plugins","count":46},{"language":"default","tag":"Docs","count":45},{"language":"default","tag":"Core Concepts","count":14},{"language":"default","tag":"Advanced Guides","count":14},{"language":"default","tag":"Embedding Flatfile","count":7},{"language":"default","tag":"Data Structure","count":6},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Coding Tutorial","count":4},{"language":"default","tag":"Automation \u0026 Processing","count":4},{"language":"default","tag":"Listeners 101: Your First Listener","count":3}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"static/styles.css","content":"@font-face{font-family:'Flatfile Diatype Mono';src:url('https://flatfile.com/fonts/FlatfileDiatypeMono-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}code,pre,.code{font-family:'Flatfile Diatype Mono', 'SF Mono', Monaco, Consolas, 'Courier New', monospace!important}div#banner{height:auto!important}div#banner p{margin:10 0}foreignObject{display:flex;align-items:center;justify-content:center;\u0026:has(.edgeLabel){background-color:transparent;.edgeLabel,\n .labelBkg {\n background-color: transparent !important;\n }\n\n p {\n margin-inline: auto !important;\n max-width: max-content;\n border-radius: 0.2rem;\n padding: 0.25rem 0.5rem;\n }}}.dark .tab-container{background-color:rgba(0,0,0,0.1);padding:0 1rem;border-radius:0.8rem;border:1px solid rgba(224, 224, 229, 0.1)}.light .tab-container{background-color:rgba(0,0,0,0.03);padding:0 1rem;border-radius:0.8rem;border:1px solid rgba(0, 0, 0, 0.1)}em{font-style:oblique 12deg}code[language=\"text\"]{font-family:'Flatfile Diatype Mono', 'SF Mono', Monaco, Consolas, 'Courier New', monospace!important;line-height:1rem;padding:0;margin:0;white-space:pre;display:block;font-size:1rem}"}]}
{"page":{"pagePath":"legacy-docs/blueprint/relationships","slug":"/legacy-docs/blueprint/relationships","pageMetadata":{"title":"Relationships","description":"referencing data in other Sheets","href":"/legacy-docs/blueprint/relationships","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"referencing data in other Sheets\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsx(_components.p,{children:`This is legacy documentation maintained for backward compatibility. For the latest documentation, please refer to the current guides.`})}),`\n`,_jsx(_components.p,{children:`The relationship defines a reference to another Sheet, similar to a Foreign Key.\nLinks should be established automatically by the mapping engine (the logic that\ncreates a mapping plan automatically when a user maps their data into a\nworkbook) or similar upon an evaluation of unique or similar columns between\ndatasets.`}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`ref`}),` - Full path reference to another Sheet/table configuration. Must be in\nthe same Workbook`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`relationship`}),` - The type of relationship this defines. Currently, only\n`,_jsx(_components.code,{children:`has-one`}),` is supported`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`inheritance`,children:`Inheritance`}),`\n`,_jsx(_components.p,{children:`This example introduces two fields linked by a relationship, inheriting the\nrespective email addresses of the father and mother from another Sheet.`}),`\n`,_jsx(CodeBlock,{filename:`workbooks.create`,numberOfLines:`23`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// in the context of create Workbook API call`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"father\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"relationship\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"has-one\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mother\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"relationship\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"has-one\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`lookups`,children:`Lookups`}),`\n`,_jsx(_components.p,{children:`This example mimics a vlookup operation by fetching a value from a linked record\nand applying it to a designated field in the original record.`}),`\n`,_jsx(_components.p,{children:`The linked record is designated by a reference field in the original record, and\nthe sought-after value is defined by a lookup field in the linked record.`}),`\n`,_jsx(_components.p,{children:`When a lookup value is located, it’s placed into the original record’s target\nfield. Furthermore, a message is added to the record, detailing the origin of\nthe retrieved value.`}),`\n`,_jsx(ParamField,{path:`record`,type:`Object`,id:`param-record`,children:_jsx(_components.p,{children:`The record to perform the vlookup on.`})}),`\n`,_jsx(ParamField,{path:`referenceFieldKey`,type:`string`,id:`param-reference-field-key`,children:_jsx(_components.p,{children:`The name of the reference field on the original record that links to the\nlinked record.`})}),`\n`,_jsx(ParamField,{path:`lookupFieldKey`,type:`string`,id:`param-lookup-field-key`,children:_jsx(_components.p,{children:`The name of the field on the linked record that contains the value to be\nlooked up.`})}),`\n`,_jsx(ParamField,{path:`targetFieldKey`,type:`string`,id:`param-target-field-key`,children:_jsx(_components.p,{children:`The name of the field on the original record that the lookup value should be\nset to.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`jsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`jsx`,children:_jsxs(_components.code,{language:`jsx`,numberOfLines:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// in the context of listener.use(recordHook){}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` vlookup`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` referenceFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` lookupFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` targetFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Initial Record: \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` links`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getLinks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`referenceFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Linked Record: \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`links`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` lookupValue`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` links`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]?.[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lookupFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Reference Fields Key: \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` referenceFieldKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \" : \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"LookUpValue: \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lookupValue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`isNotNil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lookupValue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`targetFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lookupValue`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` targetFieldKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`targetFieldKey`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set based on `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`referenceFieldKey`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\".`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Relationships","description":"referencing data in other Sheets","href":"/legacy-docs/blueprint/relationships","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Inheritance","slug":"inheritance","depth":2,"children":[]},{"title":"Lookups","slug":"lookups","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/flatfileinc/0885ab0a767493f4/tools/search-docs/src/advanced-search.js","/docs/_mintlify/custom/flatfileinc/3d93aadd993301a4/tools/search-docs/src/flatfile-docs-search.js","/docs/_mintlify/custom/flatfileinc/f0e30c5d5a2f7f3f/tools/search-docs/src/populate-search-results.js","/docs/_mintlify/custom/flatfileinc/88d0b42aecb7c482/tools/search-docs/tests/test-populate.js","/docs/_mintlify/custom/flatfileinc/76a5acafda6b2f4a/tools/search-docs/tests/test-search.js"],"subdomain":"flatfileinc","siteName":"Flatfile Developer Docs","title":"Relationships - Flatfile Developer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:49:53.635Z","originalFileLocation":"legacy-docs/blueprint/relationships.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"referencing data in other Sheets\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flatfile Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Relationships - Flatfile Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"referencing data in other Sheets\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flatfile Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://flatfile.com/docs/legacy-docs/blueprint/relationships\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flatfileinc.mintlify.site/docs/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Relationships\u0026amp;description=referencing+data+in+other+Sheets\u0026amp;theme=1a8226b3069ecd536f43ada5\u0026amp;signature=f5a581be020cd2f2a381e39d2d7b25e80918f65c0f3ddc6a14722de814d44a0c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Relationships - Flatfile Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"referencing data in other Sheets\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flatfileinc.mintlify.site/docs/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Relationships\u0026amp;description=referencing+data+in+other+Sheets\u0026amp;theme=1a8226b3069ecd536f43ada5\u0026amp;signature=f5a581be020cd2f2a381e39d2d7b25e80918f65c0f3ddc6a14722de814d44a0c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/flatfileinc/eJAdNPO4HNQs9zZh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flatfile Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4C4ED9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://flatfile.com/docs/legacy-docs/blueprint/relationships\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/legacy-docs/blueprint/relationships.md\">","agentPointerHref":"/docs/legacy-docs/blueprint/relationships.md","siteName":"Flatfile Developer Docs","nav":{"global":{"anchors":[{"anchor":"API Reference","icon":"book-open","href":"https://reference.flatfile.com"},{"anchor":"Changelog","icon":"scroll-text","href":"https://flatfile.com/docs/changelog"},{"anchor":"Platform","icon":"rocket","href":"https://platform.flatfile.com"}]},"groups":[{"group":"Getting Started","icon":"circle-play","pages":[{"title":"Welcome to Flatfile","href":"/index"},{"title":"Getting Started with AutoBuild","href":"/getting-started/quickstart/autobuild"},{"title":"Creating Your First Project","href":"/getting-started/quickstart/first-project"}]},{"group":"Core Concepts","icon":"lightbulb","pages":[{"title":"Overview","href":"/core-concepts/overview"},{"group":"Infrastructure \u0026 Organization","pages":[{"title":"Environments","href":"/core-concepts/environments"},{"title":"Apps","href":"/core-concepts/apps"},{"title":"Spaces","href":"/core-concepts/spaces"}]},{"group":"Data Structure","pages":[{"title":"Blueprints","href":"/core-concepts/blueprints"},{"title":"Documents","href":"/core-concepts/documents"},{"title":"Workbooks","href":"/core-concepts/workbooks"},{"title":"Sheets","href":"/core-concepts/sheets"},{"title":"Fields","href":"/core-concepts/fields"},{"title":"Records","href":"/core-concepts/records"}]},{"group":"Automation \u0026 Processing","pages":[{"title":"Events and Listeners","href":"/core-concepts/listeners"},{"title":"Jobs","href":"/core-concepts/jobs"},{"title":"Actions","href":"/core-concepts/actions"},{"title":"Plugins","href":"/core-concepts/plugins"}]}]},{"group":"Coding Tutorial","icon":"code","pages":[{"title":"Coding Tutorial","href":"/coding-tutorial/overview"},{"group":"Listeners 101: Your First Listener","pages":[{"title":"01: Creating Your First Listener","href":"/coding-tutorial/101-your-first-listener/101.01-first-listener"},{"title":"02: Adding Validation to Your Listener","href":"/coding-tutorial/101-your-first-listener/101.02-adding-validation"},{"title":"03: Adding Actions to Your Listener","href":"/coding-tutorial/101-your-first-listener/101.03-adding-actions"}]}]},{"group":"Plugins","icon":"puzzle","pages":[{"title":"Overview","href":"/plugins/index"},{"group":"Docs","pages":[{"title":"Autocast Plugin","href":"/plugins/autocast"},{"title":"Automap Plugin","href":"/plugins/automap"},{"title":"Boolean Validator","href":"/plugins/boolean"},{"title":"Constraints Plugin","href":"/plugins/constraints"},{"title":"Currency Conversion Plugin","href":"/plugins/currency"},{"title":"Date Format Normalizer","href":"/plugins/date"},{"title":"Deduplicate Sheet Records","href":"/plugins/dedupe"},{"title":"Delimited File Zip Exporter","href":"/plugins/delimited-zip"},{"title":"Delimiter Extractor Plugin","href":"/plugins/delimiter-extractor"},{"title":"Email Validation Plugin","href":"/plugins/email"},{"title":"Export Workbook Plugin","href":"/plugins/export-workbook"},{"title":"Foreign Database Extractor for Microsoft SQL Server","href":"/plugins/foreign-db-extractor"},{"title":"Geocode Address Data","href":"/plugins/geocode"},{"title":"GPX File Parser and Analyzer","href":"/plugins/gpx"},{"title":"GraphQL Schema to Flatfile Blueprint Converter","href":"/plugins/graphql-schema"},{"title":"HTML Table Extractor","href":"/plugins/html-table"},{"title":"ISBN Validator Plugin","href":"/plugins/isbn"},{"title":"Job Handler Plugin","href":"/plugins/job-handler"},{"title":"JSON Extractor","href":"/plugins/json-extractor"},{"title":"JSON Schema Converter","href":"/plugins/json-schema"},{"title":"Markdown File Extractor","href":"/plugins/markdown"},{"title":"Merge.dev Connection Plugin","href":"/plugins/merge-connection"},{"title":"Number Validation Plugin","href":"/plugins/number"},{"title":"OpenAPI Schema to Flatfile Blueprint Converter","href":"/plugins/openapi-schema"},{"title":"PDF Extractor Plugin","href":"/plugins/pdf-extractor"},{"title":"Phone Number Validation and Formatting Plugin","href":"/plugins/phone"},{"title":"Pivot Table Exporter","href":"/plugins/pivot-table"},{"title":"Record Hook Plugin","href":"/plugins/record-hook"},{"title":"Rollout: Automatic Workbook Updates","href":"/plugins/rollout"},{"title":"Sentiment Analysis Plugin","href":"/plugins/sentiment"},{"title":"Space Configure from Template","href":"/plugins/space-configure-from-template"},{"title":"Flatfile Space Configuration Plugin","href":"/plugins/space-configure"},{"title":"SQL DDL to Flatfile Blueprint Converter","href":"/plugins/sql-ddl-converter"},{"title":"Stored Constraints Plugin","href":"/plugins/stored-constraints"},{"title":"String Validator Plugin","href":"/plugins/string"},{"title":"Text Summarization and Key Phrase Extraction Plugin","href":"/plugins/summarize"},{"title":"Field Translation using Google Translate API","href":"/plugins/translate"},{"title":"View Mapped Data Plugin","href":"/plugins/view-mapped"},{"title":"Webhook Egress","href":"/plugins/webhook-egress"},{"title":"Webhook Event Forwarder","href":"/plugins/webhook-event-forwarder"},{"title":"What3Words Converter Plugin","href":"/plugins/what3words"},{"title":"Excel Extractor","href":"/plugins/xlsx-extractor"},{"title":"XML Extractor","href":"/plugins/xml-extractor"},{"title":"YAML Schema to Flatfile Blueprint Converter","href":"/plugins/yaml-schema"},{"title":"Zip Extractor","href":"/plugins/zip-extractor"}]}]},{"group":"Advanced Guides","icon":"map","pages":[{"title":"Guides Overview","href":"/guides/overview"},{"title":"Authentication and Authorization","href":"/guides/authentication"},{"title":"Actions","href":"/guides/using-actions"},{"title":"Using Record Hooks","href":"/guides/using-record-hooks"},{"title":"Accepting Additional Fields","href":"/guides/accepting-additional-fields"},{"title":"Advanced Filters","href":"/guides/advanced-filters"},{"title":"Custom Extractors","href":"/guides/custom-extractors"},{"title":"Theming","href":"/guides/theme-your-space"},{"title":"Internationalization","href":"/guides/translating-your-space"},{"title":"Data Egress","href":"/guides/egress"},{"title":"Metadata","href":"/guides/utilizing-metadata"},{"title":"Multi-Part Jobs","href":"/guides/multi-part-jobs"},{"title":"Namespaces and Filters","href":"/guides/namespaces-and-filters"},{"title":"Secrets","href":"/guides/share-secrets"}]},{"group":"Embedding Flatfile","icon":"code","pages":[{"title":"Overview","href":"/embedding/overview"},{"title":"JavaScript Embedding","href":"/embedding/javascript"},{"title":"React Embedding","href":"/embedding/react"},{"title":"Angular Embedding","href":"/embedding/angular"},{"title":"Vue Embedding","href":"/embedding/vue"},{"title":"Advanced Configuration","href":"/embedding/advanced-configuration"},{"title":"Server Setup for Space Reuse","href":"/embedding/server-setup"}]},{"group":"Reference","icon":"book-open","pages":[{"title":"Event Reference","href":"/reference/events"},{"title":"Icon Reference","href":"/reference/icons"},{"title":"CLI Reference","href":"/reference/cli"},{"title":"Flatfile Query Language","href":"/reference/ffql"},{"title":"For LLMs","href":"/reference/for-llms"},{"title":"V2 Records API","href":"/reference/v2-records-api"}]}]},"basePath":"","title":"Relationships - Flatfile Developer Docs","deploymentId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","buildId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DH1hV6MN.js","dist-CnoXsf9u.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}