def create_new_case_data(case_tag: str, optional_fields: list = [], types: str= "") -> dict:
# Setup fields to return, explicit description for mandatory fields
fields_to_return = ["type","assignedGroup","dueDate","properties.planType","properties.legacy","properties.onOffExchange"]
use_optional_fields= case_select_fields()["select"]["type"]
if types in use_optional_fields:
fields_to_return += optional_fields
i tried changing it to if use_optional_fields in types:
but its not working
source https://stackoverflow.com/questions/75961296/getting-this-error-typeerror-in-string-requires-string-as-left-operand-no
Comments
Post a Comment