Micro Focus Expert
Micro Focus Expert

Re: Help with parsing rest json response to XDS

Jump to solution

You probably want to give the instance elements a class-name attribute.

--
Norbert
0 Likes
sivaramtm Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution

I have changed the schema mapping with out class now attributes are flowing furthur but the objects are not getting created due to below error.

<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product build="20170130_0359" instance="Rest-ServicenowDW" version="1.0.0.1">Identity Manager REST Driver</product>
<contact>NetIQ Corporation.</contact>
</source>
<input>
<driver-operation-data class-name="" command="poll" event-id="Rest-ServicenowDW##1196118302##0">
<response>
{"result":[{"parent":"","total_cost":"kr 0,00","discount":"","cost_adjustment":"0","sys_updated_on":"06.12.2018 12:52:02","u_response_agreement":"","u_sapkontraktnr":"40069112","u_external_problems_allowed":"false","approval_history":"","number":"CNTR0374773","sub_total_cost":"kr 0,00","u_solution_architect":"","cost_adjustment_reason":"","state":"Active","sys_created_by":"RestMQUser","contract_composite":"40069112 - CNTR0374773 - 218199","yearly_cost":"kr 0,00","active":"true","payment_amount":"kr 0,00","u_language":"Danish","sys_domain_path":"!!!/!!#/!!$/","u_idm_2nd_level_approval":"false","terms_and_conditions":null,"u_problem_internal_priority":"5","cost_center":"","renewable":"true","contract_administrator":"","template":"","short_description":"Frederiksberg Forsyning A/S -","process_non_contractual_slas":"false","u_expected_resolution_email":"false","sys_class_name":"Contract","u_first_time_fix_allowed":"false","u_sdms":"","vendor":"","contract_model":"","u_contract_reference":"Purchase Agreement","approver":"","monthly_cost":"kr 0,00","license_type":null,"renewal_options":null,"substate":"Awaiting Review","application_model":"","u_problem_external_priority":"3","vendor_account":"","u_business_hours":"","cost_adjustment_percentage":"0","u_idm_2nd_level_approvers":"","renewal_end_date":"","tax_rate":"","tax_cost":"kr 0,00","sys_updated_by":"system","u_cab_approval_group":"","renewal_date":"","u_head_of_delivery":"","u_security_condition":"","sys_created_on":"06.10.2016 17:32:16","sys_domain":{"display_value":"TOP/MSP/BBC","link":"http://servicenow-test.BBC.dk/api/now/table/domain/4c346138a44f12005821241c95d66248"},"u_problem_coordinator":"","parent_contract":"","starts":"","tax_exempt":"false","commitment":"kr 0,00","payment_schedule":"Monthly","renewal_contact":"","expiration":"","invoice_payment_terms":null,"u_ci_access_group":"","u_department":"","u_send_survey_along_with_auto_resolve_mail":"false","ratecard":"false","cost_adjustment_type":null,"u_ci_visibility_usage_group":"","u_notes_ok_for_portal":"false","description":"","u_incident_priority":"3","u_reopen_time":"5","sys_id":"00007fadff5e220051b26dff7fa4ad59","po_number":"","license_quantity_entitled":"","u_approver":"","ends":"","consumer":"","process":null,"vendor_contract":"218199","lifetime_cost":"kr 0,00","sys_mod_count":"5","u_service_request_priority":"5","sys_tags":"","u_automatic_closure_mail_is_being_sent":"false","u_risk_assesment_group":"","u_head_of_business":"","sales_tax":"true","cost_per_unit":"kr 0,00","location":"","u_service_delivery_manager":"","account":"","u_delivery_manager":""}]}
</response>
</driver-operation-data>
</input>
</nds>

