Unable to create a workflow card

@youge I made it work this way:

// create a card and add it to the corresponding workflow phase
export function createCard ( workflowId , phaseId , contactId , firstName , position ){
let cardInfo ={
“name” : firstName ,
“contactId” : contactId
};
return workflows . createCard ( workflowId , phaseId , cardInfo , position )
. then (( cardId ) => {
console . log ( “card contact” , cardId );

  **return**  [ cardId ]; 
}) 
. **catch** (( error ) => { 
  console . error ( error ); 
  **let**  response  =  error ; 
  **return**  response ; 
}); 

}