POST api/genericimport/mappingconfiguration/save
Save - Add/Update mapping configuration with child values - fiel fields and application fields mappings
Request Information
URI Parameters
None.
Body Parameters
Mapping Configuration detail
GenericImportMappingConfigurationName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
MappingName | string |
None. |
|
ImportType | GenericImportType |
None. |
|
ExcludeAPNWithSpecificLength | string |
None. |
|
ExcludeBarcodeIfStartsWith | string |
None. |
|
IgnoreQuotes | boolean |
None. |
|
CostDecimals | integer |
None. |
|
PriceDecimals | integer |
None. |
|
HeaderRowIndex | integer |
None. |
|
FieldDelimiter | ImportFileDelimiter |
None. |
|
AddNewRecordIfNoMatch | boolean |
None. |
|
GenericImportMappingDetails | Collection of GenericImportMappingDetails |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "mappingName": "sample string 2", "importType": 0, "excludeAPNWithSpecificLength": "sample string 3", "excludeBarcodeIfStartsWith": "sample string 4", "ignoreQuotes": true, "costDecimals": 1, "priceDecimals": 1, "headerRowIndex": 5, "fieldDelimiter": 0, "addNewRecordIfNoMatch": true, "genericImportMappingDetails": [ { "$id": "2", "id": 1, "mappingConfigId": 2, "fileFieldName": "sample string 3", "applicationFieldName": "sample string 4", "overrideValue": "sample string 5", "isKeyColumn": true, "ignoreWhileUpdating": true, "removeSpecificCharacters": "sample string 6", "valueMappings": "sample string 7", "relationMappings": "sample string 8", "isEnum": true, "otherApplicationFieldNames": "sample string 9", "gstFieldToAdd": "sample string 10", "tableName": "sample string 11", "dateTimeFormat": "sample string 12", "calculateValueMapping": "sample string 13", "prefixValue": "sample string 14", "suffixValue": "sample string 15" }, { "$ref": "2" } ] }
application/xml, text/xml
Sample:
<GenericImportMappingConfiguration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.GenericImport"> <AddNewRecordIfNoMatch>true</AddNewRecordIfNoMatch> <CostDecimals>1</CostDecimals> <ExcludeAPNWithSpecificLength>sample string 3</ExcludeAPNWithSpecificLength> <ExcludeBarcodeIfStartsWith>sample string 4</ExcludeBarcodeIfStartsWith> <FieldDelimiter>Comma</FieldDelimiter> <GenericImportMappingDetails> <GenericImportMappingDetails> <ApplicationFieldName>sample string 4</ApplicationFieldName> <CalculateValueMapping>sample string 13</CalculateValueMapping> <DateTimeFormat>sample string 12</DateTimeFormat> <FileFieldName>sample string 3</FileFieldName> <GSTFieldToAdd>sample string 10</GSTFieldToAdd> <Id>1</Id> <IgnoreWhileUpdating>true</IgnoreWhileUpdating> <IsEnum>true</IsEnum> <IsKeyColumn>true</IsKeyColumn> <MappingConfigId>2</MappingConfigId> <OtherApplicationFieldNames>sample string 9</OtherApplicationFieldNames> <OverrideValue>sample string 5</OverrideValue> <PrefixValue>sample string 14</PrefixValue> <RelationMappings>sample string 8</RelationMappings> <RemoveSpecificCharacters>sample string 6</RemoveSpecificCharacters> <SuffixValue>sample string 15</SuffixValue> <TableName>sample string 11</TableName> <ValueMappings>sample string 7</ValueMappings> </GenericImportMappingDetails> <GenericImportMappingDetails> <ApplicationFieldName>sample string 4</ApplicationFieldName> <CalculateValueMapping>sample string 13</CalculateValueMapping> <DateTimeFormat>sample string 12</DateTimeFormat> <FileFieldName>sample string 3</FileFieldName> <GSTFieldToAdd>sample string 10</GSTFieldToAdd> <Id>1</Id> <IgnoreWhileUpdating>true</IgnoreWhileUpdating> <IsEnum>true</IsEnum> <IsKeyColumn>true</IsKeyColumn> <MappingConfigId>2</MappingConfigId> <OtherApplicationFieldNames>sample string 9</OtherApplicationFieldNames> <OverrideValue>sample string 5</OverrideValue> <PrefixValue>sample string 14</PrefixValue> <RelationMappings>sample string 8</RelationMappings> <RemoveSpecificCharacters>sample string 6</RemoveSpecificCharacters> <SuffixValue>sample string 15</SuffixValue> <TableName>sample string 11</TableName> <ValueMappings>sample string 7</ValueMappings> </GenericImportMappingDetails> </GenericImportMappingDetails> <HeaderRowIndex>5</HeaderRowIndex> <Id>1</Id> <IgnoreQuotes>true</IgnoreQuotes> <ImportType>Campaign</ImportType> <MappingName>sample string 2</MappingName> <PriceDecimals>1</PriceDecimals> </GenericImportMappingConfiguration>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK S�[+� �� 5 xl/workbook.xml � (� ����0��&�C�����N\�z�^�V�O�||K $���~;t2nx3����\��lE��zP��w�8�B��E����to:�c�����i���x������j\P�I���!:7{H�|��X��&"K���h�mI!�Ըe�a���q���d�%� �O�sVt�o� F����PK S�[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK S�[���r' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="Ra483f1ab173741f4" /></Relationships>PK S�[��4 � xl/worksheets/sheet1.xml � (� �Q�n� ��}%��j�U���n�ۙ%N@ 82����6M�e������<��Ȯ@��ox��8�bg���9�w����t ��aO 71N{!Bk��� |z둜�)�A`��N��|۪� �Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK S�[��yU� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�i7��ݰ���=N�&�e����G� XE�Tb�������4����ڼM#9c���-��V9=خ�S2 l֫�2��>��bc}J��Ҩz�d,�G�;ƅI����z���C�`L�0g�-��/�Ct� ��:Mh�`���1�� �^�S?�H��,2�V���������q�X�wS��2b����g2��5B��)�d���e@��B���i^����B���U- ?,������PK S�[Ѓc'2 E xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&� AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK S�[�/�� � xl/sharedStrings.xml � (� 5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK- S�[+� �� 5 xl/workbook.xmlPK- S�[���� � [Content_Types].xmlPK- S�[���r' ' V _rels/.relsPK- S�[��4 � � xl/worksheets/sheet1.xmlPK- S�[��yU� P . xl/_rels/workbook.xml.relsPK- S�[Ѓc'2 E t xl/styles.xmlPK- S�[�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK S�[��R� 5 xl/workbook.xml � (� ����0D�H��;9���I�"�Kl�َ���@J�ngv��Ѹ�iL�>jоp%!�P��=�:��t/b�N6P��@�Pz"��^H��B����z��W�Bln��0�('c�;��,!�b�]D�4WP��Qtnm���BN�=J�� i{�dy����YW_PK S�[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK S�[J�% ' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R41f8024b09944917" /></Relationships>PK S�[��4 � xl/worksheets/sheet1.xml � (� �Q�n� ��}%��j�U���n�ۙ%N@ 82����6M�e������<��Ȯ@��ox��8�bg���9�w����t ��aO 71N{!Bk��� |z둜�)�A`��N��|۪� �Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK S�[�8�Q� P xl/_rels/workbook.xml.rels � (� ��Kn� @��f_�Eq���4@06Vl����ٲ�z��Tj��n����I3���<�� }�m�gZ��`�N�{�a���q�1M3́�Z01�kJ�28ɐ�m�t�O2���t��({�9c%�K�3��2������N�&��0}w�br�����O)�[�Y�y�-�dL�\��ȁЇ��x1�z}����%+9g��*�Ce��_�O�^:-�5-�+��J���F��b�PK S�[Ѓc'2 E xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&� AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK S�[�/�� � xl/sharedStrings.xml � (� 5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK- S�[��R� 5 xl/workbook.xmlPK- S�[���� � [Content_Types].xmlPK- S�[J�% ' ' V _rels/.relsPK- S�[��4 � � xl/worksheets/sheet1.xmlPK- S�[�8�Q� P . xl/_rels/workbook.xml.relsPK- S�[Ѓc'2 E t xl/styles.xmlPK- S�[�/�� � � xl/sharedStrings.xmlPK � �