is there any way to cast from record type to map for me it didn't worked cast( type!Map,{'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field'('recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{f5fe89e3-be39-448f-b18d-61ab47caa97b}escalationFieldId': 14069, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{cbe43a10-86dc-41f2-a4f9-4beea7e8fc4a}escalationPathwayId': 387, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{3437a64f-dac3-407a-a089-7e9d64dca973}isRequired': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{571d49da-e656-4d6e-b6d3-bcfe8392f1b1}visibilityStatusLookupRefId': fn!tointeger(null), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{166243bd-ab58-4b6c-a50f-613b8c6e48c9}autofillSourceFieldName': "description", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{6f875047-cf5f-409b-850c-638c3682376b}autofillDestFieldName': "code", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{e9a3bbed-816d-4fe8-a70a-7c4cc85a5f9e}bigQueryRule': fn!tointeger(null), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{9e460a39-6ba8-47ce-803f-3765cca8814c}automationTypeLookupId': 40, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{4f35e775-65ae-4bfe-a3a5-4d2038168f11}isVisible': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{64cbd7b2-ed7b-42e0-ab78-88d9b7cb1345}isActive': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{d6b60d44-0986-4991-9547-0980b4b50c65}createdBy': "Test.test1@hioscar.com", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{001bbdfa-f2e1-4e3f-a4a6-14a7317b8c6f}createdDt': fn!datetime(2024, 9, 30, 3, 54, 20, 0), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{5c01100a-7685-4724-957b-9f5488dce20c}updatedBy': "Test.test1@hioscar.com", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{1548d77e-1bdb-43b5-82c0-bb8ea7dcead8}updatedDt': fn!datetime(2024, 9, 30, 3, 54, 20, 0), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{c5371ccc-a6ca-43bb-8647-cefa1f33827d}destTicketTypeId': 268, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{4f20eab7-31e4-4151-97aa-0fe6eedf5b2b}uuid': "f03b6999-c073-43b7-a584-04aa5e988710"), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field'('recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{f5fe89e3-be39-448f-b18d-61ab47caa97b}escalationFieldId': 14034, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{cbe43a10-86dc-41f2-a4f9-4beea7e8fc4a}escalationPathwayId': 387, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{3437a64f-dac3-407a-a089-7e9d64dca973}isRequired': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{571d49da-e656-4d6e-b6d3-bcfe8392f1b1}visibilityStatusLookupRefId': fn!tointeger(null), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{166243bd-ab58-4b6c-a50f-613b8c6e48c9}autofillSourceFieldName': "description", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{6f875047-cf5f-409b-850c-638c3682376b}autofillDestFieldName': "description", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{e9a3bbed-816d-4fe8-a70a-7c4cc85a5f9e}bigQueryRule': fn!tointeger(null), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{9e460a39-6ba8-47ce-803f-3765cca8814c}automationTypeLookupId': 40, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{4f35e775-65ae-4bfe-a3a5-4d2038168f11}isVisible': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{64cbd7b2-ed7b-42e0-ab78-88d9b7cb1345}isActive': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{d6b60d44-0986-4991-9547-0980b4b50c65}createdBy': "Test.test1@hioscar.com", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{001bbdfa-f2e1-4e3f-a4a6-14a7317b8c6f}createdDt': fn!datetime(2024, 9, 30, 3, 54, 20, 0), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{5c01100a-7685-4724-957b-9f5488dce20c}updatedBy': "Test.test1@hioscar.com", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{1548d77e-1bdb-43b5-82c0-bb8ea7dcead8}updatedDt': fn!datetime(2024, 9, 30, 3, 54, 20, 0), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{c5371ccc-a6ca-43bb-8647-cefa1f33827d}destTicketTypeId': 268, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{4f20eab7-31e4-4151-97aa-0fe6eedf5b2b}uuid': "0038a9e9-e0d3-4c36-8b50-eb97ecbbf39e"), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field'('recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{f5fe89e3-be39-448f-b18d-61ab47caa97b}escalationFieldId': 14032, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{cbe43a10-86dc-41f2-a4f9-4beea7e8fc4a}escalationPathwayId': 387, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{3437a64f-dac3-407a-a089-7e9d64dca973}isRequired': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{571d49da-e656-4d6e-b6d3-bcfe8392f1b1}visibilityStatusLookupRefId': fn!tointeger(null), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{166243bd-ab58-4b6c-a50f-613b8c6e48c9}autofillSourceFieldName': "summary", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{6f875047-cf5f-409b-850c-638c3682376b}autofillDestFieldName': "summary", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{e9a3bbed-816d-4fe8-a70a-7c4cc85a5f9e}bigQueryRule': fn!tointeger(null), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{9e460a39-6ba8-47ce-803f-3765cca8814c}automationTypeLookupId': 40, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{4f35e775-65ae-4bfe-a3a5-4d2038168f11}isVisible': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{64cbd7b2-ed7b-42e0-ab78-88d9b7cb1345}isActive': true, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{d6b60d44-0986-4991-9547-0980b4b50c65}createdBy': "Test.test1@hioscar.com", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{001bbdfa-f2e1-4e3f-a4a6-14a7317b8c6f}createdDt': fn!datetime(2024, 9, 30, 3, 54, 20, 0), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{5c01100a-7685-4724-957b-9f5488dce20c}updatedBy': "Test.test1@hioscar.com", 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{1548d77e-1bdb-43b5-82c0-bb8ea7dcead8}updatedDt': fn!datetime(2024, 9, 30, 3, 54, 20, 0), 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{c5371ccc-a6ca-43bb-8647-cefa1f33827d}destTicketTypeId': 268, 'recordType!{5996ab3d-2bdd-4f15-b862-b5e940227d63}XEP Escalation Field.fields.{4f20eab7-31e4-4151-97aa-0fe6eedf5b2b}uuid': "6c092428-7b84-465b-8131-de5d2f83477e")}),
Discussion posts and replies are publicly visible
Works perfectly:
In your code snippet, you use a list of records. In that case, you might want to use the a!listType() function:
The issue seems that you are trying to cast from a record list to a map