enable to update the catalog item field using Server script

String
Kilo Sage

Hi Team ,

am using server script to update the multi row variable set field by using below syntax 

g_form.setValue('amount', '200');Screenshot 2023-03-08 at 5.23.53 PM.png

 

 

Screenshot 2023-03-08 at 5.29.13 PM.png

 

but enable to update ,

Please guid me 

1 ACCEPTED SOLUTION

@String ,

 

Already provided the solution HERE 

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

View solution in original post

7 REPLIES 7

@String ,

 

Tell me one thing is there any primary key available between the API response and the MVRS so that we got to know this response is particular to this object of mvrs.

@Prince Arora ,

Yes we have primary key ,Soap XML response as below :

 

 

<_1:GetPriceAndStockResponseMessage

    xmlns:_1="http://www.c"

    xmlns:_1_1="http:">

    <_1_1:MessageHeader language="F">

        <_1_1:Status>SUCCESS</_1_1:Status>

        <_1_1:ResponseMessage>SUCCESS</_1_1:ResponseMessage>

        <_1_1:ResponseDetails>

            <_1_1:Severity>S</_1_1:Severity>

        </_1_1:ResponseDetails>

    </_1_1:MessageHeader>

    <Orders>

        <Order>

            <OrderLineItems>

                <OrderLineItem>

                    <SourceSystemOrderLineNumber>itemCode1</SourceSystemOrderLineNumber>

                    <ItemNumber>8525B002</ItemNumber>

                    <Quantity>2</Quantity>

                    <ItemPriceInfo>

                        <CurrencyCode>EUR</CurrencyCode>

                        <Amount>201</Amount>

                        <UnitPrice>100.5</UnitPrice>

                        <ListPrice>100.5</ListPrice>

                    </ItemPriceInfo>

                </OrderLineItem>

                <OrderLineItem>

                    <SourceSystemOrderLineNumber>itemCode1</SourceSystemOrderLineNumber>

                    <ItemNumber>9453B001</ItemNumber>

                    <Quantity>2</Quantity>

                    <ItemPriceInfo>Amount                        

                        <CurrencyCode>EUR</CurrencyCode>

                        <Amount>392.8</Amount>

                        <UnitPrice>196.4</UnitPrice>

                        <ListPrice>196.4</ListPrice>

                    </ItemPriceInfo>

                </OrderLineItem>

            </OrderLineItems>

        </Order>

    </Orders>

</_1:GetPriceAndStockResponseMessage>

 

 
 

inside the <OrderLineItem> details are for MRVS
we are only checking <ItemNumber> tag(soap XML tag) is primary key with Consumable(web portal MRVS field)
Amount tag (soap XML)details are updated in to Amount(web portal MRVS field)

Screenshot 2023-03-08 at 9.58.09 PM.png
Format XML

@String ,

 

Already provided the solution HERE 

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.