[07/11/19 08:30:02.386]:Rest-SN PT:Applying policy: %+C%14CNETQRESTJSON-itp-JSONtoXDS%-C.
[07/11/19 08:30:02.386]:Rest-SN PT: Applying to driver-operation-data #1.
[07/11/19 08:30:02.386]:Rest-SN PT: Evaluating selection criteria for rule 'Translate JSON to XDS'.
[07/11/19 08:30:02.386]:Rest-SN PT: (if-operation equal "driver-operation-data") = TRUE.
[07/11/19 08:30:02.386]:Rest-SN PT: (if-xpath true "string-length(response/value/text())>0") = TRUE.
[07/11/19 08:30:02.402]:Rest-SN PT: Rule selected.
[07/11/19 08:30:02.402]:Rest-SN PT: Applying rule 'Translate JSON to XDS'.
[07/11/19 08:30:02.402]:Rest-SN PT: Action: do-set-local-variable("lvResponse",scope="policy",arg-node-set(token-xpath("es:JSONtoXDS(response/value/text())"))).
[07/11/19 08:30:02.402]:Rest-SN PT: arg-node-set(token-xpath("es:JSONtoXDS(response/value/text())"))
[07/11/19 08:30:02.402]:Rest-SN PT: token-xpath("es:JSONtoXDS(response/value/text())")
[07/11/19 08:30:02.402]:Rest-SN PT: Token Value: { @level = "success" @type = "app-general", @SRC-dn = "undefined"}.
[07/11/19 08:30:02.402]:Rest-SN PT: Arg Value: { @level = "success" @type = "app-general", @SRC-dn = "undefined"}.
[07/11/19 08:30:02.402]:Rest-SN PT: Action: do-trace-message("My works.."+token-local-variable("lvResponse")).
[07/11/19 08:30:02.402]:Rest-SN PT: arg-string("My works.."+token-local-variable("lvResponse"))
[07/11/19 08:30:02.402]:Rest-SN PT: token-text("My works..")
[07/11/19 08:30:02.402]:Rest-SN PT: token-local-variable("lvResponse")
[07/11/19 08:30:02.402]:Rest-SN PT: Token Value: "number of responses: 1".
[07/11/19 08:30:02.402]:Rest-SN PT: Arg Value: "My works..number of responses: 1".
[07/11/19 08:30:02.402]:Rest-SN PT:My works..number of responses: 1
[07/11/19 08:30:02.402]:Rest-SN PT: Action: do-clone-xpath(dest-expression="..",src-expression="$lvResponse").
[07/11/19 08:30:02.402]:Rest-SN PT: Action: do-strip-xpath("$current-op").
[07/11/19 08:30:02.402]:Rest-SN PT: Evaluating selection criteria for rule 'ReadintoAttributes'.
[07/11/19 08:30:02.402]:Rest-SN PT: (if-xpath true "@level='success'") = FALSE.
[07/11/19 08:30:02.402]:Rest-SN PT: Rule rejected.
[07/11/19 08:30:02.402]:Rest-SN PT:Policy returned:
[07/11/19 08:30:02.402]:Rest-SN PT:


