{"id":40472,"date":"2021-09-28T15:23:20","date_gmt":"2021-09-28T15:23:20","guid":{"rendered":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/?p=40472"},"modified":"2023-10-12T15:26:17","modified_gmt":"2023-10-12T15:26:17","slug":"error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue","status":"publish","type":"post","link":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/","title":{"rendered":"Error: bad value for restricted picklist field | 123FormBuilder"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-why-does-it-show-up\">Why does it show up?<\/h2>\n\n\n\n<p>The restricted picklist error means that the form is trying to create a record with a picklist value that doesn\u2019t exist in Salesforce.<\/p>\n\n\n\n<p>If the submitted value is not identical to the API value name in Salesforce, data won\u2019t be sent to Salesforce. In the forms <b>Submissions<\/b> section (<b>Failed Applications<\/b> tab), you&#8217;ll receive the following error:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png\" alt=\"Failed applications\" class=\"wp-image-40478\" style=\"width:774px;height:173px\" width=\"774\" height=\"173\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png 809w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1-300x67.png 300w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1-768x172.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/a><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\" \/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-fix-it\">How to fix it?<\/h2>\n\n\n\n<p>Since 123FormBuilder works with the Salesforce API, it relies on the API Name. No worries, you don\u2019t have to put the API value on the form as a choice. However, you need to provide the API value in the <b>Object Mapping<\/b> section.<\/p>\n\n\n\n<p>To fix the restricted picklist error, first, you need to check the API values for that picklist in Salesforce.<\/p>\n\n\n\n<p>Then, go to the form <b>Salesforce Integration \u2192 Object Mapping<\/b>, identify the picklist field, hover and click on the <b>Alternative Values<\/b> icon and provide the exact API values:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AlternativeValues-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"176\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AlternativeValues-1-1024x176.png\" alt=\"Alternative values\" class=\"wp-image-40476\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AlternativeValues-1-1024x176.png 1024w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AlternativeValues-1-300x52.png 300w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AlternativeValues-1-768x132.png 768w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AlternativeValues-1.png 1114w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>In the below example, the Salesforce API values are just codes that mean nothing to the form visitors. I want to display the product name on the form, but the value sent to Salesforce needs to be that code. Therefore, I use <strong>Alternative values<\/strong> and make sure to add the values exactly the same as they are in Salesforce, with proper capitalization and no leading or trailing spaces:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AltValuesSF.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AltValuesSF.png\" alt=\"\" class=\"wp-image-40477\" style=\"width:542px;height:339px\" width=\"542\" height=\"339\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AltValuesSF.png 596w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/AltValuesSF-300x188.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>If the API name of the value is correct and you&#8217;re still receiving the error message, verify that the value is selected for your Record Type.<\/p>\n\n\n\n<p><br>Go to Setup -&gt; Object Manager -&gt; Find the Object -&gt; Navigate to Record Types -&gt; Select the record type and ensure that the picklist value is displayed in the Selected Values column:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/10\/bx8GQ11rua-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"519\" height=\"448\" src=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/10\/bx8GQ11rua-1.png\" alt=\"\" class=\"wp-image-47110\" srcset=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/10\/bx8GQ11rua-1.png 519w, https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2023\/10\/bx8GQ11rua-1-300x259.png 300w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/a><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\" \/>\n\n\n\n<p><b>Related articles<\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/record-cannot-be-created-in-attachment-object\/\">Error: The record could not be created in the Attachment object \u2013 how do I fix it?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Why does it show up? The restricted picklist error means that the form is trying to create a record with a picklist value that doesn\u2019t exist in Salesforce. If the submitted value is not identical to the API value name in Salesforce, data won\u2019t be sent to Salesforce. In the forms Submissions section (Failed Applications [&hellip;]<\/p>\n","protected":false},"author":64,"featured_media":-1,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[134],"tags":[],"class_list":["post-40472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-123formbuilder-appexchange"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>[AppExchange] Error: bad value for restricted picklist field<\/title>\n<meta name=\"description\" content=\"If the submitted value is not identical to the API value name in Salesforce, you&#039;ll receive a restricted picklist error. Here&#039;s how to fix it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error: bad value for restricted picklist field | 123FormBuilder\" \/>\n<meta property=\"og:description\" content=\"If the submitted value is not identical to the API value name in Salesforce, you&#039;ll receive a restricted picklist error. Here&#039;s how to fix it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/\" \/>\n<meta property=\"og:site_name\" content=\"123FormBuilder Knowledge Base\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-28T15:23:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-12T15:26:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"[AppExchange] Error: bad value for restricted picklist field","description":"If the submitted value is not identical to the API value name in Salesforce, you'll receive a restricted picklist error. Here's how to fix it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/","og_locale":"en_US","og_type":"article","og_title":"Error: bad value for restricted picklist field | 123FormBuilder","og_description":"If the submitted value is not identical to the API value name in Salesforce, you'll receive a restricted picklist error. Here's how to fix it.","og_url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/","og_site_name":"123FormBuilder Knowledge Base","article_published_time":"2021-09-28T15:23:20+00:00","article_modified_time":"2023-10-12T15:26:17+00:00","og_image":[{"url":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#article","isPartOf":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/"},"author":{"name":"","@id":""},"headline":"Error: bad value for restricted picklist field | 123FormBuilder","datePublished":"2021-09-28T15:23:20+00:00","dateModified":"2023-10-12T15:26:17+00:00","mainEntityOfPage":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/"},"wordCount":315,"commentCount":0,"image":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png","articleSection":["AppExchange"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/","name":"[AppExchange] Error: bad value for restricted picklist field","isPartOf":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#primaryimage"},"image":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png","datePublished":"2021-09-28T15:23:20+00:00","dateModified":"2023-10-12T15:26:17+00:00","author":{"@id":""},"description":"If the submitted value is not identical to the API value name in Salesforce, you'll receive a restricted picklist error. Here's how to fix it.","breadcrumb":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#primaryimage","url":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png","contentUrl":"https:\/\/cdn.marketing123.123formbuilder.com\/wp-content\/uploads\/sites\/3\/2021\/09\/FailedApplications-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/error-the-record-could-not-be-created-in-the-object_name-object-reason-field-name-bad-value-for-restricted-picklist-field-sentvalue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/"},{"@type":"ListItem","position":2,"name":"Error: bad value for restricted picklist field | 123FormBuilder"}]},{"@type":"WebSite","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#website","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/","name":"123FormBuilder Knowledge Base","description":"Search our documentation platform for answers, service specifications and 3rd-party integrations.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/40472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/users\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/comments?post=40472"}],"version-history":[{"count":7,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/40472\/revisions"}],"predecessor-version":[{"id":47111,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/40472\/revisions\/47111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/media?parent=40472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/categories?post=40472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/tags?post=40472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}