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 0�D[�1� 5 xl/workbook.xml � (� ���� ��J}�ZE"�)K�� 1%@T��7?J�n�|���S���'7�TŚ��NJ��:H�0��w:Dy��ł�Va�ۡ���y�"�m���1э�+��K1�aC9��6�!bi��8�U��^w1 �B�7%V�q�*��aM[�@��ܻ�^)�����Jc!��E�%=�L��w�PK 0�D[���� � [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 0�D[= s' ' _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="R2bab6756b6c44d34" /></Relationships>PK 0�D[��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 0�D[>J!}� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;�\� �n�.��8�Hl�6m9��W�E�6H]t�j4��'�|^>���i$���le���UN�k��C ��z��Hy"���$���B��_QU�����hsǸ0����Q/�QtH+Ɩ4�p�$�����1��g�N�����p�=br����O)�k(�L�[�1�r)�`�/�B��y������d�^�UU3�r��x}W�^����N��L�iQg'�^V�Fo�b�PK 0�D[Ѓ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 0�D[�/�� � 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- 0�D[�1� 5 xl/workbook.xmlPK- 0�D[���� � � [Content_Types].xmlPK- 0�D[= s' ' T _rels/.relsPK- 0�D[��4 � � xl/worksheets/sheet1.xmlPK- 0�D[>J!}� P , xl/_rels/workbook.xml.relsPK- 0�D[Ѓc'2 E r xl/styles.xmlPK- 0�D[�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK 0�D[�� 5 xl/workbook.xml � (� ����0D�&�C��+�8q���� �m�-ik��H�yۙ�};�d]���'=����Ɯ1�H��OvD3�:�4�Y��]��m��hK9Ϙ����K5z���a��!�^"=�( ���x �X�=N>����.&ak�����/�"4��� �D�֖4���j���^x*�k*Nw�+����PK 0�D[���� � [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 0�D[�\�\' ' _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="Rdea775feab874da3" /></Relationships>PK 0�D[��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 0�D[>B�� P xl/_rels/workbook.xml.rels � (� ��;n!@���|�7Y��M��/��aYy�8>[�)Wr�K)Ҹ����|�Xo�� �BL�w��bN�~t�ħl��v��är9��*#.Ils+B��0��� �t����%� J� �SڒX3�-.�C�ƌ��>���`r��,@��� Y�R"���B�h�K�_�_R.XDžP��O�e�����W2�[��-��t��2VE�_r,/];��Z�� �`@͢\\��Ϳ�|PK 0�D[Ѓ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 0�D[�/�� � 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- 0�D[�� 5 xl/workbook.xmlPK- 0�D[���� � [Content_Types].xmlPK- 0�D[�\�\' ' V _rels/.relsPK- 0�D[��4 � � xl/worksheets/sheet1.xmlPK- 0�D[>B�� P . xl/_rels/workbook.xml.relsPK- 0�D[Ѓc'2 E s xl/styles.xmlPK- 0�D[�/�� � � xl/sharedStrings.xmlPK � �