[07/10/19 15:26:44.292]:Rest-SN PT:Applying policy: %+C%14CNETQRESTDCFG-pub-ctp-ModifytoRename%-C.
[07/10/19 15:26:44.292]:Rest-SN PT: Applying to instance #1.
[07/10/19 15:26:44.292]:Rest-SN PT: Evaluating selection criteria for rule 'ReadintoAttributes'.
[07/10/19 15:26:44.292]:Rest-SN PT: (if-src-dn equal "undefined") = TRUE.
[07/10/19 15:26:44.292]:Rest-SN PT: Rule selected.
[07/10/19 15:26:44.292]:Rest-SN PT: Applying rule 'ReadintoAttributes'.
[07/10/19 15:26:44.292]:Rest-SN PT: Action: do-set-local-variable("lvnumber",scope="policy",token-attr("BBCSNContractNumber")).
[07/10/19 15:26:44.292]:Rest-SN PT: arg-string(token-attr("BBCSNContractNumber"))
[07/10/19 15:26:44.292]:Rest-SN PT: token-attr("BBCSNContractNumber")
[07/10/19 15:26:44.292]:Rest-SN PT: Token Value: "40069112 - CNTR0374773 - 218199".
[07/10/19 15:26:44.292]:Rest-SN PT: Arg Value: "40069112 - CNTR0374773 - 218199".
[07/10/19 15:26:44.292]:Rest-SN PT: Action: do-set-local-variable("dn",scope="policy","BBC\Servicenow\Contract"+"\"+token-attr("CN")).
[07/10/19 15:26:44.292]:Rest-SN PT: arg-string("BBC\Servicenow\Contract"+"\"+token-attr("CN"))
[07/10/19 15:26:44.292]:Rest-SN PT: token-text("BBC\Servicenow\Contract")
[07/10/19 15:26:44.292]:Rest-SN PT: token-text("\")
[07/10/19 15:26:44.292]:Rest-SN PT: token-attr("CN")
[07/10/19 15:26:44.292]:Rest-SN PT: Token Value: "CNTR0374773".
[07/10/19 15:26:44.292]:Rest-SN PT: Arg Value: "BBC\Servicenow\Contract\CNTR0374773".
[07/10/19 15:26:44.292]:Rest-SN PT: Action: do-set-op-dest-dn(arg-dn(token-local-variable("dn"))).
[07/10/19 15:26:44.292]:Rest-SN PT: arg-dn(token-local-variable("dn"))
[07/10/19 15:26:44.307]:Rest-SN PT: token-local-variable("dn")
[07/10/19 15:26:44.307]:Rest-SN PT: Token Value: "BBC\Servicenow\Contract\CNTR0374773".
[07/10/19 15:26:44.307]:Rest-SN PT: Arg Value: "BBC\Servicenow\Contract\CNTR0374773".
[07/10/19 15:26:44.307]:Rest-SN PT: Action: do-trace-message("New Contract created..").
[07/10/19 15:26:44.307]:Rest-SN PT: arg-string("New Contract created..")
[07/10/19 15:26:44.307]:Rest-SN PT: token-text("New Contract created..")
[07/10/19 15:26:44.307]:Rest-SN PT: Arg Value: "New Contract created..".
[07/10/19 15:26:44.307]:Rest-SN PT:New Contract created..
[07/10/19 15:26:44.307]:Rest-SN PT: Evaluating selection criteria for rule 'Convert modify to rename'.
[07/10/19 15:26:44.307]:Rest-SN PT: (if-operation equal "modify") = FALSE.
[07/10/19 15:26:44.307]:Rest-SN PT: Rule rejected.
[07/10/19 15:26:44.307]:Rest-SN PT:Policy returned:
[07/10/19 15:26:44.307]:Rest-SN PT:
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product build="20170130_0359" instance="Rest-ServicenowDW" version="1.0.0.1">Identity Manager REST Driver</product>
<contact>NetIQ Corporation.</contact>
</source>
<input>
<instance dest-dn="BBC\Servicenow\Contract\CNTR0374773" src-dn="undefined">
<attr attr-name="parent">
<value></value>
</attr>
<attr attr-name="total_cost">
<value>kr 0,00</value>
</attr>
<attr attr-name="discount">
<value></value>
</attr>
<attr attr-name="cost_adjustment">
<value>0</value>
</attr>
<attr attr-name="sys_updated_on">
06.12.2018 12:52:02
</attr>
<attr attr-name="u_response_agreement">
<value></value>
</attr>
<attr attr-name="u_sapkontraktnr">
<value>40069112</value>
</attr>
<attr attr-name="u_external_problems_allowed">
<value>false</value>
</attr>
<attr attr-name="approval_history">
<value></value>
</attr>
<attr attr-name="CN">
<value>CNTR0374773</value>
</attr>
<attr attr-name="sub_total_cost">
<value>kr 0,00</value>
</attr>
<attr attr-name="u_solution_architect">
<value></value>
</attr>
<attr attr-name="cost_adjustment_reason">
<value></value>
</attr>
<attr attr-name="state">
<value>Active</value>
</attr>
<attr attr-name="sys_created_by">
<value>RestMQUser</value>
</attr>
<attr attr-name="BBCSNContractNumber">
<value>40069112 - CNTR0374773 - 218199</value>
</attr>
<attr attr-name="yearly_cost">
<value>kr 0,00</value>
</attr>
<attr attr-name="active">
<value>true</value>
</attr>
<attr attr-name="payment_amount">
<value>kr 0,00</value>
</attr>
<attr attr-name="u_language">
<value>Danish</value>
</attr>
<attr attr-name="sys_domain_path">
<value>!!!/!!#/!!$/</value>
</attr>
<attr attr-name="u_idm_2nd_level_approval">
<value>false</value>
</attr>
<attr attr-name="terms_and_conditions">
<value>null</value>
</attr>
<attr attr-name="u_problem_internal_priority">
<value>5</value>
</attr>
<attr attr-name="cost_center">
<value></value>
</attr>
<attr attr-name="renewable">
<value>true</value>
</attr>
<attr attr-name="contract_administrator">
<value></value>
</attr>
<attr attr-name="template">
<value></value>
</attr>
<attr attr-name="short_description">
<value>Frederiksberg Forsyning A/S -</value>
</attr>
<attr attr-name="process_non_contractual_slas">
<value>false</value>
</attr>
<attr attr-name="u_expected_resolution_email">
<value>false</value>
</attr>
<attr attr-name="sys_class_name">
<value>Contract</value>
</attr>
<attr attr-name="u_first_time_fix_allowed">
<value>false</value>
</attr>
<attr attr-name="u_sdms">
<value></value>
</attr>
<attr attr-name="vendor">
<value></value>
</attr>
<attr attr-name="contract_model">
<value></value>
</attr>
<attr attr-name="u_contract_reference">
<value>Purchase Agreement</value>
</attr>
<attr attr-name="approver">
<value></value>
</attr>
<attr attr-name="monthly_cost">
<value>kr 0,00</value>
</attr>
<attr attr-name="license_type">
<value>null</value>
</attr>
<attr attr-name="renewal_options">
<value>null</value>
</attr>
<attr attr-name="substate">
<value>Awaiting Review</value>
</attr>
<attr attr-name="application_model">
<value></value>
</attr>
<attr attr-name="u_problem_external_priority">
<value>3</value>
</attr>
<attr attr-name="vendor_account">
<value></value>
</attr>
<attr attr-name="u_business_hours">
<value></value>
</attr>
<attr attr-name="cost_adjustment_percentage">
<value>0</value>
</attr>
<attr attr-name="u_idm_2nd_level_approvers">
<value></value>
</attr>
<attr attr-name="renewal_end_date">
<value></value>
</attr>
<attr attr-name="tax_rate">
<value></value>
</attr>
<attr attr-name="tax_cost">
<value>kr 0,00</value>
</attr>
<attr attr-name="sys_updated_by">
<value>system</value>
</attr>
<attr attr-name="u_cab_approval_group">
<value></value>
</attr>
<attr attr-name="renewal_date">
<value></value>
</attr>
<attr attr-name="u_head_of_delivery">
<value></value>
</attr>
<attr attr-name="u_security_condition">
<value></value>
</attr>
<attr attr-name="sys_created_on">
06.10.2016 17:32:16
</attr>
<attr attr-name="sys_domain">
{"display_value":"TOP/MSP/BBC","link":"http://servicenow-test.BBC.dk/api/now/table/domain/4c346138a44f12005821241c95d66248"}>
</attr>
<attr attr-name="u_problem_coordinator">
<value></value>
</attr>
<attr attr-name="parent_contract">
<value></value>
</attr>
<attr attr-name="starts">
<value></value>
</attr>
<attr attr-name="tax_exempt">
<value>false</value>
</attr>
<attr attr-name="commitment">
<value>kr 0,00</value>
</attr>
<attr attr-name="payment_sch...
























































































































Knowledge Partner
Knowledge Partner

Re: Help with parsing rest json response to XDS

Jump to solution

You send an event in XDS. 

nds, then input or output. 

Under input should be add, modify, delete, rename, move, and some more.

But instance is a response, so it should be under an output node.

So I assume you built the XDS/XML in policy somewhere to convert the REST response to an <instance> so go fix it.

 

0 Likes
sivaramtm Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution
any suggestion on how to do this conversion.
0 Likes
Highlighted
sivaramtm Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution
Input tags are getting add by default from the engine. How do we change them to output?
0 Likes
Marcus Tornberg Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution

Hi!

I do not think the input/output is your real problem at this point.

I would guess if you want to send the event through schema mapping and filters, you would want an add or modify, not an instance. Not sure if you have described what the overall goal is? I could not find it, but the thread is getting quite large.

To make it as an add or modify (I would do an add event) you need to adjust the solution provided by Klasen to result in an add/modify and not an instance.

Best regards

Marcus

0 Likes
Knowledge Partner
Knowledge Partner

Re: Help with parsing rest json response to XDS

Jump to solution

If I understand your use case properly, you sent a query on the Sub channel to the REST endpoint.

 

So you sent an <input> document.

The response should have been from the shim as an <output> document.  Your <instance> should have been set under the existing <output> node.  Maybe Norberts approach needs some minor tweaking.

sivaramtm Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution
Sorry for the confusion. My use case is sending the query in publisher poll using Get method and trying to synchronize the values into IDV.
0 Likes
Marcus Tornberg Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution

Hi.

I have updated Klasens ECMA-script to return an add event instead of an instance the way I would have done it. Try it and let us know.

/**
 * parse JSON returned by REST service and transform it into XDS elements
 * @Param {string} payload JSON encoded string
 * @return {NodeSet} input converted to a NodeSet
 */
function JSONtoXDS (payload) {
    var nodeSet = new Packages.com.novell.xml.xpath.NodeSet();
    var document = Packages.com.novell.xml.dom.DocumentFactory.newDocument();
    var statusElement = document.createElement('status');

    try {
        var response = JSON.parse(payload);
    } catch (e) {
        // parsing error
        statusElement.setAttributeNS(null, 'level', 'error');
        statusElement.setAttributeNS(null, 'type', 'driver-general');
        statusElement.appendChild(document.createTextNode(e.toString()));
        statusElement.appendChild(document.createTextNode(payload));
        nodeSet.add(statusElement);
        return (nodeSet);
    }

    if (Array.isArray(response.result)) {
        // create the add node
        for (var i = 0; i < response.result.length; i++) {
            var instanceElement = document.createElement('add');
            instanceElement.setAttributeNS(null, 'class-name', 'User');
            var associationElement = document.createElement('association');
            associationElement.appendChild(document.createTextNode(response.result[i]['u_kundenr']));
            instanceElement.appendChild(associationElement);
            for (var key in response.result[i]) {
                var attrElement = document.createElement('add-attr');
                attrElement.setAttributeNS(null, 'attr-name', key);
                var valueElement = document.createElement('value');
                var value = response.result[i][key];
                if (typeof value !== 'string') {
                    value = JSON.stringify(value);
                }
                valueElement.appendChild(document.createTextNode(value));
                attrElement.appendChild(valueElement);
                instanceElement.appendChild(attrElement);
            }
            nodeSet.add(instanceElement);
        }
    } else {
        // handle application specific error
        statusElement.setAttributeNS(null, 'level', 'error');
        statusElement.setAttributeNS(null, 'type', 'app-general');
        statusElement.appendChild(document.createTextNode('some error'));
        nodeSet.add(statusElement);
    }
    return (nodeSet);
}

 Note that I have hard-coded "User" as class-name and the association value comes from  u_kundenr.

sivaramtm Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution
How to parse when multiple values returned in same response.
{"result":[{"parent":"","total_cost":"kr 0,00","discount":"","cost_adjustment":"0","sys_updated_on":"06.12.2018 12:52:02","u_response_agreement":"","u_sapkontraktnr":"40069112","u_external_problems_allowed":"false","approval_history":"","number":"CNTR0374773","sub_total_cost":"kr 0,00","u_solution_architect":"","cost_adjustment_reason":"","state":"Active","sys_created_by":"RestMQUser","contract_composite":"40069112 - CNTR0374773 - 218199","yearly_cost":"kr 0,00","active":"true","payment_amount":"kr 0,00","u_language":"Danish","sys_domain_path":"!!!/!!#/!!$/","u_idm_2nd_level_approval":"false","terms_and_conditions":null,"u_problem_internal_priority":"5","cost_center":"","renewable":"true","contract_administrator":"","template":"","short_description":"Frederiksberg Forsyning A/S -","process_non_contractual_slas":"false","u_expected_resolution_email":"false","sys_class_name":"Contract","u_first_time_fix_allowed":"false","u_sdms":"","vendor":"","contract_model":"","u_contract_reference":"Purchase Agreement","approver":"","monthly_cost":"kr 0,00","license_type":null,"renewal_options":null,"substate":"Awaiting Review","application_model":"","u_problem_external_priority":"3","vendor_account":"","u_business_hours":"","cost_adjustment_percentage":"0","u_idm_2nd_level_approvers":"","renewal_end_date":"","tax_rate":"","tax_cost":"kr 0,00","sys_updated_by":"system","u_cab_approval_group":"","renewal_date":"","u_head_of_delivery":"","u_security_condition":"","sys_created_on":"06.10.2016 17:32:16","sys_domain":{"display_value":"TOP/MSP/BBC","link":"http://servicenow-test.BBC.dk/api/now/table/domain/4c346138a44f12005821241c95d66248"},"u_problem_coordinator":"","parent_contract":"","starts":"","tax_exempt":"false","commitment":"kr 0,00","payment_schedule":"Monthly","renewal_contact":"","expiration":"","invoice_payment_terms":null,"u_ci_access_group":"","u_department":"","u_send_survey_along_with_auto_resolve_mail":"false","ratecard":"false","cost_adjustment_type":null,"u_ci_visibility_usage_group":"","u_notes_ok_for_portal":"false","description":"","u_incident_priority":"3","u_reopen_time":"5","sys_id":"00007fadff5e220051b26dff7fa4ad59","po_number":"","license_quantity_entitled":"","u_approver":"","ends":"","consumer":"","process":null,"vendor_contract":"218199","lifetime_cost":"kr 0,00","sys_mod_count":"5","u_service_request_priority":"5","sys_tags":"","u_automatic_closure_mail_is_being_sent":"false","u_risk_assesment_group":"","u_head_of_business":"","sales_tax":"true","cost_per_unit":"kr 0,00","location":"","u_service_delivery_manager":"","account":"","u_delivery_manager":""},{"parent":"","total_cost":"kr 0,00","discount":"","cost_adjustment":"0","sys_updated_on":"14.03.2019 12:31:25","u_response_agreement":"","u_sapkontraktnr":"40026088","u_external_problems_allowed":"false","approval_history":"","number":"CNTR0328059","sub_total_cost":"kr 0,00","u_solution_architect":"","cost_adjustment_reason":"","state":"Active","sys_created_by":"RestMQUser","contract_composite":"40026088 - CNTR0328059 - 170358","yearly_cost":"kr 0,00","active":"true","payment_amount":"kr 0,00","u_language":"Danish","sys_domain_path":"!!!/!!#/!!$/","u_idm_2nd_level_approval":"false","terms_and_conditions":null,"u_problem_internal_priority":"5","cost_center":"","renewable":"true","contract_administrator":"","template":"","short_description":"Danske Diakonhjem -","process_non_contractual_slas":"false","u_expected_resolution_email":"false","sys_class_name":"Contract","u_first_time_fix_allowed":"false","u_sdms":"","vendor":"","contract_model":"","u_contract_reference":"Purchase Agreement","approver":"","monthly_cost":"kr 0,00","license_type":null,"renewal_options":null,"substate":"Awaiting Review","application_model":"","u_problem_external_priority":"3","vendor_account":"","u_business_hours":"","cost_adjustment_percentage":"0","u_idm_2nd_level_approvers":"","renewal_end_date":"","tax_rate":"","tax_cost":"kr 0,00","sys_updated_by":"adminKUR","u_cab_approval_group":"","renewal_date":"","u_head_of_delivery":"","u_security_condition":"","sys_created_on":"06.10.2016 16:22:22","sys_domain":{"display_value":"TOP/MSP/BBC","link":"http://servicenow-test.BBC.dk/api/now/table/domain/4c346138a44f12005821241c95d66248"},"u_problem_coordinator":"","parent_contract":"","starts":"","tax_exempt":"false","commitment":"kr 0,00","payment_schedule":"Monthly","renewal_contact":"","expiration":"","invoice_payment_terms":null,"u_ci_access_group":"","u_department":"","u_send_survey_along_with_auto_resolve_mail":"false","ratecard":"false","cost_adjustment_type":null,"u_ci_visibility_usage_group":"","u_notes_ok_for_portal":"false","description":"","u_incident_priority":"3","u_reopen_time":"5","sys_id":"0000a761ff5e220051b26dff7fa4ad78","po_number":"","license_quantity_entitled":"","u_approver":"","ends":"","consumer":"","process":null,"vendor_contract":"170358","lifetime_cost":"kr 0,00","sys_mod_count":"6","u_service_request_priority":"5","sys_tags":"","u_automatic_closure_mail_is_being_sent":"false","u_risk_assesment_group":"","u_head_of_business":"","sales_tax":"true","cost_per_unit":"kr 0,00","location":"","u_service_delivery_manager":"","account":"","u_delivery_manager":""}]}
0 Likes
sivaramtm Honored Contributor.
Honored Contributor.

Re: Help with parsing rest json response to XDS

Jump to solution
Thank you so much for the updated code now synchronized values from target to IDV successfully.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.