Salesforce Integration - Field Issues

Does anyone know how to insert data into salesforce when the field is connected to a picklist? Just inserting text does not work. I imagine there may be and ID somewhere in salesforce for the choices in the list. Any ideas? Everything else is getting inserted correctly.

        **let**  theTime  =  $w ( '#trainingTime' ). value ; 
        console . log ( theTime ); 
        **let**  hour  =  Number ( theTime . substr ( 0 ,  2 )); 
        **let**  minute  =  Number ( theTime . substr ( 3 ,  2 )); 
        **let**  theDate  =  $w ( '#trainingDate' ). value ; 

        theDate . setHours ( hour ); 
        theDate . setMinutes ( minute ); 
        **const**  WhatId  =  $w ( '#sfID' ). text ; 
        **const**  Description  =  ins . call_notes ; 
        **const**  Status  =  "Completed" 

        **const**  email  =  $w ( '#best' ). value ; 
        // const IsVisibleInSelfService = 1; 
        **const**  Subject  =  "Support Call Log" 
        **if**  ( WhatId ) { 
            **try**  { 
                **const**  res  =  createRecordsWrapper ({  WhatId ,  Description ,  Subject, Status  }); 

                **if**  ( res ) { 
                    showMsg ( 'Your record was added.' ); 
                }  **else**  { 
                    showMsg ( 'Error: Your record was not added.' ); 
                } 
            }  **catch**  ( err ) { 
                showMsg ( err . toString ()); 
            } 
        }