multi-row variable sets will be displayed in random order in variable editor when submitted with sn_sc.CartJS.Issue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms When use script to order record producers with multi-row variable sets, the generated record has unexpected variables displayed in the variable editor in random order. Steps to reproduce: 1. Create a multi-row variable set with a few variables in it. 2. Make sure the record producer table has variable editor configured as per the following DOC: https://docs.servicenow.com/csh?topicname=configure-default-variable-editor.html&version=latest 3. "Try it" the Record Producer in service catalog. (Leave the multi-row variables blank.) 4. Review the submitted incident, the variable display is all correct. 5. Now, run the followin script to order the record producer. var cartOne = new sn_sc.CartJS(); var requestInc = { 'sysparm_id': '3f1dd0320a0a0b99000a53f7604a2ef9', 'variables':{ 'urgency': '1', 'comments': 'SNC test INT', } }; var cartDetailsOne = cartOne.orderNow(requestInc); 6. Review the submitted incident, the variable display is unexpected. Release Madrid Cause This is due to using the wrong API for a record producer. Resolution Use below API instead: var record = new sn_sc.CatItem('3f1dd0320a0a0b99000a53f7604a2ef9'); var requestInc = { 'sysparm_id': '3f1dd0320a0a0b99000a53f7604a2ef9', 'variables':{ 'urgency': '1', 'comments': 'SNC test INT', } }; var recordDetails = record.submitProducer(requestInc);