Casting list of variant to record type invalid

Certified Associate Developer

Hi, so when i was testing the summary view interface using a query rule to get customer info by iD. I got this kind of message. How to solve this? Thank you

Expression evaluation error at function a!eval_inputMapWithTypes_ruleInputCast [line 42]: Could not cast from List of Variant to SJ Customer. Details: CastInvalidCould not cast from List of Variant to SJ Customer. Details: CastInvalid

  Discussion posts and replies are publicly visible

Parents
  • Please try this

    a!queryRecordType(
    recordType: 'recordType!ISJ_CM_Customer_Record',    /*(Your Record Type)*/
    filters: a!queryFilter(
    field: 'recordType!SJ_CM_Customer_Record.customerID',  /*(Your Record Type Field)*/
    operator: "=",
    value: ri!customerID   /*(Your rule input)*/
    ),
    pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: 1
    )
    ).data

    Try with creating a new expression rule with Adding you record type with above shown example add record field and compare with rule input to follow above example and check again with using this rule.

Reply
  • Please try this

    a!queryRecordType(
    recordType: 'recordType!ISJ_CM_Customer_Record',    /*(Your Record Type)*/
    filters: a!queryFilter(
    field: 'recordType!SJ_CM_Customer_Record.customerID',  /*(Your Record Type Field)*/
    operator: "=",
    value: ri!customerID   /*(Your rule input)*/
    ),
    pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: 1
    )
    ).data

    Try with creating a new expression rule with Adding you record type with above shown example add record field and compare with rule input to follow above example and check again with using this rule.

Children